Data Structures | |
struct | LIBMNTFUNCS_ |
Struct to group callbacks for signals. More... | |
Defines | |
#define | DBUS_SERVICE_MNT "biz.bambach.Mnt" |
DBUS mntd service name. | |
#define | DBUS_PATH_MNT_MANAGER "/biz/bambach/Mnt/Manager" |
DBUS mntd manager path. | |
#define | DBUS_PATH_MNT_BLOCK "/biz/bambach/Mnt/Block" |
DBUS mntd block path. | |
#define | DBUS_PATH_MNT_DISC "/biz/bambach/Mnt/Disc" |
DBUS mntd disc path. | |
#define | DBUS_PATH_MNT_TTY "/biz/bambach/Mnt/Tty" |
DBUS mntd tty path. | |
#define | DBUS_INTERFACE_MNT_MANAGER "biz.bambach.Mnt.Manager" |
DBUS mntd manager interface. | |
#define | DBUS_INTERFACE_MNT_BLOCK "biz.bambach.Mnt.Block" |
DBUS mntd block interface. | |
#define | DBUS_INTERFACE_MNT_DISC "biz.bambach.Mnt.Disc" |
DBUS mntd disc interface. | |
#define | DBUS_INTERFACE_MNT_TTY "biz.bambach.Mnt.Tty" |
DBUS mntd tty interface. | |
#define | DBUS_ERROR_NO_SUCH_DEVICE "biz.bambach.Mnt.NoSuchDevice" |
DBUS mntd NoSuchDevice error. | |
#define | DBUS_ERROR_SYNTAX "biz.bambach.Mnt.SyntaxError" |
DBUS mntd SyntaxError error. | |
#define | DBUS_ERROR_NO_MNTPNT "biz.bambach.Mnt.NoMntPnt" |
DBUS mntd NoMntPnt error. | |
Typedefs | |
typedef void(* | LibMntMainLoop )(DBusConnection *dbus_connection, void *user_data) |
Type for function to integrate a DBusConnection into it's own mainloop. | |
typedef void(* | LibMntVolumeMounted )(const char *udi, const char *mntpnt, void *user_data) |
Type for callback when a volume is mounted. | |
typedef void(* | LibMntVolumeUnmounted )(const char *udi, const char *mntpnt, void *user_data) |
Type for callback when a volume is unmounted. | |
typedef void(* | LibMntDbusDisconnect )(void *user_data) |
Type for callback when a disconnected from dbus. | |
typedef LIBMNTFUNCS_ | LIBMNTFUNCS |
Struct to group callbacks for signals. | |
typedef LIBMNTFUNCS_ * | PLIBMNTFUNCS |
Struct to group callbacks for signals. | |
Functions | |
int | mnt_init (PLIBMNTFUNCS functions, void *user_data) |
Initialize the MNT library. | |
void | mnt_quit (void) |
Shutdown the MNT library. | |
char ** | mnt_get_all_volumes (int *num_volumes) |
Get all volumes from mntd (with dbus method call). | |
char * | mnt_get_mntpnt (char *udi) |
Get mount point for a specific volume. | |
int | mnt_remount_rd (char *udi) |
Remount mntd volume read only. | |
int | mnt_remount_rw (char *udi) |
Remount mntd volume rdwr. | |
DBusConnection * | _mnt_get_connection (void) |
Get internal dbus connection. |
|
Type for callback when a disconnected from dbus.
|
|
Struct to group callbacks for signals. Set unneeded function pointers to NULL to disable them. |
|
Type for function to integrate a DBusConnection into it's own mainloop.
|
|
Type for callback when a volume is mounted.
|
|
Type for callback when a volume is unmounted.
|
|
Struct to group callbacks for signals. Set unneeded function pointers to NULL to disable them. Referenced by mnt_init(). |
|
Get internal dbus connection. This is for internal testing only, and will be removed some times. So don't use it ! |
|
Get all volumes from mntd (with dbus method call). You have to free each element and the data array by yourself.
Definition at line 270 of file libmnt.c. References DBUS_INTERFACE_MNT_MANAGER, DBUS_PATH_MNT_MANAGER, and DBUS_SERVICE_MNT. |
|
Get mount point for a specific volume. You have to free to returned mount point string yourself.
Definition at line 339 of file libmnt.c. References DBUS_INTERFACE_MNT_MANAGER, DBUS_PATH_MNT_MANAGER, and DBUS_SERVICE_MNT. |
|
Initialize the MNT library.
Definition at line 165 of file libmnt.c. References DBUS_INTERFACE_MNT_MANAGER, DBUS_PATH_MNT_MANAGER, DBUS_SERVICE_MNT, LIBMNTFUNCS_::main_loop, and PLIBMNTFUNCS. |
|
Remount mntd volume read only.
|
|
Remount mntd volume rdwr.
|