Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 28ed0d9 in mainline for uspace/srv/bd/vbd/types/vbd.h


Ignore:
Timestamp:
2015-06-27T19:50:12Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
78d50bd
Parents:
22fb7ab
Message:

VBD client API, liblabel API, pass partition creation/deletion through to VBD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/vbd/types/vbd.h

    r22fb7ab r28ed0d9  
    3535 */
    3636
    37 #ifndef TYPES_VBD_H_
    38 #define TYPES_VBD_H_
     37#ifndef TYPES_VBDS_H_
     38#define TYPES_VBDS_H_
    3939
     40#include <adt/list.h>
     41#include <label.h>
     42#include <loc.h>
    4043#include <types/label.h>
    4144
    4245/** Disk info */
    4346typedef struct {
     47        /** Label */
     48        label_t *label;
    4449        /** Label type */
    4550        label_type_t ltype;
    46 } vbd_disk_info_t;
     51} vbds_disk_info_t;
     52
     53/** Partition */
     54typedef struct {
     55        /** Disk this partition belongs to */
     56        struct vbds_disk *disk;
     57        /** Link to vbds_disk_t.parts */
     58        link_t ldisk;
     59        /** Label partition */
     60        label_part_t *lpart;
     61} vbds_part_t;
     62
     63/** Disk */
     64typedef struct vbds_disk {
     65        /** Link to vbds_disks */
     66        link_t ldisks;
     67        /** Service ID */
     68        service_id_t svc_id;
     69        /** Label */
     70        label_t *label;
     71        /** Partitions */
     72        list_t parts; /* of vbds_part_t */
     73} vbds_disk_t;
     74
     75typedef struct {
     76} vbds_part_info_t;
     77
     78typedef sysarg_t vbds_part_id_t;
    4779
    4880#endif
Note: See TracChangeset for help on using the changeset viewer.