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>
This commit is contained in:
committed by
Aleksander Morgado
parent
502e0c920f
commit
b491bc474e
+16
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user