diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-25 11:05:33 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-25 19:01:06 +0200 |
commit | c1fae670b77b0cac7f82ee540348f161f49d2fa3 (patch) | |
tree | 78210d28e26304d7040bba0337c6091ee498c7c3 /libmm-glib | |
parent | 49f52d918240ef2e5d1c6b0af5d2013dab39f592 (diff) |
libmm-glib,call-properties: move deprecated methods to compat source
Diffstat (limited to 'libmm-glib')
-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 |
4 files changed, 149 insertions, 145 deletions
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. |