1
0
Fork 0

DBG+PROJECT: updated capstone_wrapper + added _plugin_hash function

This commit is contained in:
mrexodia 2016-10-18 14:34:51 +02:00
parent e5c028864f
commit 0dc2cde143
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
3 changed files with 8 additions and 1 deletions

@ -1 +1 @@
Subproject commit c761e5eae9d0c8c5c77d332275193655feab5ca9
Subproject commit 56df3a7d8f3f3af50299b86c918d016a82c481a8

View File

@ -9,6 +9,7 @@
#include "console.h"
#include "debugger.h"
#include "threading.h"
#include "murmurhash.h"
///debugger plugin exports (wrappers)
PLUG_IMPEXP void _plugin_registercallback(int pluginHandle, CBTYPE cbType, CBPLUGIN cbPlugin)
@ -128,3 +129,8 @@ PLUG_IMPEXP bool _plugin_load(const char* pluginName)
{
return pluginload(pluginName);
}
duint _plugin_hash(void* data, size_t size)
{
return murmurhash(data, int(size));
}

View File

@ -252,6 +252,7 @@ PLUG_IMPEXP bool _plugin_registerexprfunction(int pluginHandle, const char* name
PLUG_IMPEXP bool _plugin_unregisterexprfunction(int pluginHandle, const char* name);
PLUG_IMPEXP bool _plugin_unload(const char* pluginName);
PLUG_IMPEXP bool _plugin_load(const char* pluginName);
PLUG_IMPEXP duint _plugin_hash(void* data, size_t size);
#ifdef __cplusplus
}