| Top |
| #define | BD_UTILS_EXEC_ERROR |
| enum | BDUtilsExecError |
| #define | BD_UTILS_SIZE_ERROR |
| enum | BDUtilsSizeError |
| #define | EXBIBYTE |
| #define | EiB |
| #define | GIBIBYTE |
| #define | GiB |
| #define | KIBIBYTE |
| #define | KiB |
| #define | MEBIBYTE |
| #define | MiB |
| #define | PEBIBYTE |
| #define | PiB |
| #define | TEBIBYTE |
| #define | TiB |
void (*BDUtilsLogFunc) (gint level,gchar *msg);
Function type for logging function used by the libblockdev's exec utils to log the information about program executing.
gboolean bd_utils_exec_and_report_error (gchar **argv,GError **error);
gboolean bd_utils_exec_and_capture_output (gchar **argv,gchar **output,GError **error);
gboolean bd_utils_init_logging (BDUtilsLogFunc new_log_func,GError **error);
new_log_func |
logging function to use or
|
[allow-none][scope notified] |
error |
place to store error (if any). |
[out] |
guint64 bd_utils_size_from_spec (gchar *spec,GError **error);
gboolean bd_utils_check_util_version (gchar *util,gchar *version,gchar *version_arg,gchar *version_regexp,GError **error);
util |
name of the utility to check |
|
version |
minimum required version of the utility or |
[allow-none] |
version_arg |
argument to use with the |
[allow-none] |
version_regexp |
regexp to extract version from the version
info or |
[allow-none] |
error |
place to store error (if any). |
[out] |