base-modem: new enable()' and disable()' async methods
Users will be able to enable or disable modems using the DBus interface. We will chain up the `Enable(boolean)' call from the DBus interface to these new methods in the base modem class.
This commit is contained in:
@@ -65,6 +65,26 @@ struct _MMBaseModemClass {
|
||||
gboolean (*initialize_finish) (MMBaseModem *self,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
/* Modem enabling.
|
||||
* User action requested from DBus, usually */
|
||||
void (* enable) (MMBaseModem *self,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*enable_finish) (MMBaseModem *self,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
/* Modem disabling.
|
||||
* User action requested from DBus, usually */
|
||||
void (* disable) (MMBaseModem *self,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*disable_finish) (MMBaseModem *self,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
};
|
||||
|
||||
GType mm_base_modem_get_type (void);
|
||||
|
||||
Reference in New Issue
Block a user