diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-12-23 11:04:13 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-12-23 11:04:13 +0000 |
commit | a35ea9616410d7c7dc8320aadca215442d51554a (patch) | |
tree | 1dc4838440358e33446871108a5f9539db3a122b /mediaplugin/src/mediaplugins/include/core/plugin_core.h | |
parent | 513b9fc615de45378ec2f9403106767204ae3a45 (diff) | |
download | usdx-a35ea9616410d7c7dc8320aadca215442d51554a.tar.gz usdx-a35ea9616410d7c7dc8320aadca215442d51554a.tar.xz usdx-a35ea9616410d7c7dc8320aadca215442d51554a.zip |
Path class implemented for full unicode support
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2770 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | mediaplugin/src/mediaplugins/include/core/plugin_core.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mediaplugin/src/mediaplugins/include/core/plugin_core.h b/mediaplugin/src/mediaplugins/include/core/plugin_core.h index 69cc7f19..0979b992 100644 --- a/mediaplugin/src/mediaplugins/include/core/plugin_core.h +++ b/mediaplugin/src/mediaplugins/include/core/plugin_core.h @@ -111,6 +111,9 @@ typedef struct{} thread_t; typedef struct pluginCore_t { int version; + void* PLUGIN_CALL (*memAlloc)(int size); + void PLUGIN_CALL (*memFree)(void* ptr); + void PLUGIN_CALL (*log)(int level, const char *msg, const char *context); uint32_t PLUGIN_CALL (*ticksMillis)(); @@ -121,6 +124,14 @@ typedef struct pluginCore_t { int64_t PLUGIN_CALL (*fileSeek)(fileStream_t *stream, int64_t pos, int whence); int64_t PLUGIN_CALL (*fileSize)(fileStream_t *stream); + // Note: result string must be freed with memFree() + const char* PLUGIN_CALL (*pathToNative)(const char *path); + // Note: result string must be freed with memFree() + const char* PLUGIN_CALL (*pathToUTF8)(const char *path, BOOL useNativeDelim); + // Note: result string must be freed with memFree() + wchar_t* PLUGIN_CALL (*pathToWide)(const char *path, BOOL useNativeDelim); + BOOL PLUGIN_CALL (*pathIsFile)(const char *path); + thread_t* PLUGIN_CALL (*threadCreate)(int (PLUGIN_CALL *fn)(void *), void *data); uint32_t PLUGIN_CALL (*threadCurrentID)(); uint32_t PLUGIN_CALL (*threadGetID)(thread_t *thread); |