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);
void g_web_set_debug(GWeb *web, GWebDebugFunc func, gpointer user_data);
+gboolean g_web_set_proxy(GWeb *web, const char *proxy);
+
gboolean g_web_add_nameserver(GWeb *web, const char *address);
gboolean g_web_set_accept(GWeb *web, const char *format, ...)
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);