add arguments to plugin system
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define B3_API_ENTRY
|
||||
#define B3_API_CALL __stdcall
|
||||
#define B3_CALLBACK __stdcall
|
||||
#define B3_API_CALL __cdecl
|
||||
#define B3_CALLBACK __cdecl
|
||||
#else
|
||||
#define B3_API_ENTRY
|
||||
#define B3_API_CALL
|
||||
@@ -28,7 +28,7 @@ extern "C" {
|
||||
/* Plugin API */
|
||||
typedef B3_API_ENTRY int (B3_API_CALL * PFN_INIT)();
|
||||
typedef B3_API_ENTRY void (B3_API_CALL * PFN_EXIT)();
|
||||
typedef B3_API_ENTRY int (B3_API_CALL * PFN_EXECUTE)();
|
||||
typedef B3_API_ENTRY int (B3_API_CALL * PFN_EXECUTE)(const char* arguments);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -10,8 +10,9 @@ B3_SHARED_API int initPlugin()
|
||||
return SHARED_MEMORY_MAGIC_NUMBER;
|
||||
}
|
||||
|
||||
B3_SHARED_API int executePluginCommand()
|
||||
B3_SHARED_API int executePluginCommand(const char* arguments)
|
||||
{
|
||||
printf("arguments:%s\n",arguments);
|
||||
return 42;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ extern "C"
|
||||
|
||||
B3_SHARED_API int initPlugin();
|
||||
B3_SHARED_API void exitPlugin();
|
||||
B3_SHARED_API int executePluginCommand();
|
||||
B3_SHARED_API int executePluginCommand(const char* arguments);
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user