Changeset 6453e306 in mainline for uspace/app/hdisk/common.h
- Timestamp:
- 2013-12-25T16:09:43Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ac36aed
- Parents:
- d51beba3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/hdisk/common.h
rd51beba3 r6453e306 1 1 /* 2 * Copyright (c) 2012 ,2013 Dominik Taborsky2 * Copyright (c) 2012-2013 Dominik Taborsky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 29 /** @addtogroup hdisk 30 30 * @{ 31 31 */ … … 45 45 } layouts_t; 46 46 47 union label_data{48 mbr_label_t 49 gpt_label_t 50 } ;47 typedef union { 48 mbr_label_t *mbr; 49 gpt_label_t *gpt; 50 } label_data_t; 51 51 52 typedef struct label label_t; 53 54 struct label { 52 typedef struct label { 55 53 layouts_t layout; 56 aoff64_t nblocks;54 aoff64_t blocks; 57 55 service_id_t device; 58 union label_datadata;56 label_data_t data; 59 57 unsigned int alignment; 60 int (* destroy_label)( label_t*);61 int (* add_part) (label_t*, tinput_t *);62 int (* delete_part) (label_t*, tinput_t *);63 int (* new_label) (label_t*);64 int (* print_parts) (label_t*);65 int (* read_parts) (label_t*);66 int (* write_parts) (label_t*);67 int (* extra_funcs) (label_t*, tinput_t *);68 } ;58 int (* destroy_label)(struct label *); 59 int (* add_part)(struct label *, tinput_t *); 60 int (* delete_part)(struct label *, tinput_t *); 61 int (* new_label)(struct label *); 62 int (* print_parts)(struct label *); 63 int (* read_parts)(struct label *); 64 int (* write_parts)(struct label *); 65 int (* extra_funcs)(struct label *, tinput_t *); 66 } label_t; 69 67 70 68 #endif 71
Note:
See TracChangeset
for help on using the changeset viewer.