NetworkManager/src/libnmc-base
Thomas Haller 0b1177cb18
all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses
G_TYPE_CHECK_INSTANCE_CAST() can trigger a "-Wcast-align":

    src/core/devices/nm-device-macvlan.c: In function 'parent_changed_notify':
    /usr/include/glib-2.0/gobject/gtype.h:2421:42: error: cast increases required alignment of target type [-Werror=cast-align]
     2421 | #  define _G_TYPE_CIC(ip, gt, ct)       ((ct*) ip)
          |                                          ^
    /usr/include/glib-2.0/gobject/gtype.h:501:66: note: in expansion of macro '_G_TYPE_CIC'
      501 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)    (_G_TYPE_CIC ((instance), (g_type), c_type))
          |                                                                  ^~~~~~~~~~~
    src/core/devices/nm-device-macvlan.h:13:6: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST'
       13 |     (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_DEVICE_MACVLAN, NMDeviceMacvlan))
          |      ^~~~~~~~~~~~~~~~~~~~~~~~~~

Avoid that by using _NM_G_TYPE_CHECK_INSTANCE_CAST().

This can only be done for our internal usages. The public headers
of libnm are not changed.
2022-12-16 10:55:03 +01:00
..
meson.build build: move "clients/common/" to "src/libnmc-{base,setting}/" 2021-03-02 08:38:25 +01:00
nm-client-utils.c libnmc/trivial: rename _device_state_to_string() function 2022-07-21 22:03:33 +02:00
nm-client-utils.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-polkit-listener.c glib-aux: drop nm_str_buf_init() for NM_STR_BUF_INIT() 2022-05-09 19:18:30 +02:00
nm-polkit-listener.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nm-secret-agent-simple.c libnmc: Remove verbose logging 2022-03-04 18:09:02 +01:00
nm-secret-agent-simple.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nm-vpn-helpers.c clang-format: reformat code with clang-format 15.0.4-1.fc37 2022-11-23 09:17:21 +01:00
nm-vpn-helpers.h libnm-client: Add public nm_conn_wireguard_import() func 2022-07-21 14:53:26 +02:00
qrcodegen.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
qrcodegen.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
README.md all: add some README.md files describing the purpose of our sources 2021-08-19 17:51:11 +02:00

libnmc-base

A helper library on top of libnm for our clients. The "c" in "libnmc-base" stands for clients.

This has no additional dependencies on top of libnm, so any client application that uses libnm can statically link with this helper at will.

As such, this is very similar in purpose to ../libnm-client-aux-extern, the difference is only in scope.