From 8abcec2ec0de2cb1344e780775a92ed7cb3b71ec Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Mon, 13 Aug 2012 20:30:19 -0400 Subject: separate main output and error responses --- response.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'response.c') 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); } -- cgit