Commit graph

8 commits

Author SHA1 Message Date
Thomas Haller
766f040681 macros: simplify NM_IN_SET() and NM_IN_STRSET() macros
and support up to 16 arguments.

(cherry picked from commit b1fd5a06c4)
2016-09-22 16:39:36 +02:00
Thomas Haller
5bac57496c shared: add _NM_GET_PRIVATE() macro
(cherry picked from commit 2cae9ba348)
2016-09-08 00:26:14 +02:00
Thomas Haller
811aaead4c shared: add NM_MIN()/NM_MAX() macros to replace glib's MIN()/MAX()
(cherry picked from commit b2016fd2a5)
2016-09-08 00:26:14 +02:00
Thomas Haller
4aad70a61d shared: add helper macros nm_str_not_empty() and nm_strdup_not_empty()
(cherry picked from commit 3227b9017b)
2016-09-06 16:16:19 +02:00
Thomas Haller
4041bf966f shared: add nm_strquote_a() helper 2016-07-05 23:08:22 +02:00
Beniamino Galvani
a5d1db08f8 dns: log DNS servers at TRACE level
Be more verbose at TRACE level and log the DNS servers associated to
configurations. This will help to debug issues like [0].

[0] https://bugzilla.redhat.com/show_bug.cgi?id=1348887
2016-06-28 16:24:28 +02:00
Thomas Haller
3bcec4067f shared: include "nm-glib.h" from "nm-macros-internal.h"
"nm-glib.h" is our most basic header. "nm-macros-internal.h" extends
on that. Thus, let "nm-macros-internal.h" include "nm-glib.h".
2016-06-16 10:45:54 +02:00
Thomas Haller
4b288136e1 shared: move shared files to subdirectory "shared/nm-utils/"
The "shared" directory contains files that are possibly used by all components
of NetworkManager repository.

Some of these files are even copied as-is to other projects (VPN plugins, nm-applet)
and used there without modification. Move those files to a separate directory.
By moving them to a common directory, it is clearer that they belong
together. Also, you can easier compare the copied versions to their
original via

  $ diff -r ./shared/nm-utils/ /path/to/nm-vpn-plugin/shared/nm-utils/
2016-06-16 10:45:53 +02:00
Renamed from shared/nm-macros-internal.h (Browse further)