summaryrefslogtreecommitdiff
path: root/libmm-glib
AgeCommit message (Collapse)AuthorFilesLines
2021-11-03api,bearer: add 'uplink-speed' and 'downlink-speed' statsSom_SP2-5/+94
These values show the rates that have been negotiated with the network during the PS domain attach. These are not the current ongoing data rates associated to the network usage at some given moment. Includes updates by Aleksander Morgado to fix coding style issues and add missing documentation items.
2021-11-02api,3gpp: new 'SetPacketServiceState()' methodAleksander Morgado4-0/+112
2021-11-02api,3gpp: new 'PacketServiceState' propertyAleksander Morgado2-0/+23
This property allows the user to know whether the device is attached or detached from the packet domain service.
2021-10-22libmm-glib: add documentation for disable_facility_lockMichal Mazur1-0/+51
2021-10-22cli, plugins: factorize usage of iso8601 datetime formatFrederic Martinsons3-32/+85
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com> Includes updates by Aleksander Morgado to fix coding style issues.
2021-10-22api,bearer: new 'start-date' field in bearer statisticsFrederic Martinsons4-0/+87
It stores the epoch timestamp of the current bearer session start. If there is no connected bearer, it is set to 0 and not displayed in mmcli output. Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com> Includes updates by Aleksander Morgado to fix coding style issues.
2021-10-20libmm-glib: new 'MMSignalThresholdProperties' helper objectAleksander Morgado7-37/+458
To avoid needing to work with GVariants directly.
2021-10-20libmm-glib,mmcli: add support for the new signal 'SetupThresholds()' APISom_SP2-34/+182
Includes updates by Aleksander Morgado to fix mostly coding style issues.
2021-10-20libmm-glib,mmcli: add support for 'error-rate' measurements in signal infoSom_SP2-27/+77
Includes updates by Aleksander Morgado to fix mostly coding style issues.
2021-10-17bearer-properties: Add profile-name to the bearer propertiesAndrew Lassalle2-0/+45
2021-10-173gpp-profile: Add profile nameAndrew Lassalle2-6/+68
QMI modems also report a profile name, and that value can be used to select and update a specific profile.
2021-10-14build,meson: Make use of partial_dependency for generated dependencyIñigo Martínez1-3/+3
The generated objects in `libmm-glib` are include in `libmm_glib_dep` one by one to avoid the link to the generated library that is included as a whole in `libmm-glib`. meson includes a way to include partial objects of a dependency by using the `partial_dependency` method, so by taking advantage of it almost all objects are included.
2021-10-13build,meson: add SAR interface support in libmm-glibAleksander Morgado1-0/+2
2021-10-13docs,libmm-glib: add SAR user-level apilvmaorui7-0/+463
2021-09-10Revert "api: remove Modem.Sar interface"Aleksander Morgado1-0/+3
This reverts commit 686e37ff84daca6096fe18781ad9ba6f29cd4063.
2021-09-07build,meson: add missing Call object support in introspectionAleksander Morgado2-15/+7
2021-09-07build,autotools: add missing Call object support in introspectionAleksander Morgado1-0/+2
2021-09-07libmm-glib,location-3gpp: remove unused variableAleksander Morgado1-1/+0
../libmm-glib/mm-location-3gpp.c: In function ‘mm_location_3gpp_new_from_string_variant’: ../libmm-glib/mm-location-3gpp.c:400:16: warning: unused variable ‘operator_code’ [-Wunused-variable] 400 | gchar *operator_code; | ^~~~~~~~~~~~~
2021-09-07libmm-glib,3gpp-profile: fix profile comparison logicAleksander Morgado1-0/+2
Conveniently warned by the compiler... ../libmm-glib/mm-3gpp-profile.c: In function ‘mm_3gpp_profile_cmp’: ../libmm-glib/mm-3gpp-profile.c:98:1: warning: control reaches end of non-void function [-Wreturn-type] 98 | } | ^
2021-09-07libmm-glib,simple-status: avoid shadowing 'properties' variableAleksander Morgado1-16/+14
../libmm-glib/mm-simple-status.c: In function ‘mm_simple_status_new_from_dictionary’: ../libmm-glib/mm-simple-status.c:426:21: warning: declaration of ‘properties’ shadows a global declaration [-Wshadow] 426 | MMSimpleStatus *properties; | ^~~~~~~~~~ ../libmm-glib/mm-simple-status.c:55:20: note: shadowed declaration is here 55 | static GParamSpec *properties[PROP_LAST]; | ^~~~~~~~~~
2021-09-07libmm-glib,manager: fix warning with -Wdiscarded-qualifiersAleksander Morgado1-14/+13
In file included from /usr/include/glib-2.0/glib.h:50, from ../libmm-glib/mm-common-helpers.h:18, from ../libmm-glib/mm-manager.c:27: /usr/include/glib-2.0/glib/ghash.h:68:61: note: expected ‘gpointer’ {aka ‘void *’} but argument is of type ‘const char *’ 68 | gpointer key, | ~~~~~~~~~~~~~~~~^~~ ../libmm-glib/mm-manager.c:81:43: warning: passing argument 2 of ‘g_hash_table_insert’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 81 | g_hash_table_insert (lookup_hash, "org.freedesktop.ModemManager1.Modem.Simple", GSIZE_TO_POINTER (MM_TYPE_MODEM_SIMPLE)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib.h:50, from ../libmm-glib/mm-common-helpers.h:18, from ../libmm-glib/mm-manager.c:27:
2021-09-07build: Port to mesonIñigo Martínez4-0/+361
meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools.
2021-08-30location-gps-nmea: Fix handling of multi-sentence NMEA messagesTeemu Ikonen1-1/+1
Fixes the regexp in check_append_or_replace() to accept 1. more multi-sentence NMEA messages (ALM, GSV, RTE, SFI) 2. multi-sentence NMEA messages from all talkers, not just GPS (i.e. GPGSV, GLGSV, GAGSV etc.)
2021-08-09api: remove Modem.Sar interfaceAleksander Morgado1-3/+0
There is no real implementation for it yet, so let's recover these changes once 1.18 has been released.
2021-07-30build: Rename template filesIñigo Martínez1-10/+10
The template files in the `build-aux` directory used in enums sources and headers generation use the `{$name}-template.[ch]` pattern. However, the examples in the official guide[0] and usually GNOME and Freedesktop packages use the `{$name}.[ch].template` pattern. Due to this, the name of the template files and build commands have been changed. [0] https://developer.gnome.org/gobject/stable/glib-mkenums.html
2021-07-09libmm-glib,common-helpers: fix build with glib 2.56Benoît Monin1-0/+5
The support of autoptr for GEnumClass and GFlagsClass was introduced in glib 2.58. To keep compatibility with glib 2.56, declare the autoptr cleanup functions. Fixes #397
2021-07-01libmm-glib,call: use helper macros to manage the monitored propertiesAleksander Morgado1-83/+8
2021-07-01libmm-glib,bearer: use helper macros to manage the monitored propertiesAleksander Morgado1-410/+42
2021-07-01libmm-glib,modem-signal: use helper macros to manage the monitored propertiesAleksander Morgado1-263/+60
2021-07-01libmm-glib,modem-location: use helper macros to manage the monitored propertiesAleksander Morgado1-146/+42
2021-07-01libmm-glib,modem-firmware: use helper macros to manage the monitored propertiesAleksander Morgado1-80/+8
2021-07-01libmm-glib,modem-time: use helper macros to manage the monitored propertiesAleksander Morgado1-69/+8
2021-07-01libmm-glib,modem-oma: use helper macros to manage the monitored propertiesAleksander Morgado1-96/+8
2021-07-01libmm-glib,modem-messaging: use helper macros to manage the monitored propertiesAleksander Morgado1-97/+8
2021-07-01libmm-glib,modem-3gpp: use helper macros to manage the monitored propertiesAleksander Morgado1-82/+12
2021-07-01libmm-glib,modem: use helper macros to manage the monitored propertiesAleksander Morgado3-567/+74
2021-07-01libmm-glib,helpers: new helper macros to define common property managementAleksander Morgado1-1/+288
2021-07-01libmm-glib: use single mutex in each type to sync accessAleksander Morgado10-268/+149
There is truly no need for a per-property mutex, using a global one for the whole object is equally fine.
2021-07-01libmm-glib,common-helpers: refactor helper methodsAleksander Morgado2-885/+826
Remove unused methods, like all the variant_to_array() ones, and reorder some others so that both header and source file have the same order always.
2021-07-01libmm-glib,location: new signaled location API supportAleksander Morgado2-2/+399
We allow clients to receive asynchronous updates of location information, e.g. if "location signaling" is explicitly enabled (with the setup() method). But if so, we should also allow clients to easily process those asynchronous updates in the libmm-glib library, instead of requiring them to run explicit DBus queries to refresh the location information. These new signaled location APIs allow clients to do so; they can enable location signaling, and then just wait for the updates to arrive.
2021-06-30libmm-glib,location: build_locations() doesn't own the dictionaryAleksander Morgado1-18/+13
Rework the build_locations() method so that it doesn't take ownership of the input dictionary. This allows us reusing this method with dictionaries for which ownership cannot be transferred.
2021-06-25libmm-glib,modem: move deprecated methods to compat sourceAleksander Morgado4-42/+39
2021-06-25libmm-glib,location-3gpp: move deprecated methods to compat sourceAleksander Morgado4-38/+37
2021-06-25libmm-glib,simple-status: move deprecated methods to compat sourceAleksander Morgado4-29/+26
2021-06-25libmm-glib,pco: move deprecated methods to compat sourceAleksander Morgado4-28/+25
2021-06-25libmm-glib,modem-3gpp: move deprecated methods to compat sourceAleksander Morgado4-38/+33
2021-06-25libmm-glib,location-gps-nmea: move deprecated methods to compat sourceAleksander Morgado4-48/+31
2021-06-25libmm-glib,simple-connect-properties: move deprecated methods to compat sourceAleksander Morgado4-56/+50
2021-06-25libmm-glib,bearer-properties: move deprecated methods to compat sourceAleksander Morgado4-56/+50
2021-06-25libmm-glib,call-properties: move deprecated methods to compat sourceAleksander Morgado4-145/+149