Changeset 700f89e in mainline for uspace/lib/gpt
- Timestamp:
- 2013-05-02T00:51:28Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9bda5d90
- Parents:
- 8f6c7785
- Location:
- uspace/lib/gpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gpt/libgpt.c
r8f6c7785 r700f89e 58 58 static int gpt_memcmp(const void * a, const void * b, size_t len); 59 59 60 /** Allocate memory for gpt header */ 61 gpt_t * gpt_alloc_gpt_header() 62 { 63 return malloc(sizeof(gpt_t)); 64 } 65 60 66 /** Read GPT from specific device 61 67 * @param dev_handle device to read GPT from … … 162 168 163 169 return 0; 170 } 171 172 /** Alloc partition array */ 173 gpt_partitions_t * gpt_alloc_partitions() 174 { 175 return alloc_part_array(128); 164 176 } 165 177 -
uspace/lib/gpt/libgpt.h
r8f6c7785 r700f89e 139 139 140 140 141 141 extern gpt_t * gpt_alloc_gpt_header(); 142 142 extern gpt_t * gpt_read_gpt_header(service_id_t dev_handle); 143 143 extern int gpt_write_gpt_header(gpt_t * header, service_id_t dev_handle); 144 144 145 extern gpt_partitions_t * gpt_alloc_partitions(); 145 146 extern gpt_partitions_t * gpt_read_partitions (gpt_t * gpt); 146 147 extern int gpt_write_partitions (gpt_partitions_t * parts, gpt_t * header, service_id_t dev_handle);
Note:
See TracChangeset
for help on using the changeset viewer.