diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 12:51:31 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 12:51:31 +0000 |
commit | 25adbdabb47499fe641c7bd9595024ff82667058 (patch) | |
tree | 4200bb5e746bc1c0606de615ec99f0a247d4d9ba /src/htswrap.c | |
parent | ad5b7acc19290ff91e0f42a0de448a26760fcf99 (diff) |
httrack 3.30.1
Diffstat (limited to 'src/htswrap.c')
-rw-r--r-- | src/htswrap.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/htswrap.c b/src/htswrap.c index 824af7e..28c4c71 100644 --- a/src/htswrap.c +++ b/src/htswrap.c @@ -37,30 +37,31 @@ Please visit our Website: http://www.httrack.com #include "htswrap.h" #include "htshash.h" +#include "htsinthash.h" // typedef long (__stdcall * XSHBFF_WndProc_type)(HWND ,UINT ,WPARAM ,LPARAM); inthash wrappers=NULL; -int htswrap_init(void) { +HTSEXT_API int htswrap_init(void) { if (!wrappers) wrappers=inthash_new(42); return inthash_created(wrappers); } -int htswrap_free(void) { +HTSEXT_API int htswrap_free(void) { inthash_delete(&wrappers); return 1; } -int htswrap_add(char* name,void* fct) { +HTSEXT_API int htswrap_add(char* name,void* fct) { if (!wrappers) htswrap_init(); inthash_write(wrappers,name,(unsigned long int)fct); return 1; } -unsigned long int htswrap_read(char* name) { +HTSEXT_API unsigned long int htswrap_read(char* name) { unsigned long int fct=0; if (!wrappers) htswrap_init(); |