|
@@ -112,6 +112,8 @@ int get_partition_info (block_dev_desc_t * dev_desc, int part, disk_partition_t
|
|
|
void print_part (block_dev_desc_t *dev_desc);
|
|
|
void init_part (block_dev_desc_t *dev_desc);
|
|
|
void dev_print(block_dev_desc_t *dev_desc);
|
|
|
+int get_device(const char *ifname, const char *dev_str,
|
|
|
+ block_dev_desc_t **dev_desc);
|
|
|
int get_device_and_partition(const char *ifname, const char *dev_str,
|
|
|
block_dev_desc_t **dev_desc,
|
|
|
disk_partition_t *info);
|
|
@@ -131,6 +133,9 @@ static inline int get_partition_info (block_dev_desc_t * dev_desc, int part,
|
|
|
static inline void print_part (block_dev_desc_t *dev_desc) {}
|
|
|
static inline void init_part (block_dev_desc_t *dev_desc) {}
|
|
|
static inline void dev_print(block_dev_desc_t *dev_desc) {}
|
|
|
+static inline int get_device(const char *ifname, const char *dev_str,
|
|
|
+ block_dev_desc_t **dev_desc)
|
|
|
+{ return -1; }
|
|
|
static inline int get_device_and_partition(const char *ifname,
|
|
|
const char *dev_str,
|
|
|
block_dev_desc_t **dev_desc,
|