diff options
author | Thomas Haller <thaller@redhat.com> | 2016-06-01 12:17:59 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-06-01 15:32:45 +0200 |
commit | 47869414cd8ad5a1da392f0d597e51ad3d2e9451 (patch) | |
tree | 5e4a0ad1a3e96e154a5b143f57561fc91a6d4776 | |
parent | b89cf89220757d29fceeb15652f36e6dd6a8bb4f (diff) | |
download | NetworkManager-47869414cd8ad5a1da392f0d597e51ad3d2e9451.tar.gz |
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.
-rw-r--r-- | shared/Makefile.am | 1 | ||||
-rw-r--r-- | shared/nm-common-macros.h | 27 |
2 files changed, 28 insertions, 0 deletions
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__ */ |