| libmm-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Properties | Signals | ||||
MmGdbusModemOmaMmGdbusModemOma — Generated C code for the org.freedesktop.ModemManager1.Modem.Oma D-Bus interface |
MmGdbusModemOma; struct MmGdbusModemOmaIface; void mm_gdbus_modem_oma_call_accept_network_initiated_session (MmGdbusModemOma *proxy,guint arg_session_id,gboolean arg_accept,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_gdbus_modem_oma_call_accept_network_initiated_session_finish (MmGdbusModemOma *proxy,GAsyncResult *res,GError **error); gboolean mm_gdbus_modem_oma_call_accept_network_initiated_session_sync (MmGdbusModemOma *proxy,guint arg_session_id,gboolean arg_accept,GCancellable *cancellable,GError **error); void mm_gdbus_modem_oma_call_cancel_session (MmGdbusModemOma *proxy,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_gdbus_modem_oma_call_cancel_session_finish (MmGdbusModemOma *proxy,GAsyncResult *res,GError **error); gboolean mm_gdbus_modem_oma_call_cancel_session_sync (MmGdbusModemOma *proxy,GCancellable *cancellable,GError **error); void mm_gdbus_modem_oma_call_setup (MmGdbusModemOma *proxy,guint arg_features,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_gdbus_modem_oma_call_setup_finish (MmGdbusModemOma *proxy,GAsyncResult *res,GError **error); gboolean mm_gdbus_modem_oma_call_setup_sync (MmGdbusModemOma *proxy,guint arg_features,GCancellable *cancellable,GError **error); void mm_gdbus_modem_oma_call_start_client_initiated_session (MmGdbusModemOma *proxy,guint arg_session_type,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_gdbus_modem_oma_call_start_client_initiated_session_finish (MmGdbusModemOma *proxy,GAsyncResult *res,GError **error); gboolean mm_gdbus_modem_oma_call_start_client_initiated_session_sync (MmGdbusModemOma *proxy,guint arg_session_type,GCancellable *cancellable,GError **error); guint mm_gdbus_modem_oma_get_features (MmGdbusModemOma *object); gint mm_gdbus_modem_oma_get_session_state (MmGdbusModemOma *object); guint mm_gdbus_modem_oma_get_session_type (MmGdbusModemOma *object); GVariant * mm_gdbus_modem_oma_get_pending_network_initiated_sessions (MmGdbusModemOma *object); GVariant * mm_gdbus_modem_oma_dup_pending_network_initiated_sessions (MmGdbusModemOma *object);
MmGdbusModemOma is implemented by MMModemOma, MmGdbusModemOmaProxy and MmGdbusModemOmaSkeleton.
"features" guint : Read / Write "pending-network-initiated-sessions" GVariant* : Read / Write "session-state" gint : Read / Write "session-type" guint : Read / Write
"handle-accept-network-initiated-session" :Run Last"handle-cancel-session" :Run Last"handle-setup" :Run Last"handle-start-client-initiated-session" :Run Last"session-state-changed" :Run Last
This section contains code for working with the org.freedesktop.ModemManager1.Modem.Oma D-Bus interface in C.
typedef struct _MmGdbusModemOma MmGdbusModemOma;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.Oma.
struct MmGdbusModemOmaIface {
GTypeInterface parent_iface;
gboolean (*handle_accept_network_initiated_session) (
MmGdbusModemOma *object,
GDBusMethodInvocation *invocation,
guint arg_session_id,
gboolean arg_accept);
gboolean (*handle_cancel_session) (
MmGdbusModemOma *object,
GDBusMethodInvocation *invocation);
gboolean (*handle_setup) (
MmGdbusModemOma *object,
GDBusMethodInvocation *invocation,
guint arg_features);
gboolean (*handle_start_client_initiated_session) (
MmGdbusModemOma *object,
GDBusMethodInvocation *invocation,
guint arg_session_type);
guint (*get_features) (MmGdbusModemOma *object);
GVariant * (*get_pending_network_initiated_sessions) (MmGdbusModemOma *object);
gint (*get_session_state) (MmGdbusModemOma *object);
guint (*get_session_type) (MmGdbusModemOma *object);
void (*session_state_changed) (
MmGdbusModemOma *object,
gint arg_old_session_state,
gint arg_new_session_state,
guint arg_session_state_failed_reason);
};
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.Oma.
GTypeInterface |
The parent interface. |
| Handler for the "handle-accept-network-initiated-session" signal. | |
| Handler for the "handle-cancel-session" signal. | |
| Handler for the "handle-setup" signal. | |
| Handler for the "handle-start-client-initiated-session" signal. | |
| Getter for the "features" property. | |
| Getter for the "pending-network-initiated-sessions" property. | |
| Getter for the "session-state" property. | |
| Getter for the "session-type" property. | |
| Handler for the "session-state-changed" signal. |
void mm_gdbus_modem_oma_call_accept_network_initiated_session (MmGdbusModemOma *proxy,guint arg_session_id,gboolean arg_accept,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the AcceptNetworkInitiatedSession()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_oma_call_accept_network_initiated_session_finish() to get the result of the operation.
See mm_gdbus_modem_oma_call_accept_network_initiated_session_sync() for the synchronous, blocking version of this method.
|
A MmGdbusModemOmaProxy. |
|
Argument to pass with the method invocation. |
|
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_oma_call_accept_network_initiated_session_finish (MmGdbusModemOma *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_modem_oma_call_accept_network_initiated_session().
|
A MmGdbusModemOmaProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_oma_call_accept_network_initiated_session(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean mm_gdbus_modem_oma_call_accept_network_initiated_session_sync (MmGdbusModemOma *proxy,guint arg_session_id,gboolean arg_accept,GCancellable *cancellable,GError **error);
Synchronously invokes the AcceptNetworkInitiatedSession()proxy. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_oma_call_accept_network_initiated_session() for the asynchronous version of this method.
|
A MmGdbusModemOmaProxy. |
|
Argument to pass with the method invocation. |
|
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_oma_call_cancel_session (MmGdbusModemOma *proxy,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the CancelSession()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_oma_call_cancel_session_finish() to get the result of the operation.
See mm_gdbus_modem_oma_call_cancel_session_sync() for the synchronous, blocking version of this method.
|
A MmGdbusModemOmaProxy. |
|
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_oma_call_cancel_session_finish (MmGdbusModemOma *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_modem_oma_call_cancel_session().
|
A MmGdbusModemOmaProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_oma_call_cancel_session(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean mm_gdbus_modem_oma_call_cancel_session_sync (MmGdbusModemOma *proxy,GCancellable *cancellable,GError **error);
Synchronously invokes the CancelSession()proxy. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_oma_call_cancel_session() for the asynchronous version of this method.
|
A MmGdbusModemOmaProxy. |
|
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_oma_call_setup (MmGdbusModemOma *proxy,guint arg_features,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the Setup()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_oma_call_setup_finish() to get the result of the operation.
See mm_gdbus_modem_oma_call_setup_sync() for the synchronous, blocking version of this method.
|
A MmGdbusModemOmaProxy. |
|
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_oma_call_setup_finish (MmGdbusModemOma *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_modem_oma_call_setup().
|
A MmGdbusModemOmaProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_oma_call_setup(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean mm_gdbus_modem_oma_call_setup_sync (MmGdbusModemOma *proxy,guint arg_features,GCancellable *cancellable,GError **error);
Synchronously invokes the Setup()proxy. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_oma_call_setup() for the asynchronous version of this method.
|
A MmGdbusModemOmaProxy. |
|
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_oma_call_start_client_initiated_session (MmGdbusModemOma *proxy,guint arg_session_type,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the StartClientInitiatedSession()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_oma_call_start_client_initiated_session_finish() to get the result of the operation.
See mm_gdbus_modem_oma_call_start_client_initiated_session_sync() for the synchronous, blocking version of this method.
|
A MmGdbusModemOmaProxy. |
|
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_oma_call_start_client_initiated_session_finish (MmGdbusModemOma *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_modem_oma_call_start_client_initiated_session().
|
A MmGdbusModemOmaProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_oma_call_start_client_initiated_session(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean mm_gdbus_modem_oma_call_start_client_initiated_session_sync (MmGdbusModemOma *proxy,guint arg_session_type,GCancellable *cancellable,GError **error);
Synchronously invokes the StartClientInitiatedSession()proxy. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_oma_call_start_client_initiated_session() for the asynchronous version of this method.
|
A MmGdbusModemOmaProxy. |
|
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]
|
guint mm_gdbus_modem_oma_get_features (MmGdbusModemOma *object);
Gets the value of the "Features" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A MmGdbusModemOma. |
Returns : |
The property value. |
gint mm_gdbus_modem_oma_get_session_state
(MmGdbusModemOma *object);
Gets the value of the "SessionState" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A MmGdbusModemOma. |
Returns : |
The property value. |
guint mm_gdbus_modem_oma_get_session_type (MmGdbusModemOma *object);
Gets the value of the "SessionType" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A MmGdbusModemOma. |
Returns : |
The property value. |
GVariant * mm_gdbus_modem_oma_get_pending_network_initiated_sessions
(MmGdbusModemOma *object);
Gets the value of the "PendingNetworkInitiatedSessions" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use mm_gdbus_modem_oma_dup_pending_network_initiated_sessions() if on another thread.
|
A MmGdbusModemOma. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
GVariant * mm_gdbus_modem_oma_dup_pending_network_initiated_sessions
(MmGdbusModemOma *object);
Gets a copy of the "PendingNetworkInitiatedSessions" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A MmGdbusModemOma. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_variant_unref(). [transfer full]
|
"features" property"features" guint : Read / Write
Represents the D-Bus property "Features".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: 0
"pending-network-initiated-sessions" property"pending-network-initiated-sessions" GVariant* : Read / Write
Represents the D-Bus property "PendingNetworkInitiatedSessions".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Allowed values: GVariant<a(uu)>
Default value: NULL
"session-state" property"session-state" gint : Read / Write
Represents the D-Bus property "SessionState".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: 0
"session-type" property"session-type" guint : Read / Write
Represents the D-Bus property "SessionType".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: 0
"handle-accept-network-initiated-session" signalgboolean user_function (MmGdbusModemOma *object,
GDBusMethodInvocation *invocation,
guint arg_session_id,
gboolean arg_accept,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the AcceptNetworkInitiatedSession()
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_oma_complete_accept_network_initiated_session() 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 MmGdbusModemOma. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
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-cancel-session" signalgboolean user_function (MmGdbusModemOma *object,
GDBusMethodInvocation *invocation,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the CancelSession()
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_oma_complete_cancel_session() 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 MmGdbusModemOma. |
|
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. |
"handle-setup" signalgboolean user_function (MmGdbusModemOma *object,
GDBusMethodInvocation *invocation,
guint arg_features,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the Setup()
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_oma_complete_setup() 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 MmGdbusModemOma. |
|
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-start-client-initiated-session" signalgboolean user_function (MmGdbusModemOma *object,
GDBusMethodInvocation *invocation,
guint arg_session_type,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the StartClientInitiatedSession()
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_oma_complete_start_client_initiated_session() 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 MmGdbusModemOma. |
|
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. |
"session-state-changed" signalvoid user_function (MmGdbusModemOma *object,
gint arg_old_session_state,
gint arg_new_session_state,
guint arg_session_state_failed_reason,
gpointer user_data) : Run Last
On the client-side, this signal is emitted whenever the D-Bus signal "SessionStateChanged" is received.
On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
|
A MmGdbusModemOma. |
|
Argument. |
|
Argument. |
|
Argument. |
|
user data set when the signal handler was connected. |