summaryrefslogtreecommitdiff
path: root/gweb/gresolv.h
diff options
context:
space:
mode:
authorZhang zhengguang <zhengguang.zhang@intel.com>2014-07-17 02:37:39 (GMT)
committerZhang zhengguang <zhengguang.zhang@intel.com>2014-07-17 02:37:39 (GMT)
commit1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7 (patch)
tree6e991827d28537f7f40f20786c2354fd04a9fdad /gweb/gresolv.h
parentfbe905ab58ecc31fe64c410c5f580cadc30e7f04 (diff)
downloadconnman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.zip
connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.gz
connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.bz2
Imported Upstream version 1.24upstream/1.24
Diffstat (limited to 'gweb/gresolv.h')
-rw-r--r--gweb/gresolv.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gweb/gresolv.h b/gweb/gresolv.h
index 3402df9..fac14f5 100644
--- a/gweb/gresolv.h
+++ b/gweb/gresolv.h
@@ -22,6 +22,7 @@
#ifndef __G_RESOLV_H
#define __G_RESOLV_H
+#include <stdbool.h>
#include <stdint.h>
#include <glib.h>
@@ -58,16 +59,16 @@ void g_resolv_unref(GResolv *resolv);
void g_resolv_set_debug(GResolv *resolv,
GResolvDebugFunc func, gpointer user_data);
-gboolean g_resolv_add_nameserver(GResolv *resolv, const char *address,
+bool g_resolv_add_nameserver(GResolv *resolv, const char *address,
uint16_t port, unsigned long flags);
void g_resolv_flush_nameservers(GResolv *resolv);
guint g_resolv_lookup_hostname(GResolv *resolv, const char *hostname,
GResolvResultFunc func, gpointer user_data);
-gboolean g_resolv_cancel_lookup(GResolv *resolv, guint id);
+bool g_resolv_cancel_lookup(GResolv *resolv, guint id);
-gboolean g_resolv_set_address_family(GResolv *resolv, int family);
+bool g_resolv_set_address_family(GResolv *resolv, int family);
#ifdef __cplusplus
}