From c9ba0e7df580a0e1f262077441652f4d5b3d6cff Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 6 Sep 2009 00:25:16 +0200 Subject: [PATCH] Integrate the multiplexer into the AT chat library --- Makefile.am | 14 ++++++-------- {gatmux => gatchat}/gatmux.c | 6 +++--- {gatmux => gatchat}/gatmux.h | 4 ++-- {gatmux => gatchat}/gsm0710.c | 4 ++-- gatmux/gsm0710_p.h => gatchat/gsm0710.h | 2 +- unit/test-mux.c | 2 +- 6 files changed, 15 insertions(+), 17 deletions(-) rename {gatmux => gatchat}/gatmux.c (93%) rename {gatmux => gatchat}/gatmux.h (90%) rename {gatmux => gatchat}/gsm0710.c (99%) rename gatmux/gsm0710_p.h => gatchat/gsm0710.h (98%) diff --git a/Makefile.am b/Makefile.am index face860..d7cfc46 100644 --- a/Makefile.am +++ b/Makefile.am @@ -42,13 +42,12 @@ gisi_sources = gisi/phonet.h gisi/modem.h gisi/netlink.h gisi/netlink.c \ gisi/socket.h gisi/socket.c gisi/client.h gisi/client.c \ gisi/pep.h gisi/pep.c gisi/pipe.h gisi/pipe.c -gatmux_sources = gatmux/gatmux.h gatmux/gatmux.c \ - gatmux/gsm0710_p.h gatmux/gsm0710.c - gatchat_sources = gatchat/gatchat.h gatchat/gatchat.c \ gatchat/gatresult.h gatchat/gatresult.c \ gatchat/gatsyntax.h gatchat/gatsyntax.c \ - gatchat/ringbuffer.h gatchat/ringbuffer.c + gatchat/ringbuffer.h gatchat/ringbuffer.c \ + gatchat/gatmux.h gatchat/gatmux.c \ + gatchat/gsm0710.h gatchat/gsm0710.c udev_files = plugins/ofono.rules @@ -86,7 +85,7 @@ endif if ATMODEM builtin_modules += atmodem -builtin_sources += $(gatmux_sources) $(gatchat_sources) \ +builtin_sources += $(gatchat_sources) \ drivers/atmodem/atmodem.h \ drivers/atmodem/atmodem.c \ drivers/atmodem/call-settings.c \ @@ -185,8 +184,7 @@ AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ @GTHREAD_CFLAGS@ \ -DPLUGINDIR=\""$(build_plugindir)"\" INCLUDES = -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/src \ - -I$(srcdir)/gdbus -I$(srcdir)/gisi \ - -I$(srcdir)/gatmux -I$(srcdir)/gatchat + -I$(srcdir)/gdbus -I$(srcdir)/gisi -I$(srcdir)/gatchat doc_files = doc/overview.txt \ doc/manager-api.txt doc/modem-api.txt doc/network-api.txt \ @@ -233,7 +231,7 @@ unit_test_simutil_SOURCES = unit/test-simutil.c src/util.c \ unit_test_simutil_LDADD = @GLIB_LIBS@ unit_objects += $(unit_test_simutil_OBJECTS) -unit_test_mux_SOURCES = unit/test-mux.c gatmux/gsm0710_p.h gatmux/gsm0710.c +unit_test_mux_SOURCES = unit/test-mux.c gatchat/gsm0710.h gatchat/gsm0710.c unit_test_mux_LDADD = @GLIB_LIBS@ unit_objects += $(unit_test_mux_OBJECTS) diff --git a/gatmux/gatmux.c b/gatchat/gatmux.c similarity index 93% rename from gatmux/gatmux.c rename to gatchat/gatmux.c index 14c567e..6c67bfd 100644 --- a/gatmux/gatmux.c +++ b/gatchat/gatmux.c @@ -1,8 +1,8 @@ /* * - * AT multiplexer library with GLib integration + * AT chat library with GLib integration * - * Copyright (C) 2009 Intel Corporation. All rights reserved. + * Copyright (C) 2008-2009 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -31,7 +31,7 @@ #include -#include "gsm0710_p.h" +#include "gsm0710.h" #include "gatmux.h" struct _GAtMux { diff --git a/gatmux/gatmux.h b/gatchat/gatmux.h similarity index 90% rename from gatmux/gatmux.h rename to gatchat/gatmux.h index e21231a..397ca75 100644 --- a/gatmux/gatmux.h +++ b/gatchat/gatmux.h @@ -1,8 +1,8 @@ /* * - * AT multiplexer library with GLib integration + * AT chat library with GLib integration * - * Copyright (C) 2009 Intel Corporation. All rights reserved. + * Copyright (C) 2008-2009 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as diff --git a/gatmux/gsm0710.c b/gatchat/gsm0710.c similarity index 99% rename from gatmux/gsm0710.c rename to gatchat/gsm0710.c index 59bd613..e9d128d 100644 --- a/gatmux/gsm0710.c +++ b/gatchat/gsm0710.c @@ -1,6 +1,6 @@ /* * - * AT multiplexer library with GLib integration + * AT chat library with GLib integration * * Copyright (C) 2009 Intel Corporation. All rights reserved. * Copyright (C) 2009 Trolltech ASA. @@ -28,7 +28,7 @@ #include #include -#include "gsm0710_p.h" +#include "gsm0710.h" /* Frame types and subtypes */ #define GSM0710_OPEN_CHANNEL 0x3F diff --git a/gatmux/gsm0710_p.h b/gatchat/gsm0710.h similarity index 98% rename from gatmux/gsm0710_p.h rename to gatchat/gsm0710.h index 4961dab..e94ff5a 100644 --- a/gatmux/gsm0710_p.h +++ b/gatchat/gsm0710.h @@ -1,6 +1,6 @@ /* * - * AT multiplexer library with GLib integration + * AT chat library with GLib integration * * Copyright (C) 2009 Intel Corporation. All rights reserved. * Copyright (C) 2009 Trolltech ASA. diff --git a/unit/test-mux.c b/unit/test-mux.c index ad757f3..ba335db 100644 --- a/unit/test-mux.c +++ b/unit/test-mux.c @@ -26,7 +26,7 @@ #include #include -#include "gsm0710_p.h" +#include "gsm0710.h" static void debug_message(struct gsm0710_context *ctx, const char *msg) { -- 2.7.4