iface-modem: new methods to setup/cleanup unsolicited result codes

This commit is contained in:
Aleksander Morgado
2011-12-29 11:31:27 +01:00
parent b29acbb239
commit 953be3e81d
2 changed files with 152 additions and 0 deletions

View File

@@ -221,6 +221,30 @@ struct _MMIfaceModem {
GAsyncResult *res,
GError **error);
/* Asynchronous setup of indicators */
void (*setup_indicators) (MMIfaceModem *self,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean (*setup_indicators_finish) (MMIfaceModem *self,
GAsyncResult *res,
GError **error);
/* Asynchronous enabling of unsolicited events */
void (*enable_unsolicited_events) (MMIfaceModem *self,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean (*enable_unsolicited_events_finish) (MMIfaceModem *self,
GAsyncResult *res,
GError **error);
/* Asynchronous disabling of unsolicited events */
void (*disable_unsolicited_events) (MMIfaceModem *self,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean (*disable_unsolicited_events_finish) (MMIfaceModem *self,
GAsyncResult *res,
GError **error);
/* Asynchronous modem power-down operation */
void (*modem_power_down) (MMIfaceModem *self,
GAsyncReadyCallback callback,