mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 02:40:17 +01:00
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:
parent
b109d63376
commit
19613016e2
5 changed files with 24 additions and 7 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
6
shared/nm-std-aux/nm-std-utils.c
Normal file
6
shared/nm-std-aux/nm-std-utils.c
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// SPDX-License-Identifier: LGPL-2.1+
|
||||
|
||||
#include "nm-default.h"
|
||||
|
||||
#include "nm-std-utils.h"
|
||||
|
||||
6
shared/nm-std-aux/nm-std-utils.h
Normal file
6
shared/nm-std-aux/nm-std-utils.h
Normal 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__ */
|
||||
Loading…
Add table
Reference in a new issue