diff options
author | Guido Günther <agx@sigxcpu.org> | 2024-08-23 19:52:32 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2024-12-01 21:41:10 +0000 |
commit | b491bc474e8607ca306c84d2c1a95bc664685190 (patch) | |
tree | d7b045072d4fa6c1e87457a8e4857eea31fe233e /cli/mmcli.h | |
parent | 502e0c920f694d6f89371fef33e8212835790669 (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.h')
-rw-r--r-- | cli/mmcli.h | 16 |
1 files changed, 16 insertions, 0 deletions
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__ */ |