From b491bc474e8607ca306c84d2c1a95bc664685190 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 23 Aug 2024 19:52:32 +0200 Subject: cli: Add support for listing and deleting Cell Broadcast messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- cli/mmcli.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'cli/mmcli.h') diff --git a/cli/mmcli.h b/cli/mmcli.h index de5cc804..94dff694 100644 --- a/cli/mmcli.h +++ b/cli/mmcli.h @@ -150,6 +150,14 @@ void mmcli_modem_oma_run_asynchronous (GDBusConnection *connection, void mmcli_modem_oma_run_synchronous (GDBusConnection *connection); void mmcli_modem_oma_shutdown (void); +/* CellBroadcast group */ +GOptionGroup *mmcli_modem_cell_broadcast_get_option_group (void); +gboolean mmcli_modem_cell_broadcast_options_enabled (void); +void mmcli_modem_cell_broadcast_run_asynchronous (GDBusConnection *connection, + GCancellable *cancellable); +void mmcli_modem_cell_broadcast_run_synchronous (GDBusConnection *connection); +void mmcli_modem_cell_broadcast_shutdown (void); + /* Bearer group */ GOptionGroup *mmcli_bearer_get_option_group (void); gboolean mmcli_bearer_options_enabled (void); @@ -182,4 +190,12 @@ void mmcli_call_run_asynchronous (GDBusConnection *connection, void mmcli_call_run_synchronous (GDBusConnection *connection); void mmcli_call_shutdown (void); +/* CBM group */ +GOptionGroup *mmcli_cbm_get_option_group (void); +gboolean mmcli_cbm_options_enabled (void); +void mmcli_cbm_run_asynchronous (GDBusConnection *connection, + GCancellable *cancellable); +void mmcli_cbm_run_synchronous (GDBusConnection *connection); +void mmcli_cbm_shutdown (void); + #endif /* __MMCLI_H__ */ -- cgit v1.2.3-70-g09d2