Commit Graph
23 Commits
Author SHA1 Message Date
Yegor Yefremov 907f7a2813 Specify a path to the ITS rules
Use our own ITS rules found under data/its. This resolves a
configuration breakage on some systems:

msgfmt: cannot locate ITS rules for data/org.freedesktop.ModemManager1.policy.in

According to the msgfmt manual, we need to specify a path to the parent
directory containing its folder. Hence, we add a path to data as the
data_dirs option.
2025-01-23 02:36:31 +00:00
Yegor Yefremov af992c2f1a .editorconfig: fix insert_final_newline behaviour
Enable insert_final_newline to comply with the current style.
2024-03-18 12:17:57 +01:00
Yegor Yefremov ad6772df34 .gitlab-ci.yml: use meson instead of ninja where possible
Replace all ninja invocations but for the uninstall target with
meson.

meson build command can be omitted when executing test and install
targets that depend on compile target.
2024-02-27 15:11:48 +01:00
Yegor Yefremov 29d237bcb7 .gitignore: ignore Visual Studio Code directory and file 2024-02-14 08:36:23 +01:00
Yegor Yefremov a729a92e10 build: fix fs.copyfile usage for meson versions 0.64/0.64.1
Though this function was introduced in 0.64, its usage with install_dir
was broken till meson version 1.0.0. Hence, bump the minimal required
meson version for the fs.copyfile() routine.

See the following meson commit for details:
https://github.com/mesonbuild/meson/commit/100456de0761ee949e2277c97746cb8571b6ba39
2024-01-30 12:23:39 +01:00
Yegor Yefremov 18144e73bc build: convert README to markdown
Also add SPDX license identifier and a copyright notice.
2024-01-25 15:10:31 +00:00
Yegor Yefremov a55ef5e939 build: fix ModemManager-names.h generation warning
Use configure_file() instead of custom_target(). This resolves the
following warning:

WARNING: Source item '/home/user/ModemManager/header-generator.xsl'
cannot be converted to File object, because it is a generated file. This
will become a hard error in the future.
2024-01-15 12:42:11 +01:00
Yegor Yefremov 7c23c3db2f build: resolve deprecated 'copy' key argument in configure_file warning
Resolves the following warning:

NOTICE: Future-deprecated features used:
 * 0.64.0: {'copy arg in configure_file'}

copy arg was deprecated in meson version 0.64. Hence, use
fs.copyfile() that is also introduced in 0.64, in versions
since 0.64 and use the old approach for older versions.
2024-01-15 09:40:40 +00:00
Yegor Yefremov fdf1aead04 99-log-event: add double quote to silence SC2086 warning
SC2086 suggests using double quote to to prevent globbing and word
splitting.
2024-01-10 08:30:30 +01:00
Yegor Yefremov 3aef62c5f6 build: add EditorConfig configuration file
EditorConfig projects helps maintaining consistent coding styles
across various editors and IDEs.
2023-12-18 12:01:07 +00:00
Yegor Yefremov dc3171fae4 .gitignore: ignore ctags tags file 2023-12-18 11:40:21 +00:00
Yegor Yefremov d5c2ea931e .gitignore: ignore ctags tags file 2021-09-20 07:22:05 +00:00
Yegor Yefremov 8b80da152b Fix -Wmaybe-uninitialized warning
Initialize the scheme variable to QMI_VOICE_USS_DATA_CODING_SCHEME_UNKNOWN
to avoid the warning.
2021-09-19 13:07:10 +00:00
Yegor Yefremov 4875817f19 Tests: fix -Wformat compiler warning
Use G_GUINT64_FORMAT to properly format a guint64 type.
2021-09-17 12:10:31 +02:00
Yegor Yefremov 297a8c85ae examples: sms: resolve PEP8 issues
Use autopep8 utility to resolve issues like spaces before brackets
and wrong hanging indentation.

Also treat objects like boolean variables to check whether they are
None or not.
2021-02-25 14:14:55 +01:00
Yegor Yefremov cc07d21410 examples: network-scan: get rid of global variables
Move the code into the main() routine.
2021-02-24 14:59:48 +01:00
Yegor Yefremov 69926d9335 examples: modem-watcher: get rid of global variables
Move the code into the main() routine and pass main_loop as
a parameter to the signal handler.
2021-02-15 21:10:34 +01:00
Yegor Yefremov e685ce9ce5 examples: ModemWatcher: convert comments in the doc strings
Move comments under the class and method definitions.

Also rework boolean handling.
2021-02-15 21:10:26 +01:00
Yegor Yefremov 3a32409000 examples: network-scan: enable modem before the network scan
Otherwise we get the following exception:

Traceback (most recent call last):
  File "/root/network-scan-python", line 57, in <module>
    networks = modem3gpp.scan_sync()
gi.repository.GLib.Error: mm_core_error_quark: GDBus.Error:org.freedesktop.ModemManager1.Error.Core.WrongState: Cannot scan networks: not enabled yet (8)
2021-02-14 23:35:54 +01:00
Yegor Yefremov c7d0defdde examples: network-scan: resolve PEP8 issues
Use autopep8 utility to resolve issues like spaces before brackets
and wrong hanging indentation.

Also treat objects like boolean variables to check whether they are
None or not.
2021-02-14 23:35:49 +01:00
Yegor Yefremov 16d1cf3318 examples: rework imports
Remove unused imports and fix import sorting using isort utility.
2021-02-13 11:09:59 +01:00
Yegor Yefremov dcb627a61f trivial: resolve maybe-uninitialized warnings
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2014-06-04 14:11:16 -05:00
Yegor Yefremov 84bdcb04ed trivial: resolve maybe-uninitialized warnings
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2014-01-07 09:40:05 -06:00