|  |  |  | libmm-glib Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Signals | ||||
| MmGdbusModemFirmwareMmGdbusModemFirmware — Generated C code for the org.freedesktop.ModemManager1.Modem.Firmware D-Bus interface | 
MmGdbusModemFirmware; struct MmGdbusModemFirmwareIface; void mm_gdbus_modem_firmware_call_list (MmGdbusModemFirmware *proxy,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_gdbus_modem_firmware_call_list_finish (MmGdbusModemFirmware *proxy,gchar **out_selected,GVariant **out_installed,GAsyncResult *res,GError **error); gboolean mm_gdbus_modem_firmware_call_list_sync (MmGdbusModemFirmware *proxy,gchar **out_selected,GVariant **out_installed,GCancellable *cancellable,GError **error); void mm_gdbus_modem_firmware_call_select (MmGdbusModemFirmware *proxy,const gchar *arg_uniqueid,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_gdbus_modem_firmware_call_select_finish (MmGdbusModemFirmware *proxy,GAsyncResult *res,GError **error); gboolean mm_gdbus_modem_firmware_call_select_sync (MmGdbusModemFirmware *proxy,const gchar *arg_uniqueid,GCancellable *cancellable,GError **error);
MmGdbusModemFirmware is implemented by MMModemFirmware, MmGdbusModemFirmwareProxy and MmGdbusModemFirmwareSkeleton.
This section contains code for working with the org.freedesktop.ModemManager1.Modem.Firmware D-Bus interface in C.
typedef struct _MmGdbusModemFirmware MmGdbusModemFirmware;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.Firmware.
struct MmGdbusModemFirmwareIface {
  GTypeInterface parent_iface;
  gboolean (*handle_list) (
    MmGdbusModemFirmware *object,
    GDBusMethodInvocation *invocation);
  gboolean (*handle_select) (
    MmGdbusModemFirmware *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_uniqueid);
};
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.Firmware.
| GTypeInterface  | The parent interface. | 
| Handler for the "handle-list" signal. | |
| Handler for the "handle-select" signal. | 
void mm_gdbus_modem_firmware_call_list (MmGdbusModemFirmware *proxy,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the List()proxy.
When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call mm_gdbus_modem_firmware_call_list_finish() to get the result of the operation.
See mm_gdbus_modem_firmware_call_list_sync() for the synchronous, blocking version of this method.
| 
 | A MmGdbusModemFirmwareProxy. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | A GAsyncReadyCallback to call when the request is satisfied or NULL. | 
| 
 | User data to pass to callback. | 
gboolean mm_gdbus_modem_firmware_call_list_finish (MmGdbusModemFirmware *proxy,gchar **out_selected,GVariant **out_installed,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_modem_firmware_call_list().
| 
 | A MmGdbusModemFirmwareProxy. | 
| 
 | Return location for return parameter or NULLto ignore. [out] | 
| 
 | Return location for return parameter or NULLto ignore. [out] | 
| 
 | The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_firmware_call_list(). | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the call succeded,FALSEiferroris set. [skip] | 
gboolean mm_gdbus_modem_firmware_call_list_sync (MmGdbusModemFirmware *proxy,gchar **out_selected,GVariant **out_installed,GCancellable *cancellable,GError **error);
Synchronously invokes the List()proxy. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_firmware_call_list() for the asynchronous version of this method.
| 
 | A MmGdbusModemFirmwareProxy. | 
| 
 | Return location for return parameter or NULLto ignore. [out] | 
| 
 | Return location for return parameter or NULLto ignore. [out] | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the call succeded,FALSEiferroris set. [skip] | 
void mm_gdbus_modem_firmware_call_select (MmGdbusModemFirmware *proxy,const gchar *arg_uniqueid,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the Select()proxy.
When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call mm_gdbus_modem_firmware_call_select_finish() to get the result of the operation.
See mm_gdbus_modem_firmware_call_select_sync() for the synchronous, blocking version of this method.
| 
 | A MmGdbusModemFirmwareProxy. | 
| 
 | Argument to pass with the method invocation. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | A GAsyncReadyCallback to call when the request is satisfied or NULL. | 
| 
 | User data to pass to callback. | 
gboolean mm_gdbus_modem_firmware_call_select_finish (MmGdbusModemFirmware *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_modem_firmware_call_select().
| 
 | A MmGdbusModemFirmwareProxy. | 
| 
 | The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_firmware_call_select(). | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the call succeded,FALSEiferroris set. [skip] | 
gboolean mm_gdbus_modem_firmware_call_select_sync (MmGdbusModemFirmware *proxy,const gchar *arg_uniqueid,GCancellable *cancellable,GError **error);
Synchronously invokes the Select()proxy. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_firmware_call_select() for the asynchronous version of this method.
| 
 | A MmGdbusModemFirmwareProxy. | 
| 
 | Argument to pass with the method invocation. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the call succeded,FALSEiferroris set. [skip] | 
"handle-list" signalgboolean            user_function                      (MmGdbusModemFirmware  *object,
                                                        GDBusMethodInvocation *invocation,
                                                        gpointer               user_data)       : Run Last
Signal emitted when a remote caller is invoking the List()
If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call mm_gdbus_modem_firmware_complete_list() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
| 
 | A MmGdbusModemFirmware. | 
| 
 | A GDBusMethodInvocation. | 
| 
 | user data set when the signal handler was connected. | 
| Returns : | TRUEif the invocation was handled,FALSEto let other signal handlers run. | 
"handle-select" signalgboolean            user_function                      (MmGdbusModemFirmware  *object,
                                                        GDBusMethodInvocation *invocation,
                                                        gchar                 *arg_uniqueid,
                                                        gpointer               user_data)         : Run Last
Signal emitted when a remote caller is invoking the Select()
If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call mm_gdbus_modem_firmware_complete_select() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
| 
 | A MmGdbusModemFirmware. | 
| 
 | A GDBusMethodInvocation. | 
| 
 | Argument passed by remote caller. | 
| 
 | user data set when the signal handler was connected. | 
| Returns : | TRUEif the invocation was handled,FALSEto let other signal handlers run. |