summaryrefslogtreecommitdiff
path: root/gweb/gweb.h
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-04-27 14:33:13 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2012-04-27 14:45:01 (GMT)
commit747a5c4132ffdfd4cdf859c43c615feb0b787c7d (patch)
treebb1c9497f6b9a0532f00806e38f1fd3de5e14a95 /gweb/gweb.h
parent7faf6c0ccbd9ff8f4bccacb6b23c43e3f37c17e1 (diff)
downloadconnman-747a5c4132ffdfd4cdf859c43c615feb0b787c7d.zip
connman-747a5c4132ffdfd4cdf859c43c615feb0b787c7d.tar.gz
connman-747a5c4132ffdfd4cdf859c43c615feb0b787c7d.tar.bz2
gweb: Define GWebRouteFunc
Define GWebRouteFunc that will be called when a route to the intended destination may need to be set up.
Diffstat (limited to 'gweb/gweb.h')
-rw-r--r--gweb/gweb.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gweb/gweb.h b/gweb/gweb.h
index 56405d2..d6ed942 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 (*GWebRouteFunc)(const char *addr, int ai_family,
+ int if_index, gpointer user_data);
+
typedef gboolean (*GWebInputFunc)(const guint8 **data, gsize *length,
gpointer user_data);
@@ -70,7 +73,8 @@ void g_web_set_close_connection(GWeb *web, gboolean enabled);
gboolean g_web_get_close_connection(GWeb *web);
guint g_web_request_get(GWeb *web, const char *url,
- GWebResultFunc func, gpointer user_data);
+ GWebResultFunc func, GWebRouteFunc route,
+ gpointer user_data);
guint g_web_request_post(GWeb *web, const char *url,
const char *type, GWebInputFunc input,
GWebResultFunc func, gpointer user_data);