replaced libart with new polygon code
[swftools.git] / lib / os.h
1 /* os.h
2
3 header file for operating system dependent functions
4
5 Part of the swftools package. 
6
7 Copyright (c) 2005 Matthias Kramm <kramm@quiss.org>
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
22
23
24 #ifndef __os_h__
25 #define __os_h__
26 #include "../config.h"
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 extern char path_seperator;
33
34 #ifdef WIN32
35 char* getRegistryEntry(char*path);
36 int setRegistryEntry(char*key,char*value);
37 #endif
38
39 typedef struct _memfile {
40     void*data;
41     int len;
42 } memfile_t;
43 memfile_t* memfile_open(const char*path);
44 void memfile_close(memfile_t*file);
45
46 char* getInstallationPath();
47 char* concatPaths(const char*base, const char*add);
48 char* stripFilename(const char*filename, const char*newext);
49
50 char* mktempname(char*buffer);
51
52 #ifdef __cplusplus
53 }
54 #endif
55
56 #endif