summaryrefslogtreecommitdiff
path: root/gweb/gweb.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-11-02 07:21:41 +0100
committerMarcel Holtmann <marcel@holtmann.org>2010-11-02 07:21:41 +0100
commit027b25a852e419e3c21fdaa49de705e2efc0db04 (patch)
treea21093c70f0648ea8a327c4a00c1b4e3fef6568d /gweb/gweb.h
parent0d97fa0a5793b17e01bacb1a9c2ff188cdd20744 (diff)
downloadconnman-027b25a852e419e3c21fdaa49de705e2efc0db04.tar.gz
connman-027b25a852e419e3c21fdaa49de705e2efc0db04.tar.bz2
connman-027b25a852e419e3c21fdaa49de705e2efc0db04.zip
Add simple support for dealing with HTTP body content
Diffstat (limited to 'gweb/gweb.h')
-rw-r--r--gweb/gweb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gweb/gweb.h b/gweb/gweb.h
index 8e918784..fa6a8972 100644
--- a/gweb/gweb.h
+++ b/gweb/gweb.h
@@ -40,6 +40,9 @@ typedef struct _GWebParser GWebParser;
typedef gboolean (*GWebResultFunc)(GWebResult *result, gpointer user_data);
+typedef gboolean (*GWebInputFunc)(const guint8 **data, gsize *length,
+ gpointer user_data);
+
typedef void (*GWebDebugFunc)(const char *str, gpointer user_data);
GWeb *g_web_new(int index);
@@ -62,7 +65,7 @@ gboolean g_web_get_close_connection(GWeb *web);
guint g_web_request_get(GWeb *web, const char *url,
GWebResultFunc func, gpointer user_data);
guint g_web_request_post(GWeb *web, const char *url,
- const char *type, guint8 *data, gsize length,
+ const char *type, GWebInputFunc input,
GWebResultFunc func, gpointer user_data);
gboolean g_web_cancel_request(GWeb *web, guint id);