summaryrefslogtreecommitdiff
path: root/gweb/gweb.h
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-04-27 17:33:13 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-04-27 16:45:01 +0200
commit747a5c4132ffdfd4cdf859c43c615feb0b787c7d (patch)
treebb1c9497f6b9a0532f00806e38f1fd3de5e14a95 /gweb/gweb.h
parent7faf6c0ccbd9ff8f4bccacb6b23c43e3f37c17e1 (diff)
downloadconnman-747a5c4132ffdfd4cdf859c43c615feb0b787c7d.tar.gz
connman-747a5c4132ffdfd4cdf859c43c615feb0b787c7d.tar.bz2
connman-747a5c4132ffdfd4cdf859c43c615feb0b787c7d.zip
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 56405d2a..d6ed942c 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);