[Forensics-changes] [yara] 95/368: Export hash-table features in YARA's API
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:15 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.5.0
in repository yara.
commit b20e6f24d06626b4031fc50afb8e66ef32651dad
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Fri Oct 23 13:33:37 2015 +0200
Export hash-table features in YARA's API
---
libyara/hash.c | 9 +++++----
libyara/include/yara.h | 1 +
libyara/include/yara/hash.h | 8 ++++----
3 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/libyara/hash.c b/libyara/hash.c
index 9609069..874e300 100644
--- a/libyara/hash.c
+++ b/libyara/hash.c
@@ -86,7 +86,7 @@ uint32_t hash(
}
-int yr_hash_table_create(
+YR_API int yr_hash_table_create(
int size,
YR_HASH_TABLE** table)
{
@@ -109,7 +109,7 @@ int yr_hash_table_create(
return ERROR_SUCCESS;
}
-void yr_hash_table_destroy(
+YR_API void yr_hash_table_destroy(
YR_HASH_TABLE* table,
YR_HASH_TABLE_FREE_VALUE_FUNC free_value)
{
@@ -146,7 +146,7 @@ void yr_hash_table_destroy(
}
-void* yr_hash_table_lookup(
+YR_API void* yr_hash_table_lookup(
YR_HASH_TABLE* table,
const char* key,
const char* ns)
@@ -178,7 +178,8 @@ void* yr_hash_table_lookup(
return NULL;
}
-int yr_hash_table_add(
+
+YR_API int yr_hash_table_add(
YR_HASH_TABLE* table,
const char* key,
const char* ns,
diff --git a/libyara/include/yara.h b/libyara/include/yara.h
index 03466e9..a3f506c 100644
--- a/libyara/include/yara.h
+++ b/libyara/include/yara.h
@@ -25,5 +25,6 @@ limitations under the License.
#include "yara/libyara.h"
#include "yara/error.h"
#include "yara/stream.h"
+#include "yara/hash.h"
#endif
diff --git a/libyara/include/yara/hash.h b/libyara/include/yara/hash.h
index 3731b58..afdf464 100644
--- a/libyara/include/yara/hash.h
+++ b/libyara/include/yara/hash.h
@@ -41,23 +41,23 @@ typedef struct _YR_HASH_TABLE
typedef int (*YR_HASH_TABLE_FREE_VALUE_FUNC)(void* value);
-int yr_hash_table_create(
+YR_API int yr_hash_table_create(
int size,
YR_HASH_TABLE** table);
-void yr_hash_table_destroy(
+YR_API void yr_hash_table_destroy(
YR_HASH_TABLE* table,
YR_HASH_TABLE_FREE_VALUE_FUNC free_value);
-void* yr_hash_table_lookup(
+YR_API void* yr_hash_table_lookup(
YR_HASH_TABLE* table,
const char* key,
const char* ns);
-int yr_hash_table_add(
+YR_API int yr_hash_table_add(
YR_HASH_TABLE* table,
const char* key,
const char* ns,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list