libmm-glib: remove the `libmm-common.h' header

Both the ModemManager daemon and the mmcli will now include `libmm-glib.h' only.

We also handle two new special `_LIBMM_INSIDE_MM' and `LIBMM_INSIDE_MMCLI'
symbols, which if included before the `libmm-glib.h' library allow us to:

 * Don't include the libmm-glib high level API in the ModemManager daemon, as
   the object names would clash with those in the core.

 * Define some of the methods of helper objects to be included only if compiling
   ModemManager daemon or the mmcli.
This commit is contained in:
Aleksander Morgado
2012-10-03 12:46:37 +02:00
parent 8bdcdeecb6
commit c250fa3797
117 changed files with 292 additions and 165 deletions

View File

@@ -18,7 +18,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-log.h"
#include "mm-plugin-anydata.h"

View File

@@ -24,7 +24,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-plugin-cinterion.h"
#include "mm-broadband-modem-cinterion.h"

View File

@@ -25,7 +25,8 @@
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-plugin-generic.h"
#include "mm-broadband-modem.h"

View File

@@ -17,7 +17,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-plugin-gobi.h"
#include "mm-broadband-modem-gobi.h"

View File

@@ -23,10 +23,12 @@
#include <unistd.h>
#include <ctype.h>
#include "ModemManager.h"
#include <ModemManager.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-log.h"
#include "mm-errors-types.h"
#include "mm-common-helpers.h"
#include "mm-modem-helpers.h"
#include "mm-base-modem-at.h"
#include "mm-iface-modem.h"

View File

@@ -20,7 +20,8 @@
#include <string.h>
#include <errno.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-serial-enums-types.h"
#include "mm-log.h"

View File

@@ -24,7 +24,8 @@
#include <arpa/inet.h>
#include <ModemManager.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-broadband-bearer-icera.h"
#include "mm-base-modem-at.h"

View File

@@ -22,7 +22,8 @@
#include <glib.h>
#include <glib-object.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-broadband-bearer.h"

View File

@@ -21,7 +21,8 @@
#include <ctype.h>
#include <ModemManager.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-bearer-iridium.h"
#include "mm-base-modem-at.h"

View File

@@ -21,7 +21,8 @@
#include <glib.h>
#include <glib-object.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-broadband-bearer.h"
#include "mm-broadband-modem-iridium.h"

View File

@@ -23,7 +23,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-plugin-iridium.h"
#include "mm-broadband-modem-iridium.h"

View File

@@ -22,7 +22,8 @@
#include <ctype.h>
#include <ModemManager.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-sim-iridium.h"

View File

@@ -23,7 +23,8 @@
#include <unistd.h>
#include <ctype.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "ModemManager.h"
#include "mm-serial-parsers.h"

View File

@@ -17,7 +17,9 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-plugin-linktop.h"
#include "mm-broadband-modem-linktop.h"

View File

@@ -18,7 +18,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-log.h"
#include "mm-modem-helpers.h"

View File

@@ -32,7 +32,8 @@
#include <arpa/inet.h>
#include <ModemManager.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-base-modem-at.h"
#include "mm-broadband-bearer-mbm.h"

View File

@@ -28,7 +28,8 @@
#include <glib.h>
#include <glib-object.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-broadband-bearer.h"
#include "mm-broadband-modem-mbm.h"

View File

@@ -20,7 +20,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-log.h"
#include "mm-plugin-mbm.h"

View File

@@ -18,7 +18,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-private-boxed-types.h"
#include "mm-plugin-motorola.h"

View File

@@ -17,7 +17,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-log.h"
#include "mm-plugin-nokia-icera.h"

View File

@@ -18,7 +18,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-log.h"
#include "mm-plugin-nokia.h"

View File

@@ -21,7 +21,8 @@
#include <ctype.h>
#include <ModemManager.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-sim-nokia.h"

View File

@@ -24,7 +24,8 @@
#include <ctype.h>
#include <ModemManager.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-base-modem-at.h"
#include "mm-broadband-bearer-novatel-lte.h"

View File

@@ -21,7 +21,8 @@
#include <glib.h>
#include <glib-object.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-broadband-bearer.h"
#include "mm-broadband-modem-novatel-lte.h"

View File

@@ -21,7 +21,8 @@
#include <ctype.h>
#include <ModemManager.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-log.h"
#include "mm-modem-helpers.h"
#include "mm-base-modem-at.h"

View File

@@ -25,7 +25,8 @@
#include <arpa/inet.h>
#include <ModemManager.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-base-modem-at.h"
#include "mm-broadband-bearer-hso.h"

View File

@@ -19,7 +19,8 @@
#include <glib.h>
#include <glib-object.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-broadband-bearer.h"
#include "mm-broadband-modem-hso.h"

View File

@@ -18,7 +18,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-private-boxed-types.h"
#include "mm-plugin-hso.h"

View File

@@ -18,7 +18,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-private-boxed-types.h"
#include "mm-plugin-option.h"

View File

@@ -16,7 +16,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-log.h"
#include "mm-plugin-pantech.h"

View File

@@ -24,7 +24,8 @@
#include <ctype.h>
#include <ModemManager.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-base-modem-at.h"
#include "mm-broadband-bearer-sierra.h"

View File

@@ -21,7 +21,8 @@
#include <glib.h>
#include <glib-object.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-broadband-bearer.h"
#include "mm-broadband-modem-sierra.h"

View File

@@ -19,7 +19,8 @@
#include <stdlib.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-log.h"
#include "mm-plugin-sierra.h"

View File

@@ -23,7 +23,8 @@
#include <ctype.h>
#include <ModemManager.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-log.h"
#include "mm-modem-helpers.h"
#include "mm-base-modem-at.h"

View File

@@ -23,7 +23,8 @@
#include <unistd.h>
#include <ctype.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "ModemManager.h"
#include "mm-modem-helpers.h"

View File

@@ -17,7 +17,9 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-plugin-simtech.h"
#include "mm-broadband-modem-simtech.h"

View File

@@ -23,7 +23,8 @@
#include <unistd.h>
#include <ctype.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "ModemManager.h"
#include "mm-log.h"

View File

@@ -25,7 +25,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-plugin-wavecom.h"
#include "mm-broadband-modem-wavecom.h"

View File

@@ -18,7 +18,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-log.h"
#include "mm-modem-helpers.h"

View File

@@ -18,7 +18,8 @@
#include <string.h>
#include <gmodule.h>
#include <libmm-common.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-log.h"
#include "mm-plugin-zte.h"