| Top |
MmGdbusModemFirmwareMmGdbusModemFirmware — Generated C code for the org.freedesktop.ModemManager1.Modem.Firmware D-Bus interface |
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.
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.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
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().
proxy |
||
out_selected |
Return location for return parameter or |
[out] |
out_installed |
Return location for return parameter or |
[out] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
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.
proxy |
||
out_selected |
Return location for return parameter or |
[out] |
out_installed |
Return location for return parameter or |
[out] |
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
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.
proxy |
||
arg_uniqueid |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
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().
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
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.
proxy |
||
arg_uniqueid |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
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. |
“handle-list” signalgboolean user_function (MmGdbusModemFirmware *object, GDBusMethodInvocation *invocation, gpointer user_data)
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.
Flags: Run Last
“handle-select” signalgboolean user_function (MmGdbusModemFirmware *object, GDBusMethodInvocation *invocation, gchar *arg_uniqueid, gpointer user_data)
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.
object |
||
invocation |
||
arg_uniqueid |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last