diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-13 20:30:19 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-13 20:30:19 -0400 |
commit | 8abcec2ec0de2cb1344e780775a92ed7cb3b71ec (patch) | |
tree | 684a11b9135f7e7fa0767482b6e60a0209cbe654 /response.c | |
parent | a89f9159b155f04daddd51b6cf1a7d021af67ba2 (diff) |
separate main output and error responses
Diffstat (limited to 'response.c')
-rw-r--r-- | response.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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); } |