comparison libgaim/win32/win32dep.h @ 14224:ab8a105eff62

[gaim-migrate @ 16905] First step of getting wingaim working again. libgaim and gtk are compiling. The protocols aren't compiling yet. There are a number of things that are compiling, but should be cleaned up. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 20 Aug 2006 16:49:37 +0000
parents
children 7635195195c0
comparison
equal deleted inserted replaced
14223:7c560c01b8f9 14224:ab8a105eff62
1 /*
2 * gaim
3 *
4 * File: win32dep.h
5 *
6 * Copyright (C) 2002-2003, Herman Bloggs <hermanator12002@yahoo.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 *
22 */
23 #ifndef _WIN32DEP_H_
24 #define _WIN32DEP_H_
25 #include <shlobj.h>
26 #include <winsock2.h>
27 #include <process.h>
28 #include "wgaimerror.h"
29 #include "libc_interface.h"
30
31 /*
32 * PROTOS
33 */
34
35 /**
36 ** win32dep.c
37 **/
38 /* Windows helper functions */
39 FARPROC wgaim_find_and_loadproc(char*, char*);
40 gboolean wgaim_read_reg_string(HKEY key, char* sub_key, char* val_name, LPBYTE data, LPDWORD data_len);
41 char* wgaim_escape_dirsep(char*);
42
43 /* Determine Gaim paths */
44 char* wgaim_get_special_folder(int folder_type); /* needs to be g_free'd */
45 char* wgaim_install_dir(void);
46 char* wgaim_lib_dir(void);
47 char* wgaim_locale_dir(void);
48 char* wgaim_data_dir(void);
49
50 /* init / cleanup */
51 void wgaim_init(void);
52 void wgaim_cleanup(void);
53
54
55 /*
56 * MACROS
57 */
58
59 /*
60 * Gaim specific
61 */
62 #define DATADIR wgaim_install_dir()
63 #define LIBDIR wgaim_lib_dir()
64 #define LOCALEDIR wgaim_locale_dir()
65
66 #endif /* _WIN32DEP_H_ */
67