Integrate the multiplexer into the AT chat library
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 5 Sep 2009 22:25:16 +0000 (00:25 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 5 Sep 2009 22:25:16 +0000 (00:25 +0200)
Makefile.am
gatchat/gatmux.c [moved from gatmux/gatmux.c with 93% similarity]
gatchat/gatmux.h [moved from gatmux/gatmux.h with 90% similarity]
gatchat/gsm0710.c [moved from gatmux/gsm0710.c with 99% similarity]
gatchat/gsm0710.h [moved from gatmux/gsm0710_p.h with 98% similarity]
unit/test-mux.c

index face860..d7cfc46 100644 (file)
@@ -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)
 
similarity index 93%
rename from gatmux/gatmux.c
rename to gatchat/gatmux.c
index 14c567e..6c67bfd 100644 (file)
@@ -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 <glib.h>
 
-#include "gsm0710_p.h"
+#include "gsm0710.h"
 #include "gatmux.h"
 
 struct _GAtMux {
similarity index 90%
rename from gatmux/gatmux.h
rename to gatchat/gatmux.h
index e21231a..397ca75 100644 (file)
@@ -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
similarity index 99%
rename from gatmux/gsm0710.c
rename to gatchat/gsm0710.c
index 59bd613..e9d128d 100644 (file)
@@ -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 <string.h>
 #include <stdio.h>
 
-#include "gsm0710_p.h"
+#include "gsm0710.h"
 
 /* Frame types and subtypes */
 #define GSM0710_OPEN_CHANNEL           0x3F
similarity index 98%
rename from gatmux/gsm0710_p.h
rename to gatchat/gsm0710.h
index 4961dab..e94ff5a 100644 (file)
@@ -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.
index ad757f3..ba335db 100644 (file)
@@ -26,7 +26,7 @@
 #include <glib.h>
 #include <glib/gprintf.h>
 
-#include "gsm0710_p.h"
+#include "gsm0710.h"
 
 static void debug_message(struct gsm0710_context *ctx, const char *msg)
 {