Sun, 20 May 2007 06:19:49 +0000
merge of 'b98e72d4089afb8a1879e5fe9627cfb132ee88de'
and 'b2836a24d81e7a1bd1d21b3aea8794b094391344'
| 3630 | 1 | /* |
|
5913
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
2 | * gaim |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
3 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
4 | * File: win32dep.h |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
5 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
6 | * Copyright (C) 2002-2003, Herman Bloggs <hermanator12002@yahoo.com> |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
7 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
8 | * This program is free software; you can redistribute it and/or modify |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
9 | * it under the terms of the GNU General Public License as published by |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
10 | * the Free Software Foundation; either version 2 of the License, or |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
11 | * (at your option) any later version. |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
12 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
13 | * This program is distributed in the hope that it will be useful, |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
16 | * GNU General Public License for more details. |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
17 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
18 | * You should have received a copy of the GNU General Public License |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
19 | * along with this program; if not, write to the Free Software |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
21 | * |
| 3630 | 22 | */ |
| 23 | #ifndef _WIN32DEP_H_ | |
| 24 | #define _WIN32DEP_H_ | |
|
10673
3177232170c7
[gaim-migrate @ 12213]
Richard Laager <rlaager@pidgin.im>
parents:
10240
diff
changeset
|
25 | #include <shlobj.h> |
|
8244
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7523
diff
changeset
|
26 | #include <winsock2.h> |
|
5084
21d2e7ec99ce
[gaim-migrate @ 5439]
Herman Bloggs <herman@bluedigits.com>
parents:
5008
diff
changeset
|
27 | #include <process.h> |
|
4132
01b236a90e54
[gaim-migrate @ 4350]
Herman Bloggs <herman@bluedigits.com>
parents:
4097
diff
changeset
|
28 | #include "wgaimerror.h" |
|
3778
7d3d0c93cb2d
[gaim-migrate @ 3918]
Herman Bloggs <herman@bluedigits.com>
parents:
3712
diff
changeset
|
29 | #include "libc_interface.h" |
| 3630 | 30 | |
|
3712
d926a65b5f89
[gaim-migrate @ 3845]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
31 | /* |
|
d926a65b5f89
[gaim-migrate @ 3845]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
32 | * PROTOS |
|
d926a65b5f89
[gaim-migrate @ 3845]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
33 | */ |
|
d926a65b5f89
[gaim-migrate @ 3845]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
34 | |
|
3950
0cab330f1cd6
[gaim-migrate @ 4129]
Herman Bloggs <herman@bluedigits.com>
parents:
3907
diff
changeset
|
35 | /** |
|
0cab330f1cd6
[gaim-migrate @ 4129]
Herman Bloggs <herman@bluedigits.com>
parents:
3907
diff
changeset
|
36 | ** win32dep.c |
|
0cab330f1cd6
[gaim-migrate @ 4129]
Herman Bloggs <herman@bluedigits.com>
parents:
3907
diff
changeset
|
37 | **/ |
|
5084
21d2e7ec99ce
[gaim-migrate @ 5439]
Herman Bloggs <herman@bluedigits.com>
parents:
5008
diff
changeset
|
38 | /* Windows helper functions */ |
|
14334
aec64dbd9564
[gaim-migrate @ 16957]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
39 | FARPROC wgaim_find_and_loadproc(const char *dllname, const char *procedure); |
|
aec64dbd9564
[gaim-migrate @ 16957]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
40 | char *wgaim_read_reg_string(HKEY rootkey, const char *subkey, const char *valname); /* needs to be g_free'd */ |
|
aec64dbd9564
[gaim-migrate @ 16957]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
41 | gboolean wgaim_write_reg_string(HKEY rootkey, const char *subkey, const char *valname, const char *value); |
|
aec64dbd9564
[gaim-migrate @ 16957]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
42 | char *wgaim_escape_dirsep(const char *filename); /* needs to be g_free'd */ |
|
14792
02a5df4343f7
[gaim-migrate @ 17486]
Daniel Atallah <datallah@pidgin.im>
parents:
14334
diff
changeset
|
43 | GIOChannel *wgaim_g_io_channel_win32_new_socket(int socket); /* Until we get the post-2.8 glib win32 giochannel implementation working, use the thread-based one */ |
|
15032
65a111aba7a8
[gaim-migrate @ 17749]
Daniel Atallah <datallah@pidgin.im>
parents:
14792
diff
changeset
|
44 | /** Check for changes to the system proxy settings and update the HTTP_PROXY env. var. if there have been changes */ |
|
65a111aba7a8
[gaim-migrate @ 17749]
Daniel Atallah <datallah@pidgin.im>
parents:
14792
diff
changeset
|
45 | gboolean wgaim_check_for_proxy_changes(void); |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11709
diff
changeset
|
46 | |
|
3950
0cab330f1cd6
[gaim-migrate @ 4129]
Herman Bloggs <herman@bluedigits.com>
parents:
3907
diff
changeset
|
47 | /* Determine Gaim paths */ |
|
14334
aec64dbd9564
[gaim-migrate @ 16957]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
48 | char *wgaim_get_special_folder(int folder_type); /* needs to be g_free'd */ |
|
aec64dbd9564
[gaim-migrate @ 16957]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
49 | const char *wgaim_install_dir(void); |
|
aec64dbd9564
[gaim-migrate @ 16957]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
50 | const char *wgaim_lib_dir(void); |
|
aec64dbd9564
[gaim-migrate @ 16957]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
51 | const char *wgaim_locale_dir(void); |
|
aec64dbd9564
[gaim-migrate @ 16957]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
52 | const char *wgaim_data_dir(void); |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11709
diff
changeset
|
53 | |
|
3950
0cab330f1cd6
[gaim-migrate @ 4129]
Herman Bloggs <herman@bluedigits.com>
parents:
3907
diff
changeset
|
54 | /* init / cleanup */ |
|
14334
aec64dbd9564
[gaim-migrate @ 16957]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
55 | void wgaim_init(void); |
|
aec64dbd9564
[gaim-migrate @ 16957]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
56 | void wgaim_cleanup(void); |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11709
diff
changeset
|
57 | |
| 3630 | 58 | |
|
3712
d926a65b5f89
[gaim-migrate @ 3845]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
59 | /* |
|
d926a65b5f89
[gaim-migrate @ 3845]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
60 | * MACROS |
|
d926a65b5f89
[gaim-migrate @ 3845]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
61 | */ |
|
d926a65b5f89
[gaim-migrate @ 3845]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
62 | |
|
d926a65b5f89
[gaim-migrate @ 3845]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
63 | /* |
|
d926a65b5f89
[gaim-migrate @ 3845]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
64 | * Gaim specific |
|
d926a65b5f89
[gaim-migrate @ 3845]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
65 | */ |
| 3630 | 66 | #define DATADIR wgaim_install_dir() |
|
3712
d926a65b5f89
[gaim-migrate @ 3845]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
67 | #define LIBDIR wgaim_lib_dir() |
|
d926a65b5f89
[gaim-migrate @ 3845]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
68 | #define LOCALEDIR wgaim_locale_dir() |
| 3630 | 69 | |
| 70 | #endif /* _WIN32DEP_H_ */ | |
| 71 |