|
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
|
2 /* |
|
3 * Copyright (C) 2004 Imendio AB |
|
4 * |
|
5 * This program is free software; you can redistribute it and/or |
|
6 * modify it under the terms of the GNU Lesser General Public License as |
|
7 * published by the Free Software Foundation; either version 2 of the |
|
8 * License, or (at your option) any later version. |
|
9 * |
|
10 * This program is distributed in the hope that it will be useful, |
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 * Lesser General Public License for more details. |
|
14 * |
|
15 * You should have received a copy of the GNU Lesser General Public |
|
16 * License along with this program; if not, write to the |
|
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
18 * Boston, MA 02111-1307, USA. |
|
19 */ |
|
20 #ifndef __LM_PROXY_H__ |
|
21 #define __LM_PROXY_H__ |
|
22 |
|
23 #if !defined (LM_INSIDE_LOUDMOUTH_H) && !defined (LM_COMPILATION) |
|
24 #error "Only <loudmouth/loudmouth.h> can be included directly, this file may disappear or change contents." |
|
25 #endif |
|
26 |
|
27 G_BEGIN_DECLS |
|
28 |
|
29 typedef struct _LmProxy LmProxy; |
|
30 |
|
31 typedef enum { |
|
32 LM_PROXY_TYPE_NONE = 0, |
|
33 LM_PROXY_TYPE_HTTP |
|
34 } LmProxyType; |
|
35 |
|
36 IMPORT_C LmProxy * lm_proxy_new (LmProxyType type); |
|
37 IMPORT_C LmProxy * lm_proxy_new_with_server (LmProxyType type, |
|
38 const gchar *server, |
|
39 guint port); |
|
40 |
|
41 IMPORT_C LmProxyType lm_proxy_get_type (LmProxy *proxy); |
|
42 IMPORT_C void lm_proxy_set_type (LmProxy *proxy, |
|
43 LmProxyType type); |
|
44 |
|
45 IMPORT_C const gchar * lm_proxy_get_server (LmProxy *proxy); |
|
46 IMPORT_C void lm_proxy_set_server (LmProxy *proxy, |
|
47 const gchar *server); |
|
48 |
|
49 IMPORT_C guint lm_proxy_get_port (LmProxy *proxy); |
|
50 IMPORT_C void lm_proxy_set_port (LmProxy *proxy, |
|
51 guint port); |
|
52 |
|
53 IMPORT_C const gchar * lm_proxy_get_username (LmProxy *proxy); |
|
54 IMPORT_C void lm_proxy_set_username (LmProxy *proxy, |
|
55 const gchar *username); |
|
56 |
|
57 IMPORT_C const gchar * lm_proxy_get_password (LmProxy *proxy); |
|
58 IMPORT_C void lm_proxy_set_password (LmProxy *proxy, |
|
59 const gchar *password); |
|
60 |
|
61 IMPORT_C LmProxy * lm_proxy_ref (LmProxy *proxy); |
|
62 IMPORT_C void lm_proxy_unref (LmProxy *proxy); |
|
63 |
|
64 G_END_DECLS |
|
65 #endif /* __LM_PROXY_H__ */ |
|
66 |