| libmm-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
struct MMUnlockRetries; #define MM_UNLOCK_RETRIES_UNKNOWN guint mm_unlock_retries_get (MMUnlockRetries *self,MMModemLock lock); void (*MMUnlockRetriesForeachCb) (MMModemLock lock,guint count,gpointer user_data); void mm_unlock_retries_foreach (MMUnlockRetries *self,MMUnlockRetriesForeachCb callback,gpointer user_data);
The MMUnlockRetries is an object exposing the unlock retry counts for different MMModemLock values.
This object is retrieved from the MMModem object with either
mm_modem_get_unlock_retries() or mm_modem_peek_unlock_retries().
struct MMUnlockRetries;
The MMUnlockRetries structure contains private data and should only be accessed using the provided API.
#define MM_UNLOCK_RETRIES_UNKNOWN 999
Identifier for reporting unknown unlock retries.
guint mm_unlock_retries_get (MMUnlockRetries *self,MMModemLock lock);
Gets the unlock retries for the given lock.
|
a MMUnlockRetries. |
|
a MMModemLock. |
Returns : |
the unlock retries or MM_UNLOCK_RETRIES_UNKNOWN if unknown. |
void (*MMUnlockRetriesForeachCb) (MMModemLock lock,guint count,gpointer user_data);
Specifies the type of function passed to mm_unlock_retries_foreach().
|
a MMModemLock. |
|
the number of retries left for lock. |
|
data passed to the function. |
void mm_unlock_retries_foreach (MMUnlockRetries *self,MMUnlockRetriesForeachCb callback,gpointer user_data);
Executes callback for each lock information found in self.
|
a MMUnlockRetries. |
|
callback to call for each available lock. |
|
data to pass to callback. |