summaryrefslogtreecommitdiffstats
path: root/gatchat/gatmux.h
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-10-14 15:50:55 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-10-15 16:15:17 -0500
commit112d07e14e26cf4905375547848efa7d72bee979 (patch)
tree8034f2f3251916f9ab7f4bacb900075a792b3a42 /gatchat/gatmux.h
parent90bdd961a7ee433b279653e35d187a7d1ed742e7 (diff)
downloadofono-112d07e14e26cf4905375547848efa7d72bee979.tar.bz2
Refactor: Add driver model to GAtMux
GAtMux can now be made to work with multiple multiplexing protocols. Currently on the 27.010 (07.10) Advanced and Basic modes are supported. However, further protocol support can be added by providing the necessary driver functions for GAtMux
Diffstat (limited to 'gatchat/gatmux.h')
-rw-r--r--gatchat/gatmux.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gatchat/gatmux.h b/gatchat/gatmux.h
index fcb3f329..aff44ffb 100644
--- a/gatchat/gatmux.h
+++ b/gatchat/gatmux.h
@@ -3,6 +3,7 @@
* AT chat library with GLib integration
*
* Copyright (C) 2008-2009 Intel Corporation. All rights reserved.
+ * Copyright (C) 2009 Trolltech ASA.
*
* 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
@@ -48,9 +49,9 @@ struct _GAtMuxDriver {
gboolean (*shutdown)(GAtMux *mux);
gboolean (*open_dlc)(GAtMux *mux, guint8 dlc);
gboolean (*close_dlc)(GAtMux *mux, guint8 dlc);
- void (*ready_read)(GAtMux *mux);
- void (*set_status)(GAtMux *mux, guint8 dlc, int status);
+ void (*set_status)(GAtMux *mux, guint8 dlc, guint8 status);
void (*write)(GAtMux *mux, guint8 dlc, const void *data, int towrite);
+ int (*feed_data)(GAtMux *mux, void *data, int len);
};
GAtMux *g_at_mux_new(GIOChannel *channel, const GAtMuxDriver *driver);
@@ -77,7 +78,6 @@ void g_at_mux_set_dlc_status(GAtMux *mux, guint8 dlc, int status);
void g_at_mux_feed_dlc_data(GAtMux *mux, guint8 dlc,
const void *data, int tofeed);
-int g_at_mux_raw_read(GAtMux *mux, void *data, int toread);
int g_at_mux_raw_write(GAtMux *mux, const void *data, int towrite);
void g_at_mux_set_data(GAtMux *mux, void *data);