Plugins

Plugins — functions related to querying plugins

Functions

Types and Values

enum BDPlugin

Includes

#include <blockdev.h>

Description

Functions

bd_plugin_spec_copy ()

BDPluginSpec *
bd_plugin_spec_copy (BDPluginSpec *spec);

Creates a new copy of spec .


bd_plugin_spec_free ()

void
bd_plugin_spec_free (BDPluginSpec *spec);

Frees spec .


bd_is_plugin_available ()

gboolean
bd_is_plugin_available (BDPlugin plugin);

Parameters

plugin

the queried plugin

 

Returns

whether the given plugin is available or not


bd_get_available_plugin_names ()

gchar **
bd_get_available_plugin_names ();

Returns

an array of string names of plugins that are available.

[transfer container][array zero-terminated=1]


bd_func_available ()

gboolean
bd_func_available (BDPlugin plugin,
                   gchar *func_name);

Types and Values

enum BDPlugin

Members

BD_PLUGIN_LVM

   

BD_PLUGIN_BTRFS

   

BD_PLUGIN_SWAP

   

BD_PLUGIN_LOOP

   

BD_PLUGIN_CRYPTO

   

BD_PLUGIN_MPATH

   

BD_PLUGIN_DM

   

BD_PLUGIN_MDRAID

   

BD_PLUGIN_UNDEF