StoragedCrypttabMonitor

StoragedCrypttabMonitor — Monitors entries in the crypttab file

Synopsis

                    StoragedCrypttabEntry;
const gchar *       storaged_crypttab_entry_get_name    (StoragedCrypttabEntry *entry);
const gchar *       storaged_crypttab_entry_get_device  (StoragedCrypttabEntry *entry);
const gchar *       storaged_crypttab_entry_get_passphrase_path
                                                        (StoragedCrypttabEntry *entry);
const gchar *       storaged_crypttab_entry_get_options (StoragedCrypttabEntry *entry);
gint                storaged_crypttab_entry_compare     (StoragedCrypttabEntry *entry,
                                                         StoragedCrypttabEntry *other_entry);
                    StoragedCrypttabMonitor;
StoragedCrypttabMonitor * storaged_crypttab_monitor_new (void);
GList *             storaged_crypttab_monitor_get_entries
                                                        (StoragedCrypttabMonitor *monitor);

Object Hierarchy

  GObject
   +----StoragedCrypttabEntry
  GObject
   +----StoragedCrypttabMonitor

Signals

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

Description

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

Details

StoragedCrypttabEntry

typedef struct _StoragedCrypttabEntry StoragedCrypttabEntry;

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


storaged_crypttab_entry_get_name ()

const gchar *       storaged_crypttab_entry_get_name    (StoragedCrypttabEntry *entry);

Gets the name field of entry.

entry :

A StoragedCrypttabEntry.

Returns :

The name field.

storaged_crypttab_entry_get_device ()

const gchar *       storaged_crypttab_entry_get_device  (StoragedCrypttabEntry *entry);

Gets the device field of entry.

entry :

A StoragedCrypttabEntry.

Returns :

The device field.

storaged_crypttab_entry_get_passphrase_path ()

const gchar *       storaged_crypttab_entry_get_passphrase_path
                                                        (StoragedCrypttabEntry *entry);

Gets the passphrase path field of entry.

entry :

A StoragedCrypttabEntry.

Returns :

The passphrase path field.

storaged_crypttab_entry_get_options ()

const gchar *       storaged_crypttab_entry_get_options (StoragedCrypttabEntry *entry);

Gets the options field of entry.

entry :

A StoragedCrypttabEntry.

Returns :

The options field.

storaged_crypttab_entry_compare ()

gint                storaged_crypttab_entry_compare     (StoragedCrypttabEntry *entry,
                                                         StoragedCrypttabEntry *other_entry);

Comparison function for comparing two StoragedCrypttabEntry objects.

entry :

A StoragedCrypttabEntry

other_entry :

Another StoragedCrypttabEntry.

Returns :

Negative value if entry < other_entry; zero if entry = other_entry; positive value if entry > other_entry.

StoragedCrypttabMonitor

typedef struct _StoragedCrypttabMonitor StoragedCrypttabMonitor;

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


storaged_crypttab_monitor_new ()

StoragedCrypttabMonitor * storaged_crypttab_monitor_new (void);

Creates a new StoragedCrypttabMonitor object.

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

Returns :

A StoragedCrypttabMonitor. Free with g_object_unref().

storaged_crypttab_monitor_get_entries ()

GList *             storaged_crypttab_monitor_get_entries
                                                        (StoragedCrypttabMonitor *monitor);

Gets all /etc/crypttab entries

monitor :

A StoragedCrypttabMonitor.

Returns :

A list of StoragedCrypttabEntry objects that must be freed with g_list_free() after each element has been freed with g_object_unref(). [transfer full][element-type StoragedCrypttabEntry]

Signal Details

The "entry-added" signal

void                user_function                      (StoragedCrypttabMonitor *monitor,
                                                        StoragedCrypttabEntry   *entry,
                                                        gpointer                 user_data)      : Has Details

Emitted when a crypttab entry is added.

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

monitor :

A StoragedCrypttabMonitor.

entry :

The StoragedCrypttabEntry that was added.

user_data :

user data set when the signal handler was connected.

The "entry-removed" signal

void                user_function                      (StoragedCrypttabMonitor *monitor,
                                                        StoragedCrypttabEntry   *entry,
                                                        gpointer                 user_data)      : Has Details

Emitted when a crypttab entry is removed.

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

monitor :

A StoragedCrypttabMonitor.

entry :

The StoragedCrypttabEntry that was removed.

user_data :

user data set when the signal handler was connected.