X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fos.h;h=42d4884228cb1773f2448414d708cf662f91d80a;hp=3dae4e693d5ad0c978179917612cae7994741317;hb=8589e0d1f5e47c05458033e750fd6182ca704fbe;hpb=267fbed207d24342f1117f83c944553c2360652b diff --git a/lib/os.h b/lib/os.h index 3dae4e6..42d4884 100755 --- a/lib/os.h +++ b/lib/os.h @@ -29,16 +29,27 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ extern "C" { #endif +extern char path_seperator; + #ifdef WIN32 char* getRegistryEntry(char*path); int setRegistryEntry(char*key,char*value); #endif +typedef struct _memfile { + void*data; + int len; +} memfile_t; +memfile_t* memfile_open(const char*path); +void memfile_close(memfile_t*file); + char* getInstallationPath(); -char* concatPaths(char*base, char*add); -char* stripFilename(char*filename, char*newext); +char* concatPaths(const char*base, const char*add); +char* stripFilename(const char*filename, const char*newext); + +char* mktempname(char*buffer, const char*ext); -char* mktempname(char*); +void move_file(const char*from, const char*to); #ifdef __cplusplus }