UDisksFstabMonitor

## UDisksFstabMonitor UDisksFstabMonitor — Monitors entries in the fstab file |

## Synopsis

                        UDisksFstabEntry;
    const gchar *       udisks_fstab_entry_get_fsname       (UDisksFstabEntry *entry);
    const gchar *       udisks_fstab_entry_get_dir          (UDisksFstabEntry *entry);
    const gchar *       udisks_fstab_entry_get_fstype       (UDisksFstabEntry *entry);
    const gchar *       udisks_fstab_entry_get_opts         (UDisksFstabEntry *entry);
    gint                udisks_fstab_entry_get_freq         (UDisksFstabEntry *entry);
    gint                udisks_fstab_entry_get_passno       (UDisksFstabEntry *entry);
    gint                udisks_fstab_entry_compare          (UDisksFstabEntry *entry,
                                                             UDisksFstabEntry *other_entry);
                        UDisksFstabMonitor;
    UDisksFstabMonitor * udisks_fstab_monitor_new           (void);
    GList *             udisks_fstab_monitor_get_entries    (UDisksFstabMonitor *monitor);

## Object Hierarchy

      GObject
       +----UDisksFstabEntry

      GObject
       +----UDisksFstabMonitor

## Signals

      "entry-added"                                    : Has Details
      "entry-removed"                                  : Has Details

## Description

This type is used for monitoring entries in the `/etc/fstab` file.

## Details

### UDisksFstabEntry

    typedef struct _UDisksFstabEntry UDisksFstabEntry;

The UDisksFstabEntry structure contains only private data and should only be accessed using the provided API.

### udisks_fstab_entry_get_fsname ()

    const gchar *       udisks_fstab_entry_get_fsname       (UDisksFstabEntry *entry);

Gets the fsname field of `entry`.

`entry` : | A UDisksFstabEntry.
Returns : | The fsname field.

### udisks_fstab_entry_get_dir ()

    const gchar *       udisks_fstab_entry_get_dir          (UDisksFstabEntry *entry);

Gets the dir field of `entry`.

`entry` : | A UDisksFstabEntry.
Returns : | The dir field.

### udisks_fstab_entry_get_fstype ()

    const gchar *       udisks_fstab_entry_get_fstype       (UDisksFstabEntry *entry);

Gets the type field of `entry`.

`entry` : | A UDisksFstabEntry.
Returns : | The type field.

### udisks_fstab_entry_get_opts ()

    const gchar *       udisks_fstab_entry_get_opts         (UDisksFstabEntry *entry);

Gets the opts field of `entry`.

`entry` : | A UDisksFstabEntry.
Returns : | The opts field.

### udisks_fstab_entry_get_freq ()

    gint                udisks_fstab_entry_get_freq         (UDisksFstabEntry *entry);

Gets the freq field of `entry`.

`entry` : | A UDisksFstabEntry.
Returns : | The freq field.

### udisks_fstab_entry_get_passno ()

    gint                udisks_fstab_entry_get_passno       (UDisksFstabEntry *entry);

Gets the passno field of `entry`.

`entry` : | A UDisksFstabEntry.
Returns : | The passno field.

### udisks_fstab_entry_compare ()

    gint                udisks_fstab_entry_compare          (UDisksFstabEntry *entry,
                                                             UDisksFstabEntry *other_entry);

Comparison function for comparing two UDisksFstabEntry objects.

`entry` : | A UDisksFstabEntry
`other_entry` : | Another UDisksFstabEntry.
Returns : | Negative value if `entry` < `other_entry`; zero if `entry` = `other_entry`; positive value if `entry` > `other_entry`.

### UDisksFstabMonitor

    typedef struct _UDisksFstabMonitor UDisksFstabMonitor;

The UDisksFstabMonitor structure contains only private data and should only be accessed using the provided API.

### udisks_fstab_monitor_new ()

    UDisksFstabMonitor * udisks_fstab_monitor_new           (void);

Creates a new UDisksFstabMonitor object.

Signals are emitted in the thread-default main loop that this function is called from.

Returns : | A UDisksFstabMonitor. Free with `g_object_unref()`.

### udisks_fstab_monitor_get_entries ()

    GList *             udisks_fstab_monitor_get_entries    (UDisksFstabMonitor *monitor);

Gets all /etc/fstab entries

`monitor` : | A UDisksFstabMonitor.
Returns : | A list of UDisksFstabEntry objects that must be freed with `g_list_free()` after each element has been freed with `g_object_unref()`. [transfer full][element-type UDisksFstabEntry]

## Signal Details

### The `"entry-added"` signal

    void                user_function                      (UDisksFstabMonitor *monitor,
                                                            UDisksFstabEntry   *entry,
                                                            gpointer            user_data)      : Has Details

Emitted when a fstab entry is added.

This signal is emitted in the thread-default main loop that `monitor` was created in.

`monitor` : | A UDisksFstabMonitor.
`entry` : | The UDisksFstabEntry that was added.
`user_data` : | user data set when the signal handler was connected.

### The `"entry-removed"` signal

    void                user_function                      (UDisksFstabMonitor *monitor,
                                                            UDisksFstabEntry   *entry,
                                                            gpointer            user_data)      : Has Details

Emitted when a fstab entry is removed.

This signal is emitted in the thread-default main loop that `monitor` was created in.

`monitor` : | A UDisksFstabMonitor.
`entry` : | The UDisksFstabEntry that was removed.
`user_data` : | user data set when the signal handler was connected.