Changeset 6453e306 in mainline for uspace/app/hdisk/common.h


Ignore:
Timestamp:
2013-12-25T16:09:43Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ac36aed
Parents:
d51beba3
Message:

basic code review and coding style cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hdisk/common.h

    rd51beba3 r6453e306  
    11/*
    2  * Copyright (c) 2012, 2013 Dominik Taborsky
     2 * Copyright (c) 2012-2013 Dominik Taborsky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29  /** @addtogroup hdisk
     29/** @addtogroup hdisk
    3030 * @{
    3131 */
     
    4545} layouts_t;
    4646
    47 union label_data {
    48         mbr_label_t     *mbr;
    49         gpt_label_t     *gpt;
    50 };
     47typedef union {
     48        mbr_label_t *mbr;
     49        gpt_label_t *gpt;
     50} label_data_t;
    5151
    52 typedef struct label label_t;
    53 
    54 struct label {
     52typedef struct label {
    5553        layouts_t layout;
    56         aoff64_t nblocks;
     54        aoff64_t blocks;
    5755        service_id_t device;
    58         union label_data data;
     56        label_data_t data;
    5957        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;
    6967
    7068#endif
    71 
Note: See TracChangeset for help on using the changeset viewer.