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

Changeset 6a0d4ce2 in mainline


Ignore:
Timestamp:
2015-07-02T21:37:30Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
6bc542b
Parents:
1626cd4
Message:

De-duplicate type.

Location:
uspace/srv/bd/vbd
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/vbd/disk.c

    r1626cd4 r6a0d4ce2  
    4343#include <stdlib.h>
    4444#include <task.h>
     45#include <vbd.h>
    4546
    4647#include "disk.h"
     
    370371}
    371372
    372 int vbds_part_get_info(vbds_part_id_t partid, vbds_part_info_t *pinfo)
     373int vbds_part_get_info(vbds_part_id_t partid, vbd_part_info_t *pinfo)
    373374{
    374375        vbds_part_t *part;
  • uspace/srv/bd/vbd/disk.h

    r1626cd4 r6a0d4ce2  
    4040#include <loc.h>
    4141#include "types/vbd.h"
     42#include <vbd.h>
    4243
    4344extern void vbds_disks_init(void);
     
    4849extern int vbds_label_create(service_id_t, label_type_t);
    4950extern int vbds_label_delete(service_id_t);
    50 extern int vbds_part_get_info(vbds_part_id_t, vbds_part_info_t *);
     51extern int vbds_part_get_info(vbds_part_id_t, vbd_part_info_t *);
    5152extern int vbds_part_create(service_id_t, vbds_part_id_t *);
    5253extern int vbds_part_delete(vbds_part_id_t);
  • uspace/srv/bd/vbd/types/vbd.h

    r1626cd4 r6a0d4ce2  
    9797} vbds_disk_t;
    9898
    99 /** Partition info */
    100 typedef struct {
    101         /** Partition index */
    102         int index;
    103         /** First block */
    104         aoff64_t block0;
    105         /** Number of blocks */
    106         aoff64_t nblocks;
    107 } vbds_part_info_t;
    108 
    10999#endif
    110100
  • uspace/srv/bd/vbd/vbd.c

    r1626cd4 r6a0d4ce2  
    4444#include <stdlib.h>
    4545#include <task.h>
     46#include <vbd.h>
    4647
    4748#include "disk.h"
     
    218219{
    219220        vbds_part_id_t part;
    220         vbds_part_info_t pinfo;
     221        vbd_part_info_t pinfo;
    221222        int rc;
    222223
Note: See TracChangeset for help on using the changeset viewer.