Remove build warning
[platform/upstream/libsoup.git] / libsoup / soup-proxy-resolver.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * soup-proxy-resolver.c: HTTP proxy resolver interface
4  *
5  * Copyright (C) 2008 Red Hat, Inc.
6  */
7
8 #ifdef HAVE_CONFIG_H
9 #include <config.h>
10 #endif
11
12 #include "soup-proxy-resolver.h"
13 #include "soup.h"
14
15 static void soup_proxy_resolver_default_init (SoupProxyResolverInterface *iface);
16
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);
19                               )
20
21 static void
22 soup_proxy_resolver_default_init (SoupProxyResolverInterface *iface)
23 {
24 }
25
26 void
27 soup_proxy_resolver_get_proxy_async (SoupProxyResolver  *proxy_resolver,
28                                      SoupMessage        *msg,
29                                      GMainContext       *async_context,
30                                      GCancellable       *cancellable,
31                                      SoupProxyResolverCallback callback,
32                                      gpointer            user_data)
33 {
34 #ifdef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
35 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
36 #endif
37         SOUP_PROXY_RESOLVER_GET_CLASS (proxy_resolver)->
38                 get_proxy_async (proxy_resolver, msg,
39                                  async_context, cancellable,
40                                  callback, user_data);
41 #ifdef G_GNUC_END_IGNORE_DEPRECATIONS
42 G_GNUC_END_IGNORE_DEPRECATIONS
43 #endif
44 }
45
46 guint
47 soup_proxy_resolver_get_proxy_sync (SoupProxyResolver  *proxy_resolver,
48                                     SoupMessage        *msg,
49                                     GCancellable       *cancellable,
50                                     SoupAddress       **addr)
51 {
52 #ifdef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
53 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
54 #endif
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
59 #endif
60 }