platform: add "nmp-base.c" source

"nmp-base.h" really should only contain simple defines like enum types
or #define. As such, it almost does not need a source file.

However, the enum-to-string methods for the enums of "nmp-base.h" need a
place. Add "nmp-base.c" for that.
This commit is contained in:
Thomas Haller 2022-09-20 14:39:17 +02:00
parent aea053db38
commit 4366dc6582
No known key found for this signature in database
GPG Key ID: 29C2366E4DFC5728
3 changed files with 10 additions and 0 deletions

View File

@ -607,6 +607,7 @@ src_libnm_platform_libnm_platform_la_SOURCES = \
src/libnm-platform/nm-platform-utils.h \
src/libnm-platform/nm-platform.c \
src/libnm-platform/nm-platform.h \
src/libnm-platform/nmp-base.c \
src/libnm-platform/nmp-base.h \
src/libnm-platform/nmp-global-tracker.c \
src/libnm-platform/nmp-global-tracker.h \

View File

@ -7,6 +7,7 @@ libnm_platform = static_library(
'nm-netlink.c',
'nm-platform-utils.c',
'nm-platform.c',
'nmp-base.c',
'nmp-global-tracker.c',
'nmp-netns.c',
'nmp-object.c',

View File

@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C) 2015 - 2018 Red Hat, Inc.
*/
#include "libnm-glib-aux/nm-default-glib-i18n-lib.h"
#include "nmp-base.h"