1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * soup-proxy-resolver.c: HTTP proxy resolver interface
5 * Copyright (C) 2008 Red Hat, Inc.
12 #include "soup-proxy-resolver.h"
15 static void soup_proxy_resolver_default_init (SoupProxyResolverInterface *iface);
17 G_DEFINE_INTERFACE_WITH_CODE (SoupProxyResolver, soup_proxy_resolver, G_TYPE_OBJECT,
18 g_type_interface_add_prerequisite (g_define_type_id, SOUP_TYPE_SESSION_FEATURE);
22 soup_proxy_resolver_default_init (SoupProxyResolverInterface *iface)
27 soup_proxy_resolver_get_proxy_async (SoupProxyResolver *proxy_resolver,
29 GMainContext *async_context,
30 GCancellable *cancellable,
31 SoupProxyResolverCallback callback,
34 #ifdef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
35 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
37 SOUP_PROXY_RESOLVER_GET_CLASS (proxy_resolver)->
38 get_proxy_async (proxy_resolver, msg,
39 async_context, cancellable,
41 #ifdef G_GNUC_END_IGNORE_DEPRECATIONS
42 G_GNUC_END_IGNORE_DEPRECATIONS
47 soup_proxy_resolver_get_proxy_sync (SoupProxyResolver *proxy_resolver,
49 GCancellable *cancellable,
52 #ifdef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
53 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
55 return SOUP_PROXY_RESOLVER_GET_CLASS (proxy_resolver)->
56 get_proxy_sync (proxy_resolver, msg, cancellable, addr);
57 #ifdef G_GNUC_END_IGNORE_DEPRECATIONS
58 G_GNUC_END_IGNORE_DEPRECATIONS