Changes in uspace/lib/gpt/libgpt.h [9bda5d90:a2aa81cb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gpt/libgpt.h
r9bda5d90 ra2aa81cb 1 1 /* 2 * Copyright (c) 2009 Jiri Svoboda, 2011, 2012, 2013 Dominik Taborsky 2 * Copyright (c) 2009 Jiri Svoboda 3 * Copyright (c) 2011, 2012, 2013 Dominik Taborsky 3 4 * All rights reserved. 4 5 * … … 129 130 gpt_t * gpt; 130 131 gpt_partitions_t * parts; 131 } gpt_ table_t;132 } gpt_label_t; 132 133 133 134 struct partition_type { … … 141 142 extern gpt_t * gpt_alloc_gpt_header(void); 142 143 extern gpt_t * gpt_read_gpt_header(service_id_t dev_handle); 143 extern int gpt_write_gpt_header(gpt_t * header, service_id_t dev_handle);144 extern int gpt_write_gpt_header(gpt_t * header, service_id_t dev_handle); 144 145 145 extern gpt_partitions_t * 146 extern gpt_partitions_t * gpt_read_partitions(gpt_t * gpt);147 extern int gpt_write_partitions(gpt_partitions_t * parts, gpt_t * header, service_id_t dev_handle);148 extern gpt_part_t * gpt_alloc_partition(gpt_partitions_t * parts);149 extern int gpt_add_partition(gpt_partitions_t * parts, gpt_part_t * partition);150 extern int 146 extern gpt_partitions_t * gpt_alloc_partitions(void); 147 extern gpt_partitions_t * gpt_read_partitions(gpt_t * gpt); 148 extern int gpt_write_partitions(gpt_partitions_t * parts, gpt_t * header, service_id_t dev_handle); 149 extern gpt_part_t * gpt_alloc_partition (gpt_partitions_t * parts); 150 extern int gpt_add_partition (gpt_partitions_t * parts, gpt_part_t * partition); 151 extern int gpt_remove_partition(gpt_partitions_t * parts, size_t idx); 151 152 152 extern size_t gpt_get_part_type(gpt_part_t * p);153 extern void gpt_set_part_type(gpt_part_t * p, size_t type);154 extern void gpt_set_start_lba(gpt_part_t * p, uint64_t start);155 extern uint64_t gpt_get_start_lba(gpt_part_t * p);156 extern void gpt_set_end_lba(gpt_part_t * p, uint64_t end);157 extern uint64_t gpt_get_end_lba(gpt_part_t * p);158 extern unsigned char * gpt_get_part_name(gpt_part_t * p);159 extern void gpt_set_part_name(gpt_part_t * p, char * name[], size_t length);160 extern bool gpt_get_flag(gpt_part_t * p, GPT_ATTR flag);161 extern void gpt_set_flag(gpt_part_t * p, GPT_ATTR flag, bool value);153 extern size_t gpt_get_part_type(gpt_part_t * p); 154 extern void gpt_set_part_type(gpt_part_t * p, size_t type); 155 extern void gpt_set_start_lba(gpt_part_t * p, uint64_t start); 156 extern uint64_t gpt_get_start_lba(gpt_part_t * p); 157 extern void gpt_set_end_lba (gpt_part_t * p, uint64_t end); 158 extern uint64_t gpt_get_end_lba (gpt_part_t * p); 159 extern unsigned char * gpt_get_part_name(gpt_part_t * p); 160 extern void gpt_set_part_name(gpt_part_t * p, char * name[], size_t length); 161 extern bool gpt_get_flag (gpt_part_t * p, GPT_ATTR flag); 162 extern void gpt_set_flag (gpt_part_t * p, GPT_ATTR flag, bool value); 162 163 163 164
Note:
See TracChangeset
for help on using the changeset viewer.