X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fos.h;h=7aadc2f80b6f45f2ebc55ebc1b8c5c7a6c7c3591;hb=c28a7d2e3e91db98028a3238daf5e15f1a2c6103;hp=8f33eb884dc12ffc68632f61d68263b21c7e8197;hpb=c158a5eb99cc6d8b0511bd51760456ba71314009;p=swftools.git diff --git a/lib/os.h b/lib/os.h index 8f33eb8..7aadc2f 100755 --- a/lib/os.h +++ b/lib/os.h @@ -34,9 +34,18 @@ 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); #ifdef __cplusplus }