projects
/
platform
/
upstream
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DA: Skip initializing failed_bssids list when eapol failure case
[platform/upstream/connman.git]
/
gweb
/
gweb.h
diff --git
a/gweb/gweb.h
b/gweb/gweb.h
old mode 100644
(file)
new mode 100755
(executable)
index
fa6a897
..
6c28542
--- a/
gweb/gweb.h
+++ b/
gweb/gweb.h
@@
-2,7
+2,7
@@
*
* Web service library with GLib integration
*
*
* Web service library with GLib integration
*
- * Copyright (C) 2009-201
0
Intel Corporation. All rights reserved.
+ * Copyright (C) 2009-201
2
Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@
-22,6
+22,7
@@
#ifndef __G_WEB_H
#define __G_WEB_H
#ifndef __G_WEB_H
#define __G_WEB_H
+#include <stdbool.h>
#include <stdint.h>
#include <glib.h>
#include <stdint.h>
#include <glib.h>
@@
-38,9
+39,12
@@
typedef struct _GWeb GWeb;
typedef struct _GWebResult GWebResult;
typedef struct _GWebParser GWebParser;
typedef struct _GWebResult GWebResult;
typedef struct _GWebParser GWebParser;
-typedef
gboolean
(*GWebResultFunc)(GWebResult *result, gpointer user_data);
+typedef
bool
(*GWebResultFunc)(GWebResult *result, gpointer user_data);
-typedef gboolean (*GWebInputFunc)(const guint8 **data, gsize *length,
+typedef bool (*GWebRouteFunc)(const char *addr, int ai_family,
+ int if_index, gpointer user_data);
+
+typedef bool (*GWebInputFunc)(const guint8 **data, gsize *length,
gpointer user_data);
typedef void (*GWebDebugFunc)(const char *str, gpointer user_data);
gpointer user_data);
typedef void (*GWebDebugFunc)(const char *str, gpointer user_data);
@@
-52,27
+56,42
@@
void g_web_unref(GWeb *web);
void g_web_set_debug(GWeb *web, GWebDebugFunc func, gpointer user_data);
void g_web_set_debug(GWeb *web, GWebDebugFunc func, gpointer user_data);
-gboolean g_web_add_nameserver(GWeb *web, const char *address);
+bool g_web_supports_tls(void);
+
+bool g_web_set_proxy(GWeb *web, const char *proxy);
+
+bool g_web_set_address_family(GWeb *web, int family);
+
+bool g_web_add_nameserver(GWeb *web, const char *address);
-
gboolean
g_web_set_accept(GWeb *web, const char *format, ...)
+
bool
g_web_set_accept(GWeb *web, const char *format, ...)
__attribute__((format(printf, 2, 3)));
__attribute__((format(printf, 2, 3)));
-
gboolean
g_web_set_user_agent(GWeb *web, const char *format, ...)
+
bool
g_web_set_user_agent(GWeb *web, const char *format, ...)
__attribute__((format(printf, 2, 3)));
__attribute__((format(printf, 2, 3)));
+bool g_web_set_ua_profile(GWeb *web, const char *profile);
-void g_web_set_close_connection(GWeb *web, gboolean enabled);
-gboolean g_web_get_close_connection(GWeb *web);
+bool g_web_set_http_version(GWeb *web, const char *version);
+
+void g_web_set_close_connection(GWeb *web, bool enabled);
+bool g_web_get_close_connection(GWeb *web);
guint g_web_request_get(GWeb *web, const char *url,
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);
guint g_web_request_post(GWeb *web, const char *url,
const char *type, GWebInputFunc input,
GWebResultFunc func, gpointer user_data);
+guint g_web_request_post_file(GWeb *web, const char *url,
+ const char *type, const char *file,
+ GWebResultFunc func, gpointer user_data);
-
gboolean
g_web_cancel_request(GWeb *web, guint id);
+
bool
g_web_cancel_request(GWeb *web, guint id);
guint16 g_web_result_get_status(GWebResult *result);
guint16 g_web_result_get_status(GWebResult *result);
-gboolean g_web_result_get_chunk(GWebResult *result,
+bool g_web_result_get_header(GWebResult *result,
+ const char *header, const char **value);
+bool g_web_result_get_chunk(GWebResult *result,
const guint8 **chunk, gsize *length);
typedef void (*GWebParserFunc)(const char *str, gpointer user_data);
const guint8 **chunk, gsize *length);
typedef void (*GWebParserFunc)(const char *str, gpointer user_data);