libmm-glib: number no longer needed in Connect()
This commit is contained in:
@@ -395,15 +395,12 @@ mm_bearer_get_properties (MMBearer *self)
|
|||||||
/**
|
/**
|
||||||
* mm_bearer_connect:
|
* mm_bearer_connect:
|
||||||
* @self: A #MMBearer.
|
* @self: A #MMBearer.
|
||||||
* @number: (allow-none): Number to use for dialing.
|
|
||||||
* @cancellable: (allow-none): A #GCancellable or %NULL.
|
* @cancellable: (allow-none): A #GCancellable or %NULL.
|
||||||
* @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
|
* @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
|
||||||
* @user_data: User data to pass to @callback.
|
* @user_data: User data to pass to @callback.
|
||||||
*
|
*
|
||||||
* Asynchronously requests activation of a packet data connection with the
|
* Asynchronously requests activation of a packet data connection with the
|
||||||
* network using this #MMBearer properties.
|
* network using this #MMBearer properties.
|
||||||
* @number is usually not required. It is only required for POTS connections
|
|
||||||
* or in certain special circumstances.
|
|
||||||
*
|
*
|
||||||
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
|
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
|
||||||
* You can then call mm_bearer_connect_finish() to get the result of the operation.
|
* You can then call mm_bearer_connect_finish() to get the result of the operation.
|
||||||
@@ -412,7 +409,6 @@ mm_bearer_get_properties (MMBearer *self)
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
mm_bearer_connect (MMBearer *self,
|
mm_bearer_connect (MMBearer *self,
|
||||||
const gchar *number,
|
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
@@ -420,7 +416,6 @@ mm_bearer_connect (MMBearer *self,
|
|||||||
g_return_if_fail (MM_GDBUS_IS_BEARER (self));
|
g_return_if_fail (MM_GDBUS_IS_BEARER (self));
|
||||||
|
|
||||||
mm_gdbus_bearer_call_connect (self,
|
mm_gdbus_bearer_call_connect (self,
|
||||||
number,
|
|
||||||
cancellable,
|
cancellable,
|
||||||
callback,
|
callback,
|
||||||
user_data);
|
user_data);
|
||||||
@@ -449,14 +444,11 @@ mm_bearer_connect_finish (MMBearer *self,
|
|||||||
/**
|
/**
|
||||||
* mm_bearer_connect_sync:
|
* mm_bearer_connect_sync:
|
||||||
* @self: A #MMBearer.
|
* @self: A #MMBearer.
|
||||||
* @number: (allow-none): Number to use for dialing.
|
|
||||||
* @cancellable: (allow-none): A #GCancellable or %NULL.
|
* @cancellable: (allow-none): A #GCancellable or %NULL.
|
||||||
* @error: Return location for error or %NULL.
|
* @error: Return location for error or %NULL.
|
||||||
*
|
*
|
||||||
* Synchronously requests activation of a packet data connection with the
|
* Synchronously requests activation of a packet data connection with the
|
||||||
* network using this #MMBearer properties.
|
* network using this #MMBearer properties.
|
||||||
* @number is usually not required. It is only required for POTS connections
|
|
||||||
* or in certain special circumstances.
|
|
||||||
*
|
*
|
||||||
* The calling thread is blocked until a reply is received.
|
* The calling thread is blocked until a reply is received.
|
||||||
* See mm_bearer_connect() for the asynchronous version of this method.
|
* See mm_bearer_connect() for the asynchronous version of this method.
|
||||||
@@ -465,14 +457,12 @@ mm_bearer_connect_finish (MMBearer *self,
|
|||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
mm_bearer_connect_sync (MMBearer *self,
|
mm_bearer_connect_sync (MMBearer *self,
|
||||||
const gchar *number,
|
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (MM_GDBUS_IS_BEARER (self), FALSE);
|
g_return_val_if_fail (MM_GDBUS_IS_BEARER (self), FALSE);
|
||||||
|
|
||||||
return mm_gdbus_bearer_call_connect_sync (self,
|
return mm_gdbus_bearer_call_connect_sync (self,
|
||||||
number,
|
|
||||||
cancellable,
|
cancellable,
|
||||||
error);
|
error);
|
||||||
}
|
}
|
||||||
|
@@ -51,7 +51,6 @@ gboolean mm_bearer_get_connected (MMBearer *self);
|
|||||||
gboolean mm_bearer_get_suspended (MMBearer *self);
|
gboolean mm_bearer_get_suspended (MMBearer *self);
|
||||||
|
|
||||||
void mm_bearer_connect (MMBearer *self,
|
void mm_bearer_connect (MMBearer *self,
|
||||||
const gchar *number,
|
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
@@ -59,7 +58,6 @@ gboolean mm_bearer_connect_finish (MMBearer *self,
|
|||||||
GAsyncResult *res,
|
GAsyncResult *res,
|
||||||
GError **error);
|
GError **error);
|
||||||
gboolean mm_bearer_connect_sync (MMBearer *self,
|
gboolean mm_bearer_connect_sync (MMBearer *self,
|
||||||
const gchar *number,
|
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user