libmm-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Signals |
MmGdbusModemSimpleMmGdbusModemSimple — Generated C code for the org.freedesktop.ModemManager1.Modem.Simple D-Bus interface |
MmGdbusModemSimple; struct MmGdbusModemSimpleIface; void mm_gdbus_modem_simple_call_connect (MmGdbusModemSimple *proxy
,GVariant *arg_properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_simple_call_connect_finish (MmGdbusModemSimple *proxy
,gchar **out_bearer
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_simple_call_connect_sync (MmGdbusModemSimple *proxy
,GVariant *arg_properties
,gchar **out_bearer
,GCancellable *cancellable
,GError **error
); void mm_gdbus_modem_simple_call_disconnect (MmGdbusModemSimple *proxy
,const gchar *arg_bearer
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_simple_call_disconnect_finish (MmGdbusModemSimple *proxy
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_simple_call_disconnect_sync (MmGdbusModemSimple *proxy
,const gchar *arg_bearer
,GCancellable *cancellable
,GError **error
); void mm_gdbus_modem_simple_call_get_status (MmGdbusModemSimple *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_simple_call_get_status_finish (MmGdbusModemSimple *proxy
,GVariant **out_properties
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_simple_call_get_status_sync (MmGdbusModemSimple *proxy
,GVariant **out_properties
,GCancellable *cancellable
,GError **error
);
MmGdbusModemSimple is implemented by MMModemSimple, MmGdbusModemSimpleProxy and MmGdbusModemSimpleSkeleton.
This section contains code for working with the org.freedesktop.ModemManager1.Modem.Simple D-Bus interface in C.
typedef struct _MmGdbusModemSimple MmGdbusModemSimple;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.Simple.
struct MmGdbusModemSimpleIface { GTypeInterface parent_iface; gboolean (*handle_connect) ( MmGdbusModemSimple *object, GDBusMethodInvocation *invocation, GVariant *arg_properties); gboolean (*handle_disconnect) ( MmGdbusModemSimple *object, GDBusMethodInvocation *invocation, const gchar *arg_bearer); gboolean (*handle_get_status) ( MmGdbusModemSimple *object, GDBusMethodInvocation *invocation); };
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.Simple.
GTypeInterface |
The parent interface. |
Handler for the "handle-connect" signal. | |
Handler for the "handle-disconnect" signal. | |
Handler for the "handle-get-status" signal. |
void mm_gdbus_modem_simple_call_connect (MmGdbusModemSimple *proxy
,GVariant *arg_properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Connect()
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_simple_call_connect_finish()
to get the result of the operation.
See mm_gdbus_modem_simple_call_connect_sync()
for the synchronous, blocking version of this method.
|
A MmGdbusModemSimpleProxy. |
|
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_simple_call_connect_finish (MmGdbusModemSimple *proxy
,gchar **out_bearer
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_simple_call_connect()
.
|
A MmGdbusModemSimpleProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_simple_call_connect() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean mm_gdbus_modem_simple_call_connect_sync (MmGdbusModemSimple *proxy
,GVariant *arg_properties
,gchar **out_bearer
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Connect()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_simple_call_connect()
for the asynchronous version of this method.
|
A MmGdbusModemSimpleProxy. |
|
Argument to pass with the method invocation. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
void mm_gdbus_modem_simple_call_disconnect (MmGdbusModemSimple *proxy
,const gchar *arg_bearer
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Disconnect()
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_simple_call_disconnect_finish()
to get the result of the operation.
See mm_gdbus_modem_simple_call_disconnect_sync()
for the synchronous, blocking version of this method.
|
A MmGdbusModemSimpleProxy. |
|
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_simple_call_disconnect_finish (MmGdbusModemSimple *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_simple_call_disconnect()
.
|
A MmGdbusModemSimpleProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_simple_call_disconnect() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean mm_gdbus_modem_simple_call_disconnect_sync (MmGdbusModemSimple *proxy
,const gchar *arg_bearer
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Disconnect()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_simple_call_disconnect()
for the asynchronous version of this method.
|
A MmGdbusModemSimpleProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
void mm_gdbus_modem_simple_call_get_status (MmGdbusModemSimple *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the GetStatus()
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_simple_call_get_status_finish()
to get the result of the operation.
See mm_gdbus_modem_simple_call_get_status_sync()
for the synchronous, blocking version of this method.
|
A MmGdbusModemSimpleProxy. |
|
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_simple_call_get_status_finish (MmGdbusModemSimple *proxy
,GVariant **out_properties
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_simple_call_get_status()
.
|
A MmGdbusModemSimpleProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_simple_call_get_status() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean mm_gdbus_modem_simple_call_get_status_sync (MmGdbusModemSimple *proxy
,GVariant **out_properties
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the GetStatus()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_simple_call_get_status()
for the asynchronous version of this method.
|
A MmGdbusModemSimpleProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
"handle-connect"
signalgboolean user_function (MmGdbusModemSimple *object,
GDBusMethodInvocation *invocation,
GVariant *arg_properties,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the Connect()
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_simple_complete_connect()
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 MmGdbusModemSimple. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |
"handle-disconnect"
signalgboolean user_function (MmGdbusModemSimple *object,
GDBusMethodInvocation *invocation,
gchar *arg_bearer,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the Disconnect()
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_simple_complete_disconnect()
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 MmGdbusModemSimple. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |
"handle-get-status"
signalgboolean user_function (MmGdbusModemSimple *object,
GDBusMethodInvocation *invocation,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the GetStatus()
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_simple_complete_get_status()
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 MmGdbusModemSimple. |
|
A GDBusMethodInvocation. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |