5 * Copyright (C) 2007-2010 Intel Corporation. All rights reserved.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #ifndef __CONNMAN_PROXY_H
23 #define __CONNMAN_PROXY_H
25 #include <connman/service.h>
33 * @title: Proxy premitives
34 * @short_description: Functions for handling proxy configuration
37 typedef void (*connman_proxy_lookup_cb) (const char *proxy, void *user_data);
39 unsigned int connman_proxy_lookup(const char *interface, const char *url,
40 connman_proxy_lookup_cb cb, void *user_data);
41 void connman_proxy_lookup_cancel(unsigned int token);
43 void connman_proxy_driver_lookup_notify(struct connman_service *service,
44 const char *url, const char *result);
46 #define CONNMAN_PROXY_PRIORITY_LOW -100
47 #define CONNMAN_PROXY_PRIORITY_DEFAULT 0
48 #define CONNMAN_PROXY_PRIORITY_HIGH 100
50 struct connman_proxy_driver {
53 int (*request_lookup) (struct connman_service *service,
55 void (*cancel_lookup) (struct connman_service *service,
59 int connman_proxy_driver_register(struct connman_proxy_driver *driver);
60 void connman_proxy_driver_unregister(struct connman_proxy_driver *driver);
66 #endif /* __CONNMAN_PROXY_H */