Changeset 700f89e in mainline for uspace/lib/gpt


Ignore:
Timestamp:
2013-05-02T00:51:28Z (12 years ago)
Author:
Dominik Taborsky (AT DOT) <brembyseznamcz>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9bda5d90
Parents:
8f6c7785
Message:

libmbr semifinal, hdisk enhancements

Location:
uspace/lib/gpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gpt/libgpt.c

    r8f6c7785 r700f89e  
    5858static int gpt_memcmp(const void * a, const void * b, size_t len);
    5959
     60/** Allocate memory for gpt header */
     61gpt_t * gpt_alloc_gpt_header()
     62{
     63        return malloc(sizeof(gpt_t));
     64}
     65
    6066/** Read GPT from specific device
    6167 * @param       dev_handle      device to read GPT from
     
    162168
    163169        return 0;
     170}
     171
     172/** Alloc partition array */
     173gpt_partitions_t *      gpt_alloc_partitions()
     174{
     175        return alloc_part_array(128);
    164176}
    165177
  • uspace/lib/gpt/libgpt.h

    r8f6c7785 r700f89e  
    139139
    140140
    141 
     141extern gpt_t * gpt_alloc_gpt_header();
    142142extern gpt_t * gpt_read_gpt_header(service_id_t dev_handle);
    143143extern int gpt_write_gpt_header(gpt_t * header, service_id_t dev_handle);
    144144
     145extern gpt_partitions_t *       gpt_alloc_partitions();
    145146extern gpt_partitions_t *       gpt_read_partitions     (gpt_t * gpt);
    146147extern 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.