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:
Guido Günther
2024-12-01 21:41:10 +00:00
committed by Aleksander Morgado
parent 502e0c920f
commit b491bc474e
9 changed files with 848 additions and 0 deletions
+2
View File
@@ -5,12 +5,14 @@ sources = files(
'mmcli-bearer.c',
'mmcli.c',
'mmcli-call.c',
'mmcli-cbm.c',
'mmcli-common.c',
'mmcli-manager.c',
'mmcli-modem-3gpp.c',
'mmcli-modem-3gpp-profile-manager.c',
'mmcli-modem-3gpp-ussd.c',
'mmcli-modem.c',
'mmcli-modem-cell-broadcast.c',
'mmcli-modem-cdma.c',
'mmcli-modem-firmware.c',
'mmcli-modem-location.c',