1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
/*
* easytag
*
* File: win32dep.h
*
* Copyright (C) 2002-2003, Herman Bloggs <hermanator12002@yahoo.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef _WIN32DEP_H_
#define _WIN32DEP_H_
#include <shlobj.h>
#include <winsock2.h>
#include <process.h>
#include <gtk/gtk.h>
#include <gdk/gdkevents.h>
#define lstat stat
#define mkdir(a,b) mkdir(a)
#define chown(a,b,c)
#define chmod(a,b)
/*
* PROTOS
*/
/**
** win32dep.c
**/
/* Windows helper functions */
FARPROC weasytag_find_and_loadproc(const char *dllname, const char *procedure);
char *weasytag_read_reg_string(HKEY rootkey, const char *subkey, const char *valname); /* needs to be g_free'd */
gboolean weasytag_write_reg_string(HKEY rootkey, const char *subkey, const char *valname, const char *value);
char *weasytag_escape_dirsep(const char *filename); /* needs to be g_free'd */
/* Determine EasyTAG paths */
char *weasytag_get_special_folder(int folder_type);
const char *weasytag_install_dir(void);
const char *weasytag_lib_dir(void);
const char *weasytag_locale_dir(void);
const char *weasytag_data_dir(void);
/* init / cleanup */
void weasytag_init(void);
void weasytag_cleanup(void);
/* Misc */
extern char *ET_Win32_Get_Audio_File_Player (void);
extern void ET_Win32_Path_Remove_Trailing_Slash (gchar *path);
extern void ET_Win32_Path_Remove_Trailing_Backslash (gchar *path);
extern void ET_Win32_Path_Replace_Backslashes (gchar *path);
extern void ET_Win32_Path_Replace_Slashes (gchar *path);
extern int mkstemp (char *template);
/*
* MACROS
*/
/*
* EasyTAG specific
*/
#define DATADIR weasytag_install_dir()
#define LIBDIR weasytag_lib_dir()
#define LOCALEDIR weasytag_locale_dir()
#endif /* _WIN32DEP_H_ */
|