diff options
37 files changed, 157 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 15dd21f..14bff6b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,7 +8,8 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/src \ -I$(top_srcdir)/src/test \ ${COMMONAPI_CFLAGS} \ - ${DBUS_CFLAGS} + ${DBUS_CFLAGS} \ + -DCOMMONAPI_INTERNAL_COMPILATION AM_LDFLAGS = \ diff --git a/src/CommonAPI/DBus/DBusAddressTranslator.h b/src/CommonAPI/DBus/DBusAddressTranslator.h index de38f4e..9c58018 100644 --- a/src/CommonAPI/DBus/DBusAddressTranslator.h +++ b/src/CommonAPI/DBus/DBusAddressTranslator.h @@ -5,6 +5,9 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif #ifndef DBUSNAMESERVICE_H_ #define DBUSNAMESERVICE_H_ diff --git a/src/CommonAPI/DBus/DBusAttribute.h b/src/CommonAPI/DBus/DBusAttribute.h index 89cc61a..eb77384 100644 --- a/src/CommonAPI/DBus/DBusAttribute.h +++ b/src/CommonAPI/DBus/DBusAttribute.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_ATTRIBUTE_H_ #define COMMONAPI_DBUS_DBUS_ATTRIBUTE_H_ diff --git a/src/CommonAPI/DBus/DBusConnection.h b/src/CommonAPI/DBus/DBusConnection.h index 83d02a4..39fe1e1 100644 --- a/src/CommonAPI/DBus/DBusConnection.h +++ b/src/CommonAPI/DBus/DBusConnection.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_CONNECTION_H_ #define COMMONAPI_DBUS_DBUS_CONNECTION_H_ diff --git a/src/CommonAPI/DBus/DBusDaemonProxy.h b/src/CommonAPI/DBus/DBusDaemonProxy.h index 0053c1b..ca4d248 100644 --- a/src/CommonAPI/DBus/DBusDaemonProxy.h +++ b/src/CommonAPI/DBus/DBusDaemonProxy.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_DAEMON_PROXY_H_ #define COMMONAPI_DBUS_DBUS_DAEMON_PROXY_H_ diff --git a/src/CommonAPI/DBus/DBusError.h b/src/CommonAPI/DBus/DBusError.h index b01ea98..8feaa99 100644 --- a/src/CommonAPI/DBus/DBusError.h +++ b/src/CommonAPI/DBus/DBusError.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_ERROR_H_ #define COMMONAPI_DBUS_DBUS_ERROR_H_ diff --git a/src/CommonAPI/DBus/DBusEvent.h b/src/CommonAPI/DBus/DBusEvent.h index 561fa04..4bd235d 100644 --- a/src/CommonAPI/DBus/DBusEvent.h +++ b/src/CommonAPI/DBus/DBusEvent.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_EVENT_H_ #define COMMONAPI_DBUS_DBUS_EVENT_H_ diff --git a/src/CommonAPI/DBus/DBusFactory.h b/src/CommonAPI/DBus/DBusFactory.h index 3775944..d2ee0d9 100644 --- a/src/CommonAPI/DBus/DBusFactory.h +++ b/src/CommonAPI/DBus/DBusFactory.h @@ -5,6 +5,10 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_FACTORY_H_ #define COMMONAPI_DBUS_DBUS_FACTORY_H_ diff --git a/src/CommonAPI/DBus/DBusFunctionalHash.h b/src/CommonAPI/DBus/DBusFunctionalHash.h index 9736ac9..ba8cfb8 100644 --- a/src/CommonAPI/DBus/DBusFunctionalHash.h +++ b/src/CommonAPI/DBus/DBusFunctionalHash.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_FUNCTIONAL_HASH_H_ #define COMMONAPI_DBUS_DBUS_FUNCTIONAL_HASH_H_ diff --git a/src/CommonAPI/DBus/DBusHelper.h b/src/CommonAPI/DBus/DBusHelper.h index 7d29705..bcf80d1 100644 --- a/src/CommonAPI/DBus/DBusHelper.h +++ b/src/CommonAPI/DBus/DBusHelper.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_HELPER_H_ #define COMMONAPI_DBUS_DBUS_HELPER_H_ diff --git a/src/CommonAPI/DBus/DBusInputStream.h b/src/CommonAPI/DBus/DBusInputStream.h index fb190c9..3edd874 100644 --- a/src/CommonAPI/DBus/DBusInputStream.h +++ b/src/CommonAPI/DBus/DBusInputStream.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_INPUT_STREAM_H_ #define COMMONAPI_DBUS_DBUS_INPUT_STREAM_H_ diff --git a/src/CommonAPI/DBus/DBusLegacyVariant.h b/src/CommonAPI/DBus/DBusLegacyVariant.h index 1403dea..0ac9df6 100644 --- a/src/CommonAPI/DBus/DBusLegacyVariant.h +++ b/src/CommonAPI/DBus/DBusLegacyVariant.h @@ -5,6 +5,10 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef DBUSLEGACYVARIANT_H_ #define DBUSLEGACYVARIANT_H_ diff --git a/src/CommonAPI/DBus/DBusMainLoopContext.h b/src/CommonAPI/DBus/DBusMainLoopContext.h index 602720d..7e59535 100644 --- a/src/CommonAPI/DBus/DBusMainLoopContext.h +++ b/src/CommonAPI/DBus/DBusMainLoopContext.h @@ -5,6 +5,10 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef DBUS_MAINLOOPCONTEXT_H_ #define DBUS_MAINLOOPCONTEXT_H_ diff --git a/src/CommonAPI/DBus/DBusMessage.h b/src/CommonAPI/DBus/DBusMessage.h index 558654e..0a77bde 100644 --- a/src/CommonAPI/DBus/DBusMessage.h +++ b/src/CommonAPI/DBus/DBusMessage.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_MESSAGE_H_ #define COMMONAPI_DBUS_DBUS_MESSAGE_H_ diff --git a/src/CommonAPI/DBus/DBusMultiEvent.h b/src/CommonAPI/DBus/DBusMultiEvent.h index 910c8c1..a98dd80 100644 --- a/src/CommonAPI/DBus/DBusMultiEvent.h +++ b/src/CommonAPI/DBus/DBusMultiEvent.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_MULTI_EVENT_H_ #define COMMONAPI_DBUS_DBUS_MULTI_EVENT_H_ diff --git a/src/CommonAPI/DBus/DBusObjectManager.h b/src/CommonAPI/DBus/DBusObjectManager.h index cb60948..55bcb62 100644 --- a/src/CommonAPI/DBus/DBusObjectManager.h +++ b/src/CommonAPI/DBus/DBusObjectManager.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_OBJECT_MANAGER_H_ #define COMMONAPI_DBUS_DBUS_OBJECT_MANAGER_H_ diff --git a/src/CommonAPI/DBus/DBusOutputStream.h b/src/CommonAPI/DBus/DBusOutputStream.h index 229eefc..9c7105f 100644 --- a/src/CommonAPI/DBus/DBusOutputStream.h +++ b/src/CommonAPI/DBus/DBusOutputStream.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_OUTPUT_MESSAGE_STREAM_H_ #define COMMONAPI_DBUS_DBUS_OUTPUT_MESSAGE_STREAM_H_ diff --git a/src/CommonAPI/DBus/DBusProxy.h b/src/CommonAPI/DBus/DBusProxy.h index 977b006..253f0bb 100644 --- a/src/CommonAPI/DBus/DBusProxy.h +++ b/src/CommonAPI/DBus/DBusProxy.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_PROXY_H_ #define COMMONAPI_DBUS_DBUS_PROXY_H_ diff --git a/src/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.h b/src/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.h index 0c6d56e..74bb244 100644 --- a/src/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.h +++ b/src/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_PROXY_ASYNC_CALLBACK_HANDLER_H_ #define COMMONAPI_DBUS_DBUS_PROXY_ASYNC_CALLBACK_HANDLER_H_ diff --git a/src/CommonAPI/DBus/DBusProxyBase.h b/src/CommonAPI/DBus/DBusProxyBase.h index 454d03f..d1310b7 100644 --- a/src/CommonAPI/DBus/DBusProxyBase.h +++ b/src/CommonAPI/DBus/DBusProxyBase.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_PROXY_BASE_H_ #define COMMONAPI_DBUS_DBUS_PROXY_BASE_H_ diff --git a/src/CommonAPI/DBus/DBusProxyConnection.h b/src/CommonAPI/DBus/DBusProxyConnection.h index c346c44..bd117a0 100644 --- a/src/CommonAPI/DBus/DBusProxyConnection.h +++ b/src/CommonAPI/DBus/DBusProxyConnection.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_PROXY_CONNECTION_H_ #define COMMONAPI_DBUS_DBUS_PROXY_CONNECTION_H_ diff --git a/src/CommonAPI/DBus/DBusProxyHelper.h b/src/CommonAPI/DBus/DBusProxyHelper.h index 48433d7..4a40602 100644 --- a/src/CommonAPI/DBus/DBusProxyHelper.h +++ b/src/CommonAPI/DBus/DBusProxyHelper.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_PROXY_HELPER_H_ #define COMMONAPI_DBUS_DBUS_PROXY_HELPER_H_ diff --git a/src/CommonAPI/DBus/DBusRuntime.h b/src/CommonAPI/DBus/DBusRuntime.h index 928385f..f9d222e 100644 --- a/src/CommonAPI/DBus/DBusRuntime.h +++ b/src/CommonAPI/DBus/DBusRuntime.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_RUNTIME_H_ #define COMMONAPI_DBUS_DBUS_RUNTIME_H_ diff --git a/src/CommonAPI/DBus/DBusSerializableArguments.h b/src/CommonAPI/DBus/DBusSerializableArguments.h index 53f4e55..bab1a68 100644 --- a/src/CommonAPI/DBus/DBusSerializableArguments.h +++ b/src/CommonAPI/DBus/DBusSerializableArguments.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_SERIALIZABLE_ARGUMENTS_H_ #define COMMONAPI_DBUS_SERIALIZABLE_ARGUMENTS_H_ diff --git a/src/CommonAPI/DBus/DBusServicePublisher.h b/src/CommonAPI/DBus/DBusServicePublisher.h index 6e7cdfc..4559386 100644 --- a/src/CommonAPI/DBus/DBusServicePublisher.h +++ b/src/CommonAPI/DBus/DBusServicePublisher.h @@ -5,6 +5,10 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_SERVICE_PUBLISHER_H_ #define COMMONAPI_DBUS_DBUS_SERVICE_PUBLISHER_H_ diff --git a/src/CommonAPI/DBus/DBusServiceRegistry.h b/src/CommonAPI/DBus/DBusServiceRegistry.h index c03fb92..28dd6a1 100644 --- a/src/CommonAPI/DBus/DBusServiceRegistry.h +++ b/src/CommonAPI/DBus/DBusServiceRegistry.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_SERVICE_REGISTRY_H_ #define COMMONAPI_DBUS_DBUS_SERVICE_REGISTRY_H_ diff --git a/src/CommonAPI/DBus/DBusServiceStatusEvent.h b/src/CommonAPI/DBus/DBusServiceStatusEvent.h index e81ba7e..4e8956a 100644 --- a/src/CommonAPI/DBus/DBusServiceStatusEvent.h +++ b/src/CommonAPI/DBus/DBusServiceStatusEvent.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_SERVICE_STATUS_EVENT_H_ #define COMMONAPI_DBUS_DBUS_SERVICE_STATUS_EVENT_H_ diff --git a/src/CommonAPI/DBus/DBusStubAdapter.h b/src/CommonAPI/DBus/DBusStubAdapter.h index 0382e61..5bac530 100644 --- a/src/CommonAPI/DBus/DBusStubAdapter.h +++ b/src/CommonAPI/DBus/DBusStubAdapter.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_STUB_ADAPTER_H_ #define COMMONAPI_DBUS_DBUS_STUB_ADAPTER_H_ diff --git a/src/CommonAPI/DBus/DBusStubAdapterHelper.h b/src/CommonAPI/DBus/DBusStubAdapterHelper.h index ee627a3..b936f57 100644 --- a/src/CommonAPI/DBus/DBusStubAdapterHelper.h +++ b/src/CommonAPI/DBus/DBusStubAdapterHelper.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef COMMONAPI_DBUS_DBUS_STUB_ADAPTER_HELPER_H_ #define COMMONAPI_DBUS_DBUS_STUB_ADAPTER_HELPER_H_ diff --git a/src/CommonAPI/DBus/DBusUtils.h b/src/CommonAPI/DBus/DBusUtils.h index be39f28..22879d1 100644 --- a/src/CommonAPI/DBus/DBusUtils.h +++ b/src/CommonAPI/DBus/DBusUtils.h @@ -4,6 +4,11 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#endif + #ifndef DBUSUTILS_H_ #define DBUSUTILS_H_ diff --git a/src/test/DBusAddressTranslatorTest.cpp b/src/test/DBusAddressTranslatorTest.cpp index 468644d..bafe79f 100644 --- a/src/test/DBusAddressTranslatorTest.cpp +++ b/src/test/DBusAddressTranslatorTest.cpp @@ -13,6 +13,8 @@ #include <CommonAPI/CommonAPI.h> +#define COMMONAPI_INTERNAL_COMPILATION + #include <CommonAPI/DBus/DBusAddressTranslator.h> #include <CommonAPI/DBus/DBusUtils.h> #include <CommonAPI/DBus/DBusConnection.h> diff --git a/src/test/DBusCommunicationTest.cpp b/src/test/DBusCommunicationTest.cpp index a2c8072..bc8af66 100644 --- a/src/test/DBusCommunicationTest.cpp +++ b/src/test/DBusCommunicationTest.cpp @@ -20,6 +20,8 @@ #include <CommonAPI/CommonAPI.h> +#define COMMONAPI_INTERNAL_COMPILATION + #include <CommonAPI/DBus/DBusConnection.h> #include <CommonAPI/DBus/DBusProxy.h> #include <CommonAPI/DBus/DBusRuntime.h> diff --git a/src/test/DBusFactoryTest.cpp b/src/test/DBusFactoryTest.cpp index 0143080..523cce5 100644 --- a/src/test/DBusFactoryTest.cpp +++ b/src/test/DBusFactoryTest.cpp @@ -20,6 +20,8 @@ #include <CommonAPI/CommonAPI.h> +#define COMMONAPI_INTERNAL_COMPILATION + #include <CommonAPI/DBus/DBusConnection.h> #include <CommonAPI/DBus/DBusProxy.h> #include <CommonAPI/DBus/DBusRuntime.h> diff --git a/src/test/DBusMainLoopIntegrationTest.cpp b/src/test/DBusMainLoopIntegrationTest.cpp index e80913b..baa77ae 100644 --- a/src/test/DBusMainLoopIntegrationTest.cpp +++ b/src/test/DBusMainLoopIntegrationTest.cpp @@ -21,6 +21,8 @@ #include <CommonAPI/CommonAPI.h> +#define COMMONAPI_INTERNAL_COMPILATION + #include <CommonAPI/DBus/DBusConnection.h> #include <CommonAPI/DBus/DBusProxy.h> #include <CommonAPI/DBus/DBusRuntime.h> diff --git a/src/test/DBusMultipleConnectionTest.cpp b/src/test/DBusMultipleConnectionTest.cpp index 1396bd5..c061d2f 100644 --- a/src/test/DBusMultipleConnectionTest.cpp +++ b/src/test/DBusMultipleConnectionTest.cpp @@ -19,6 +19,8 @@ #include <CommonAPI/CommonAPI.h> +#define COMMONAPI_INTERNAL_COMPILATION + #include "commonapi/tests/TestInterfaceProxy.h" #include "commonapi/tests/TestInterfaceStubDefault.h" diff --git a/src/test/DBusServicePublisherTest.cpp b/src/test/DBusServicePublisherTest.cpp index fa67183..0124a43 100644 --- a/src/test/DBusServicePublisherTest.cpp +++ b/src/test/DBusServicePublisherTest.cpp @@ -19,6 +19,9 @@ #include <type_traits> #include <CommonAPI/CommonAPI.h> + +#define COMMONAPI_INTERNAL_COMPILATION + #include <CommonAPI/AttributeExtension.h> #include <CommonAPI/types.h> diff --git a/src/test/DBusServiceRegistryTest.cpp b/src/test/DBusServiceRegistryTest.cpp index af54a7e..a1321d1 100644 --- a/src/test/DBusServiceRegistryTest.cpp +++ b/src/test/DBusServiceRegistryTest.cpp @@ -9,6 +9,9 @@ #endif #include <CommonAPI/CommonAPI.h> + +#define COMMONAPI_INTERNAL_COMPILATION + #include <CommonAPI/DBus/DBusServiceRegistry.h> #include <CommonAPI/DBus/DBusConnection.h> #include <CommonAPI/DBus/DBusUtils.h> |