From 29030b54c98b0aee65fbc10ebf7ba36bed98c02c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 Aug 2013 18:02:44 +0200 Subject: util/Error: new error passing library Replaces GLib's GError. --- src/system/Resolver.hxx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/system/Resolver.hxx') diff --git a/src/system/Resolver.hxx b/src/system/Resolver.hxx index a1cd00329..38803dcd1 100644 --- a/src/system/Resolver.hxx +++ b/src/system/Resolver.hxx @@ -22,17 +22,13 @@ #include "gcc.h" -#include +#include struct sockaddr; struct addrinfo; +class Error; -gcc_const -static inline GQuark -resolver_quark(void) -{ - return g_quark_from_static_string("resolver"); -} +extern const class Domain resolver_domain; /** * Converts the specified socket address into a string in the form @@ -46,7 +42,7 @@ resolver_quark(void) */ gcc_malloc char * -sockaddr_to_string(const struct sockaddr *sa, size_t length, GError **error); +sockaddr_to_string(const struct sockaddr *sa, size_t length, Error &error); /** * Resolve a specification in the form "host", "host:port", @@ -61,6 +57,6 @@ sockaddr_to_string(const struct sockaddr *sa, size_t length, GError **error); struct addrinfo * resolve_host_port(const char *host_port, unsigned default_port, int flags, int socktype, - GError **error_r); + Error &error); #endif -- cgit v1.2.3