aboutsummaryrefslogtreecommitdiff
path: root/test/mmrules.c
AgeCommit message (Collapse)Author
2020-04-08log: common logging method definition for all testers and helpersAleksander Morgado
2020-04-08log: new object logging supportAleksander Morgado
So that we can provide the specific object id in every log associated to a given object.
2020-01-31test,mmrules: fix warnings with -Wswitch-defaultAleksander Morgado
mmrules.c: In function ‘print_rule’: mmrules.c:97:13: error: switch missing default case [-Werror=switch-default] 97 | switch (rule_match->type) { | ^~~~~~ mmrules.c:113:5: error: switch missing default case [-Werror=switch-default] 113 | switch (rule->result.type) { | ^~~~~~
2017-02-03glib: remove invocations of g_type_init()Ben Chan
g_type_init() has been deprecated (and also marked with the attribute 'deprecated') since glib 2.36 as the type system is automatically initialized. Since the minimum version of glib required by ModemManager is 2.36, calling g_type_init() isn't necessarily in the ModemManager code.
2016-09-29core: allow building and running without udevAleksander Morgado
Instead of relying on the udev daemon and GUDev to manage the devices reported by the kernel, we can now run ModemManager relying solely on the kernel events reported via the new ReportKernelEvent() API. Therefore, the '--no-auto-scan' option is implicit for the ModemManager daemon when udev is disabled in the build. Additionally, a new custom implementation of the kernel device object is provided, which uses sysfs to load the properties and attributes required in each kernel device, instead of using a GUdevDevice. The udev rule files are kept in place, and a simple custom parser is provided which preloads all rules in memory once and then applies them to the different kernel objects reported via ReportKernelEvent(), e.g. to set port type hints. A simple unit test setup is prepared to validate the udev rules during the `check' Makefile target.