aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-common.h
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2024-08-23 19:52:32 +0200
committerAleksander Morgado <aleksander@aleksander.es>2024-12-01 21:41:10 +0000
commitb491bc474e8607ca306c84d2c1a95bc664685190 (patch)
treed7b045072d4fa6c1e87457a8e4857eea31fe233e /cli/mmcli-common.h
parent502e0c920f694d6f89371fef33e8212835790669 (diff)
cli: Add support for listing and deleting Cell Broadcast messages
This adds ``` $ mmcli -m 0 --cell-broadcast-list-cbm /org/freedesktop/ModemManager1/CBM/0 (received) /org/freedesktop/ModemManager1/CBM/0 (received) $ mmcli -m 0 --cell-broadcast-delete-cbm=0 successfully deleted CBM from modem $ mmcli -m 0 --cbm 0 -------------------------- General | path: /org/freedesktop/ModemManager1/CBM/1 -------------------------- Content | text: This is a test of the Ontario Alert Ready System. There is no danger to your health or safety -------------------------- Properties | update: 0 | message code: 0 ``` Signed-off-by: Guido Günther <agx@sigxcpu.org>
Diffstat (limited to 'cli/mmcli-common.h')
-rw-r--r--cli/mmcli-common.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/mmcli-common.h b/cli/mmcli-common.h
index 237ebb55..d7a57c47 100644
--- a/cli/mmcli-common.h
+++ b/cli/mmcli-common.h
@@ -96,6 +96,19 @@ MMCall *mmcli_get_call_sync (GDBusConnection *connection,
MMManager **manager,
MMObject **object);
+void mmcli_get_cbm (GDBusConnection *connection,
+ const gchar *str,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+MMCbm *mmcli_get_cbm_finish (GAsyncResult *res,
+ MMManager **manager,
+ MMObject **object);
+MMCbm *mmcli_get_cbm_sync (GDBusConnection *connection,
+ const gchar *str,
+ MMManager **manager,
+ MMObject **object);
+
const gchar *mmcli_get_state_reason_string (MMModemStateChangeReason reason);
GOptionGroup *mmcli_get_common_option_group (void);
@@ -104,6 +117,7 @@ const gchar *mmcli_get_common_bearer_string (void);
const gchar *mmcli_get_common_sim_string (void);
const gchar *mmcli_get_common_sms_string (void);
const gchar *mmcli_get_common_call_string (void);
+const gchar *mmcli_get_common_cbm_string (void);
gchar *mmcli_prefix_newlines (const gchar *prefix,
const gchar *str);