Add generic receive function definition
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 10 Apr 2010 09:54:12 +0000 (11:54 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 10 Apr 2010 09:54:12 +0000 (11:54 +0200)
gatchat/gat.h

index 6696e7d..ddf8695 100644 (file)
 #ifndef __GAT_H
 #define __GAT_H
 
+#include <glib.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 typedef void (*GAtDisconnectFunc)(gpointer user_data);
+typedef void (*GAtReceiveFunc)(const unsigned char *data, gsize size,
+                                                       gpointer user_data);
 typedef void (*GAtDebugFunc)(const char *str, gpointer user_data);
 
 #ifdef __cplusplus