shared: add "nm-std-aux/nm-std-utils.[hc]"

General purpose utilities for nm-std-aux. Contrary to
"nm-std-aux.h", this is not header only.
This commit is contained in:
Thomas Haller 2020-07-05 10:16:54 +02:00
parent b109d63376
commit 19613016e2
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
5 changed files with 24 additions and 7 deletions

View file

@ -357,6 +357,8 @@ shared_nm_std_aux_libnm_std_aux_la_SOURCES = \
shared/nm-std-aux/c-list-util.h \
shared/nm-std-aux/nm-dbus-compat.h \
shared/nm-std-aux/nm-std-aux.h \
shared/nm-std-aux/nm-std-utils.c \
shared/nm-std-aux/nm-std-utils.h \
shared/nm-std-aux/unaligned.h \
$(NULL)

View file

@ -113,15 +113,17 @@ nm_test_utils_impl_source = files('nm-test-utils-impl.c')
nm_vpn_plugin_utils_source = files('nm-utils/nm-vpn-plugin-utils.c')
c_flags = [
'-DG_LOG_DOMAIN="@0@"'.format(libnm_name),
'-DNETWORKMANAGER_COMPILATION=0',
]
libnm_std_aux = static_library(
'nm-std-aux',
sources: 'nm-std-aux/c-list-util.c',
c_args: c_flags,
sources: [
'nm-std-aux/c-list-util.c',
'nm-std-aux/nm-std-utils.c',
],
include_directories: top_inc,
c_args: [
'-DG_LOG_DOMAIN="@0@"'.format(libnm_name),
'-DNETWORKMANAGER_COMPILATION=0',
],
)
sources = files(

View file

@ -262,6 +262,7 @@ _nm_g_return_if_fail_warning (const char *log_domain,
/*****************************************************************************/
#include "nm-std-aux/nm-std-aux.h"
#include "nm-std-aux/nm-std-utils.h"
#include "nm-glib-aux/nm-macros-internal.h"
#include "nm-glib-aux/nm-shared-utils.h"
#include "nm-glib-aux/nm-errno.h"

View file

@ -0,0 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1+
#include "nm-default.h"
#include "nm-std-utils.h"

View file

@ -0,0 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1+
#ifndef __NM_STD_UTILS_H__
#define __NM_STD_UTILS_H__
#endif /* __NM_STD_UTILS_H__ */