X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgproxyresolver.h;h=994da01cab80bffe770572955db1c9c64364caf0;hb=2a53b4d0e2c98a14aedf31e38f0ad1fb2e8fe26f;hp=7d8d27dea556292b2209da5dfe5e88ff2e465547;hpb=265526288958bfe576b02e4d3a2a5cf7d4ea60a5;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gproxyresolver.h b/gio/gproxyresolver.h index 7d8d27d..994da01 100644 --- a/gio/gproxyresolver.h +++ b/gio/gproxyresolver.h @@ -13,20 +13,18 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. + * Public License along with this library; if not, see . * * Author: Nicolas Dufresne */ +#ifndef __G_PROXY_RESOLVER_H__ +#define __G_PROXY_RESOLVER_H__ + #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) #error "Only can be included directly." #endif -#ifndef __G_PROXY_RESOLVER_H__ -#define __G_PROXY_RESOLVER_H__ - #include G_BEGIN_DECLS @@ -40,7 +38,7 @@ G_BEGIN_DECLS * G_PROXY_RESOLVER_EXTENSION_POINT_NAME: * * Extension point for proxy resolving functionality. - * See Extending GIO. + * See [Extending GIO][extending-gio]. */ #define G_PROXY_RESOLVER_EXTENSION_POINT_NAME "gio-proxy-resolver" @@ -68,19 +66,25 @@ struct _GProxyResolverInterface { GError **error); }; +GLIB_AVAILABLE_IN_ALL GType g_proxy_resolver_get_type (void) G_GNUC_CONST; +GLIB_AVAILABLE_IN_ALL GProxyResolver *g_proxy_resolver_get_default (void); +GLIB_AVAILABLE_IN_ALL gboolean g_proxy_resolver_is_supported (GProxyResolver *resolver); +GLIB_AVAILABLE_IN_ALL gchar **g_proxy_resolver_lookup (GProxyResolver *resolver, const gchar *uri, GCancellable *cancellable, GError **error); +GLIB_AVAILABLE_IN_ALL void g_proxy_resolver_lookup_async (GProxyResolver *resolver, const gchar *uri, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); +GLIB_AVAILABLE_IN_ALL gchar **g_proxy_resolver_lookup_finish (GProxyResolver *resolver, GAsyncResult *result, GError **error);