diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-10-12 15:40:31 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-10-15 16:15:17 -0500 |
commit | 6bfd76123bdfd64b3171a6960ae732b7c4832c4f (patch) | |
tree | 1fef3a83afaed370982e63aaa347515023a15c1b /gatchat/gatmux.c | |
parent | a4a54f66257a73d53f1029ba6feeeae979a49669 (diff) | |
download | ofono-6bfd76123bdfd64b3171a6960ae732b7c4832c4f.tar.bz2 |
Forgot to add driverdata functions
Diffstat (limited to 'gatchat/gatmux.c')
-rw-r--r-- | gatchat/gatmux.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gatchat/gatmux.c b/gatchat/gatmux.c index e7cb9fd0..e2385c6e 100644 --- a/gatchat/gatmux.c +++ b/gatchat/gatmux.c @@ -327,6 +327,22 @@ void g_at_mux_set_dlc_status(GAtMux *mux, guint8 dlc, int status) mux->dlcs[dlc-1]->throttled = TRUE; } +void g_at_mux_set_data(GAtMux *mux, void *data) +{ + if (mux == NULL) + return; + + mux->driver_data = data; +} + +void *g_at_mux_get_data(GAtMux *mux) +{ + if (mux == NULL) + return NULL; + + return mux->driver_data; +} + static gboolean watch_check(GSource *source) { return FALSE; |