api: only allow including `ModemManager.h' directly

This commit is contained in:
Aleksander Morgado
2012-10-04 10:17:13 +02:00
parent 239c56cf7f
commit 4251030bd8
7 changed files with 18 additions and 7 deletions
+4
View File
@@ -17,6 +17,10 @@
#ifndef _MODEMMANAGER_ENUMS_H_
#define _MODEMMANAGER_ENUMS_H_
#if !defined (__MODEM_MANAGER_H_INSIDE__)
#error "Only <ModemManager.h> can be included directly."
#endif
/**
* SECTION:mm-enums
* @short_description: Common enumerations and types in the API.
+4
View File
@@ -17,6 +17,10 @@
#ifndef _MODEMMANAGER_ERRORS_H_
#define _MODEMMANAGER_ERRORS_H_
#if !defined (__MODEM_MANAGER_H_INSIDE__)
#error "Only <ModemManager.h> can be included directly."
#endif
#include <ModemManager-names.h>
/**
+2
View File
@@ -25,6 +25,8 @@
#ifndef _MODEM_MANAGER_H_
#define _MODEM_MANAGER_H_
#define __MODEM_MANAGER_H_INSIDE__
/* Public header with DBus Interface, Method, Signal and Property names */
#include <ModemManager-names.h>