libmm-glib,simple-connect-properties: move deprecated methods to compat source
This commit is contained in:
@@ -884,8 +884,6 @@ mm_simple_connect_properties_get_rm_protocol
|
||||
mm_simple_connect_properties_set_rm_protocol
|
||||
mm_simple_connect_properties_get_multiplex
|
||||
mm_simple_connect_properties_set_multiplex
|
||||
mm_simple_connect_properties_get_number
|
||||
mm_simple_connect_properties_set_number
|
||||
<SUBSECTION Private>
|
||||
mm_simple_connect_properties_get_bearer_properties
|
||||
mm_simple_connect_properties_new_from_dictionary
|
||||
@@ -1823,6 +1821,9 @@ mm_serial_error_get_type
|
||||
<SECTION>
|
||||
<FILE>mm-compat</FILE>
|
||||
<TITLE>Deprecated Interface</TITLE>
|
||||
<SUBSECTION SimpleConnectProperties>
|
||||
mm_simple_connect_properties_get_number
|
||||
mm_simple_connect_properties_set_number
|
||||
<SUBSECTION BearerProperties>
|
||||
mm_bearer_properties_get_number
|
||||
mm_bearer_properties_set_number
|
||||
|
@@ -28,6 +28,22 @@
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
void
|
||||
mm_simple_connect_properties_set_number (MMSimpleConnectProperties *self,
|
||||
const gchar *number)
|
||||
{
|
||||
/* NO-OP */
|
||||
}
|
||||
|
||||
const gchar *
|
||||
mm_simple_connect_properties_get_number (MMSimpleConnectProperties *self)
|
||||
{
|
||||
/* NO-OP */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
void
|
||||
mm_bearer_properties_set_number (MMBearerProperties *self,
|
||||
const gchar *number)
|
||||
|
@@ -29,6 +29,7 @@
|
||||
#error "Only <libmm-glib.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include "mm-simple-connect-properties.h"
|
||||
#include "mm-bearer-properties.h"
|
||||
#include "mm-call-properties.h"
|
||||
#include "mm-modem-oma.h"
|
||||
@@ -44,6 +45,39 @@
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/**
|
||||
* mm_simple_connect_properties_set_number:
|
||||
* @self: a #MMSimpleConnectProperties.
|
||||
* @number: the number.
|
||||
*
|
||||
* Sets the number to use when performing the connection.
|
||||
*
|
||||
* Since: 1.0
|
||||
* Deprecated: 1.10.0. The number setting is not used anywhere, and therefore
|
||||
* it doesn't make sense to expose it in the ModemManager interface.
|
||||
*/
|
||||
G_DEPRECATED
|
||||
void mm_simple_connect_properties_set_number (MMSimpleConnectProperties *self,
|
||||
const gchar *number);
|
||||
|
||||
/**
|
||||
* mm_simple_connect_properties_get_number:
|
||||
* @self: a #MMSimpleConnectProperties.
|
||||
*
|
||||
* Gets the number to use when performing the connection.
|
||||
*
|
||||
* Returns: (transfer none): the number, or #NULL if not set. Do not free the
|
||||
* returned value, it is owned by @self.
|
||||
*
|
||||
* Since: 1.0
|
||||
* Deprecated: 1.10.0. The number setting is not used anywhere, and therefore
|
||||
* it doesn't make sense to expose it in the ModemManager interface.
|
||||
*/
|
||||
G_DEPRECATED
|
||||
const gchar *mm_simple_connect_properties_get_number (MMSimpleConnectProperties *self);
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/**
|
||||
* mm_bearer_properties_set_number:
|
||||
* @self: a #MMBearerProperties.
|
||||
|
@@ -519,54 +519,6 @@ mm_simple_connect_properties_get_multiplex (MMSimpleConnectProperties *self)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
#ifndef MM_DISABLE_DEPRECATED
|
||||
|
||||
/**
|
||||
* mm_simple_connect_properties_set_number:
|
||||
* @self: a #MMSimpleConnectProperties.
|
||||
* @number: the number.
|
||||
*
|
||||
* Sets the number to use when performing the connection.
|
||||
*
|
||||
* Since: 1.0
|
||||
* Deprecated: 1.10.0. The number setting is not used anywhere, and therefore
|
||||
* it doesn't make sense to expose it in the ModemManager interface.
|
||||
*/
|
||||
void
|
||||
mm_simple_connect_properties_set_number (MMSimpleConnectProperties *self,
|
||||
const gchar *number)
|
||||
{
|
||||
g_return_if_fail (MM_IS_SIMPLE_CONNECT_PROPERTIES (self));
|
||||
|
||||
/* NO-OP */
|
||||
}
|
||||
|
||||
/**
|
||||
* mm_simple_connect_properties_get_number:
|
||||
* @self: a #MMSimpleConnectProperties.
|
||||
*
|
||||
* Gets the number to use when performing the connection.
|
||||
*
|
||||
* Returns: (transfer none): the number, or #NULL if not set. Do not free the
|
||||
* returned value, it is owned by @self.
|
||||
*
|
||||
* Since: 1.0
|
||||
* Deprecated: 1.10.0. The number setting is not used anywhere, and therefore
|
||||
* it doesn't make sense to expose it in the ModemManager interface.
|
||||
*/
|
||||
const gchar *
|
||||
mm_simple_connect_properties_get_number (MMSimpleConnectProperties *self)
|
||||
{
|
||||
g_return_val_if_fail (MM_IS_SIMPLE_CONNECT_PROPERTIES (self), NULL);
|
||||
|
||||
/* NO-OP */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif /* MM_DISABLE_DEPRECATED */
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/**
|
||||
* mm_simple_connect_properties_get_bearer_properties: (skip)
|
||||
*/
|
||||
|
@@ -98,14 +98,6 @@ gboolean mm_simple_connect_properties_get_allow_roaming (MMSimp
|
||||
MMModemCdmaRmProtocol mm_simple_connect_properties_get_rm_protocol (MMSimpleConnectProperties *self);
|
||||
MMBearerMultiplexSupport mm_simple_connect_properties_get_multiplex (MMSimpleConnectProperties *self);
|
||||
|
||||
#ifndef MM_DISABLE_DEPRECATED
|
||||
G_DEPRECATED
|
||||
void mm_simple_connect_properties_set_number (MMSimpleConnectProperties *self,
|
||||
const gchar *number);
|
||||
G_DEPRECATED
|
||||
const gchar *mm_simple_connect_properties_get_number (MMSimpleConnectProperties *self);
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
/* ModemManager/libmm-glib/mmcli specific methods */
|
||||
|
||||
|
Reference in New Issue
Block a user