diff options
-rw-r--r-- | docs/reference/libmm-glib/libmm-glib-sections.txt | 14 | ||||
-rw-r--r-- | libmm-glib/mm-call-properties.c | 127 | ||||
-rw-r--r-- | libmm-glib/mm-call-properties.h | 18 | ||||
-rw-r--r-- | libmm-glib/mm-compat.c | 48 | ||||
-rw-r--r-- | libmm-glib/mm-compat.h | 101 |
5 files changed, 157 insertions, 151 deletions
diff --git a/docs/reference/libmm-glib/libmm-glib-sections.txt b/docs/reference/libmm-glib/libmm-glib-sections.txt index 2ff239cd..d5c5423f 100644 --- a/docs/reference/libmm-glib/libmm-glib-sections.txt +++ b/docs/reference/libmm-glib/libmm-glib-sections.txt @@ -1465,12 +1465,6 @@ mm_call_properties_new <SUBSECTION GettersSetters> mm_call_properties_get_number mm_call_properties_set_number -mm_call_properties_get_direction -mm_call_properties_set_direction -mm_call_properties_get_state -mm_call_properties_set_state -mm_call_properties_get_state_reason -mm_call_properties_set_state_reason <SUBSECTION Private> mm_call_properties_get_dictionary mm_call_properties_dup @@ -1831,6 +1825,14 @@ mm_serial_error_get_type <SECTION> <FILE>mm-compat</FILE> <TITLE>Deprecated Interface</TITLE> +<SUBSECTION CallProperties> +mm_call_properties_get_direction +mm_call_properties_set_direction +mm_call_properties_get_state +mm_call_properties_set_state +mm_call_properties_get_state_reason +mm_call_properties_set_state_reason +<SUBSECTION ModemOma> mm_modem_peek_pending_network_initiated_sessions mm_modem_get_pending_network_initiated_sessions </SECTION> diff --git a/libmm-glib/mm-call-properties.c b/libmm-glib/mm-call-properties.c index 547fe868..10e2062d 100644 --- a/libmm-glib/mm-call-properties.c +++ b/libmm-glib/mm-call-properties.c @@ -84,133 +84,6 @@ mm_call_properties_get_number (MMCallProperties *self) /*****************************************************************************/ -#ifndef MM_DISABLE_DEPRECATED - -/** - * mm_call_properties_set_direction: - * @self: A #MMCallProperties. - * @direction: the call direction - * - * Sets the call direction. - * - * Since: 1.6 - * Deprecated: 1.12: the user should not specify the direction of the call, as - * it is implicit (outgoing always). Anyway, this parameter has always been - * ignored during the new call creation processing. - */ -void -mm_call_properties_set_direction (MMCallProperties *self, - MMCallDirection direction) -{ - /* NO-OP */ -} - -/** - * mm_call_properties_get_direction: - * @self: A #MMCallProperties. - * - * Gets the call direction. - * - * Returns: the call direction. - * - * Since: 1.6 - * Deprecated: 1.12: the user should not specify the direction of the call, as - * it is implicit (outgoing always). This parameter has always been ignored - * during the new call creation processing. - */ -MMCallDirection -mm_call_properties_get_direction (MMCallProperties *self) -{ - /* NO-OP */ - return MM_CALL_DIRECTION_UNKNOWN; -} - -/*****************************************************************************/ - -/** - * mm_call_properties_set_state: - * @self: A #MMCallProperties. - * @state: the call state - * - * Sets the call state - * - * Since: 1.6 - * Deprecated: 1.12: the user should not specify the state of the call before - * the call is created. This parameter has always been ignored during the new - * call creation processing. - */ -void -mm_call_properties_set_state (MMCallProperties *self, - MMCallState state) -{ - /* NO-OP */ -} - -/** - * mm_call_properties_get_state: - * @self: A #MMCallProperties. - * - * Gets the call state. - * - * Returns: the call state. - * - * Since: 1.6 - * Deprecated: 1.12: the user should not specify the state of the call before - * the call is created. This parameter has always been ignored during the new - * call creation processing. - */ -MMCallState -mm_call_properties_get_state (MMCallProperties *self) -{ - /* NO-OP */ - return MM_CALL_STATE_UNKNOWN; -} - -/*****************************************************************************/ - -/** - * mm_call_properties_set_state_reason: - * @self: A #MMCallProperties. - * @state_reason: the call state reason. - * - * Sets the call state reason. - * - * Since: 1.6 - * Deprecated: 1.12: the user should not specify the state reason of the call - * before the call is created. This parameter has always been ignored during the - * new call creation processing. - */ -void -mm_call_properties_set_state_reason (MMCallProperties *self, - MMCallStateReason state_reason) -{ - /* NO-OP */ -} - -/** - * mm_call_properties_get_state_reason: - * @self: A #MMCallProperties. - * - * Gets the call state reason. - * - * Returns: the call state reason. - * - * Since: 1.6 - * Deprecated: 1.12: the user should not specify the state reason of the call - * before the call is created. This parameter has always been ignored during the - * new call creation processing. - */ -MMCallStateReason -mm_call_properties_get_state_reason (MMCallProperties *self) -{ - /* NO-OP */ - return MM_CALL_STATE_REASON_UNKNOWN; -} - -#endif /* MM_DISABLE_DEPRECATED */ - -/*****************************************************************************/ - /* * mm_call_properties_get_dictionary: (skip) */ diff --git a/libmm-glib/mm-call-properties.h b/libmm-glib/mm-call-properties.h index deeab522..5e131573 100644 --- a/libmm-glib/mm-call-properties.h +++ b/libmm-glib/mm-call-properties.h @@ -61,24 +61,6 @@ void mm_call_properties_set_number (MMCallProperties *self, const gchar *text); const gchar *mm_call_properties_get_number (MMCallProperties *self); -#ifndef MM_DISABLE_DEPRECATED -G_DEPRECATED -void mm_call_properties_set_direction (MMCallProperties *self, - MMCallDirection direction); -G_DEPRECATED -void mm_call_properties_set_state_reason (MMCallProperties *self, - MMCallStateReason state_reason); -G_DEPRECATED -void mm_call_properties_set_state (MMCallProperties *self, - MMCallState state); -G_DEPRECATED -MMCallDirection mm_call_properties_get_direction (MMCallProperties *self); -G_DEPRECATED -MMCallStateReason mm_call_properties_get_state_reason (MMCallProperties *self); -G_DEPRECATED -MMCallState mm_call_properties_get_state (MMCallProperties *self); -#endif - /*****************************************************************************/ /* ModemManager/libmm-glib/mmcli specific methods */ diff --git a/libmm-glib/mm-compat.c b/libmm-glib/mm-compat.c index 6b36e5a3..fd04fa33 100644 --- a/libmm-glib/mm-compat.c +++ b/libmm-glib/mm-compat.c @@ -26,6 +26,54 @@ #ifndef MM_DISABLE_DEPRECATED +/*****************************************************************************/ + +void +mm_call_properties_set_direction (MMCallProperties *self, + MMCallDirection direction) +{ + /* NO-OP */ +} + +MMCallDirection +mm_call_properties_get_direction (MMCallProperties *self) +{ + /* NO-OP */ + return MM_CALL_DIRECTION_UNKNOWN; +} + + +void +mm_call_properties_set_state (MMCallProperties *self, + MMCallState state) +{ + /* NO-OP */ +} + + +MMCallState +mm_call_properties_get_state (MMCallProperties *self) +{ + /* NO-OP */ + return MM_CALL_STATE_UNKNOWN; +} + +void +mm_call_properties_set_state_reason (MMCallProperties *self, + MMCallStateReason state_reason) +{ + /* NO-OP */ +} + +MMCallStateReason +mm_call_properties_get_state_reason (MMCallProperties *self) +{ + /* NO-OP */ + return MM_CALL_STATE_REASON_UNKNOWN; +} + +/*****************************************************************************/ + gboolean mm_modem_get_pending_network_initiated_sessions (MMModemOma *self, MMOmaPendingNetworkInitiatedSession **sessions, diff --git a/libmm-glib/mm-compat.h b/libmm-glib/mm-compat.h index ef2fc5b1..9b781762 100644 --- a/libmm-glib/mm-compat.h +++ b/libmm-glib/mm-compat.h @@ -29,6 +29,7 @@ #error "Only <libmm-glib.h> can be included directly." #endif +#include "mm-call-properties.h" #include "mm-modem-oma.h" /** @@ -40,6 +41,106 @@ * innecessary API/ABI breaks, for compatibility purposes only. */ +/*****************************************************************************/ + +/** + * mm_call_properties_set_direction: + * @self: A #MMCallProperties. + * @direction: the call direction + * + * Sets the call direction. + * + * Since: 1.6 + * Deprecated: 1.12: the user should not specify the direction of the call, as + * it is implicit (outgoing always). Anyway, this parameter has always been + * ignored during the new call creation processing. + */ +G_DEPRECATED +void mm_call_properties_set_direction (MMCallProperties *self, + MMCallDirection direction); + +/** + * mm_call_properties_set_state_reason: + * @self: A #MMCallProperties. + * @state_reason: the call state reason. + * + * Sets the call state reason. + * + * Since: 1.6 + * Deprecated: 1.12: the user should not specify the state reason of the call + * before the call is created. This parameter has always been ignored during the + * new call creation processing. + */ +G_DEPRECATED +void mm_call_properties_set_state_reason (MMCallProperties *self, + MMCallStateReason state_reason); + +/** + * mm_call_properties_set_state: + * @self: A #MMCallProperties. + * @state: the call state + * + * Sets the call state + * + * Since: 1.6 + * Deprecated: 1.12: the user should not specify the state of the call before + * the call is created. This parameter has always been ignored during the new + * call creation processing. + */ +G_DEPRECATED +void mm_call_properties_set_state (MMCallProperties *self, + MMCallState state); + +/** + * mm_call_properties_get_direction: + * @self: A #MMCallProperties. + * + * Gets the call direction. + * + * Returns: the call direction. + * + * Since: 1.6 + * Deprecated: 1.12: the user should not specify the direction of the call, as + * it is implicit (outgoing always). This parameter has always been ignored + * during the new call creation processing. + */ +G_DEPRECATED +MMCallDirection mm_call_properties_get_direction (MMCallProperties *self); + +/** + * mm_call_properties_get_state_reason: + * @self: A #MMCallProperties. + * + * Gets the call state reason. + * + * Returns: the call state reason. + * + * Since: 1.6 + * Deprecated: 1.12: the user should not specify the state reason of the call + * before the call is created. This parameter has always been ignored during the + * new call creation processing. + */ +G_DEPRECATED +MMCallStateReason mm_call_properties_get_state_reason (MMCallProperties *self); + +/** + * mm_call_properties_get_state: + * @self: A #MMCallProperties. + * + * Gets the call state. + * + * Returns: the call state. + * + * Since: 1.6 + * Deprecated: 1.12: the user should not specify the state of the call before + * the call is created. This parameter has always been ignored during the new + * call creation processing. + */ +G_DEPRECATED +MMCallState mm_call_properties_get_state (MMCallProperties *self); + +/*****************************************************************************/ + /** * mm_modem_get_pending_network_initiated_sessions: * @self: A #MMModem. |