diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-25 10:56:38 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-25 10:56:38 +0200 |
commit | c368a63e01dba01c966eac15c07486b82a15c14d (patch) | |
tree | c665fcfb5f16e3169c506dc94ea00a5e49898c5d /libmm-glib/mm-compat.c | |
parent | fefd59e3ce26f8248f94d40f2fb1f68085ca36ee (diff) |
libmm-glib,oma: deprecate method names without the mm_modem_oma prefix
Diffstat (limited to 'libmm-glib/mm-compat.c')
-rw-r--r-- | libmm-glib/mm-compat.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/libmm-glib/mm-compat.c b/libmm-glib/mm-compat.c new file mode 100644 index 00000000..6b36e5a3 --- /dev/null +++ b/libmm-glib/mm-compat.c @@ -0,0 +1,45 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * libmm -- Access modem status & information from glib applications + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA. + * + * Copyright (C) 2021 Aleksander Morgado <aleksander@aleksander.es> + */ + +#include <gio/gio.h> + +#include "mm-compat.h" + +#ifndef MM_DISABLE_DEPRECATED + +gboolean +mm_modem_get_pending_network_initiated_sessions (MMModemOma *self, + MMOmaPendingNetworkInitiatedSession **sessions, + guint *n_sessions) +{ + return mm_modem_oma_get_pending_network_initiated_sessions (self, sessions, n_sessions); +} + +gboolean +mm_modem_peek_pending_network_initiated_sessions (MMModemOma *self, + const MMOmaPendingNetworkInitiatedSession **sessions, + guint *n_sessions) +{ + return mm_modem_oma_peek_pending_network_initiated_sessions (self, sessions, n_sessions); +} + +#endif /* MM_DISABLE_DEPRECATED */ |