int main() { init_lvm({{1024, 10}, {64,100}}); struct lvm_small s; method_call( (struct lvm_value*) &s ); }
void *cmdlib_lvm2_init(unsigned is_static) { struct cmd_context *cmd; lvm_register_commands(); if (!(cmd = init_lvm(is_static))) return NULL; return (void *) cmd; }
static void uuidcache_init(void) { if (uuidCache) return; #ifdef VG_DIR init_lvm(); #endif read_evms(); read_partitions(); }
static GVariant * list_volume_groups (void) { lvm_t lvm; struct dm_list *vg_names; struct lvm_str_list *vg_name; GVariantBuilder result; lvm = init_lvm (); g_variant_builder_init (&result, G_VARIANT_TYPE ("as")); vg_names = lvm_list_vg_names (lvm); dm_list_iterate_items (vg_name, vg_names) { g_variant_builder_add (&result, "s", vg_name->str); }