From ed551a463308ae6e0045c1c51b0cc14a2f04d3dc Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 1 Jun 2016 12:17:59 +0200 Subject: [PATCH] shared: add "nm-common-macros.h" header Shared headers are all project-wide and internal API. Currently we have the following: General purpose: - shared/gsystem-local-alloc.h: header-only, allocation macros - shared/nm-dbus-compat.h: header-only, D-Bus related defines - shared/nm-glib.h: header-only, glib compatibility defines - shared/nm-macros-internal.h: header-only, utils - shared/nm-shared-utils.[hc]: source and header, utils - shared/nm-test*.[hc]: source and header, libnm testing utils Special to NetworkManager repository: - shared/nm-version-macros.h.in: header-only, version macros - shared/nm-default.h: header-only, default-include Now we add "shared/nm-common-macros.h" which is header-only, but non general purpose. I am running low on good names, considering all the shared/core/macros utils headers. Still, I think "nm-common-macros.h" is appropriate. --- shared/Makefile.am | 1 + shared/nm-common-macros.h | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 shared/nm-common-macros.h diff --git a/shared/Makefile.am b/shared/Makefile.am index c042fdbe80..c6ede00b6a 100644 --- a/shared/Makefile.am +++ b/shared/Makefile.am @@ -1,5 +1,6 @@ EXTRA_DIST = \ gsystem-local-alloc.h \ + nm-common-macros.h \ nm-dbus-compat.h \ nm-default.h \ nm-glib.h \ diff --git a/shared/nm-common-macros.h b/shared/nm-common-macros.h new file mode 100644 index 0000000000..d7050aab7c --- /dev/null +++ b/shared/nm-common-macros.h @@ -0,0 +1,27 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ +/* NetworkManager -- Network link manager + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA. + * + * (C) Copyright 2016 Red Hat, Inc. + */ + +#ifndef __NM_COMMON_MACROS_H__ +#define __NM_COMMON_MACROS_H__ + +/******************************************************************************/ + +#endif /* __NM_COMMON_MACROS_H__ */