summaryrefslogtreecommitdiff
path: root/response.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-13 20:30:19 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-13 20:30:19 -0400
commit8abcec2ec0de2cb1344e780775a92ed7cb3b71ec (patch)
tree684a11b9135f7e7fa0767482b6e60a0209cbe654 /response.c
parenta89f9159b155f04daddd51b6cf1a7d021af67ba2 (diff)
separate main output and error responses
Diffstat (limited to 'response.c')
-rw-r--r--response.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/response.c b/response.c
index d49baad..d6bfcc1 100644
--- a/response.c
+++ b/response.c
@@ -136,9 +136,6 @@ void responseCb(gpointer instance, GObject *arg1, gpointer user_data)
GPollableOutputStream* stream = (GPollableOutputStream*)data->outStream;
gchar* str = data->data;
-
- gchar* out = NULL;
-
g_strstrip(str);
// I2C/LCD test functions - start
@@ -148,10 +145,7 @@ void responseCb(gpointer instance, GObject *arg1, gpointer user_data)
// I2C/LCD test functions - stop
// FIXME - Parser_main may generate multiple responses
- Parser_main(str, &out, 1);
-
- data->cb(stream, out);
+ Parser_main(str, 1, data->cb, stream);
- g_free(out);
g_static_mutex_unlock (&mutex);
}