00001 #ifndef __STM_PLUGIN_H__ 00002 #define __STM_PLUGIN_H__ 00003 00004 #define STM_TYPE_NONE 0 00005 #define STM_TYPE_LOADER 1 00006 #define STM_TYPE_SAVER 2 00007 #define STM_TYPE_PROCESS 3 00008 00009 #define STM_STRING_NAME 0 00010 #define STM_STRING_FILE_EXT 1 00011 00012 #define STM_PLUGIN_GET_TYPE_STRING "get_type_0_3_8" 00013 #define STM_PLUGIN_GET_STRING_STRING "get_string" 00014 #define STM_PLUGIN_GET_OBJECT_STRING "get_object" 00015 00016 #define STM_PLUGIN_GET_TYPE_FUNC get_type_0_3_8 00017 #define STM_PLUGIN_GET_STRING_FUNC get_string 00018 #define STM_PLUGIN_GET_OBJECT_FUNC get_object 00019 00020 #ifdef _BUILD_PLUGIN_ 00021 00022 00023 #ifdef __cplusplus 00024 extern "C" { 00025 #endif 00026 00027 #ifdef _WIN32 00028 00029 #ifdef BUILD_PLUGIN 00030 00031 00032 00033 #define PLUGIN_EXPORT __declspec(dllexport) 00034 #else 00035 #define PLUGIN_EXPORT __declspec(dllimport) 00036 #endif 00037 #else 00038 #define PLUGIN_EXPORT 00039 #endif 00040 00041 int 00042 PLUGIN_EXPORT STM_PLUGIN_GET_TYPE_FUNC(void); 00043 00044 char 00045 PLUGIN_EXPORT *STM_PLUGIN_GET_STRING_FUNC (int); 00046 00047 void 00048 PLUGIN_EXPORT *STM_PLUGIN_GET_OBJECT_FUNC (void); 00049 00050 00051 #ifdef __cplusplus 00052 } 00053 #endif 00054 00055 #endif // _BUILD_PLUGIN_ 00056 00057 #endif // __STM_PLUGIN_H__