| Top | 
MmGdbusModemSimpleMmGdbusModemSimple — Generated C code for the org.freedesktop.ModemManager1.Modem.Simple D-Bus interface  | 
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.
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 (see g_main_context_push_thread_default()).
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.
proxy  | 
||
arg_properties  | 
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_simple_call_connect_finish (MmGdbusModemSimple *proxy,gchar **out_bearer,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_modem_simple_call_connect().
proxy  | 
||
out_bearer  | 
Return location for return parameter or   | 
[out][optional] | 
res  | 
The GAsyncResult obtained from the GAsyncReadyCallback passed to   | 
|
error  | 
Return location for error or   | 
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.
proxy  | 
||
arg_properties  | 
Argument to pass with the method invocation.  | 
|
out_bearer  | 
Return location for return parameter or   | 
[out][optional] | 
cancellable  | 
A GCancellable or   | 
[nullable] | 
error  | 
Return location for error or   | 
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 (see g_main_context_push_thread_default()).
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.
proxy  | 
||
arg_bearer  | 
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_simple_call_disconnect_finish (MmGdbusModemSimple *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_modem_simple_call_disconnect().
proxy  | 
||
res  | 
The GAsyncResult obtained from the GAsyncReadyCallback passed to   | 
|
error  | 
Return location for error or   | 
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.
proxy  | 
||
arg_bearer  | 
Argument to pass with the method invocation.  | 
|
cancellable  | 
A GCancellable or   | 
[nullable] | 
error  | 
Return location for error or   | 
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 (see g_main_context_push_thread_default()).
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.
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_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().
proxy  | 
||
out_properties  | 
Return location for return parameter or   | 
[out][optional] | 
res  | 
The GAsyncResult obtained from the GAsyncReadyCallback passed to   | 
|
error  | 
Return location for error or   | 
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.
proxy  | 
||
out_properties  | 
Return location for return parameter or   | 
[out][optional] | 
cancellable  | 
A GCancellable or   | 
[nullable] | 
error  | 
Return location for error or   | 
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.  | 
“handle-connect” signalgboolean user_function (MmGdbusModemSimple *object, GDBusMethodInvocation *invocation, GVariant *arg_properties, gpointer user_data)
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 other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
object  | 
||
invocation  | 
||
arg_properties  | 
Argument passed by remote caller.  | 
|
user_data  | 
user data set when the signal handler was connected.  | 
 G_DBUS_METHOD_INVOCATION_HANDLED or TRUE if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED or FALSE to let other signal handlers run.
Flags: Run Last
“handle-disconnect” signalgboolean user_function (MmGdbusModemSimple *object, GDBusMethodInvocation *invocation, char *arg_bearer, gpointer user_data)
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 other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
object  | 
||
invocation  | 
||
arg_bearer  | 
Argument passed by remote caller.  | 
|
user_data  | 
user data set when the signal handler was connected.  | 
 G_DBUS_METHOD_INVOCATION_HANDLED or TRUE if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED or FALSE to let other signal handlers run.
Flags: Run Last
“handle-get-status” signalgboolean user_function (MmGdbusModemSimple *object, GDBusMethodInvocation *invocation, gpointer user_data)
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 other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
 G_DBUS_METHOD_INVOCATION_HANDLED or TRUE if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED or FALSE to let other signal handlers run.
Flags: Run Last