api: only allow including `ModemManager.h' directly
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
|
||||
/**
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user