summaryrefslogtreecommitdiff
path: root/src/htswrap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/htswrap.h')
-rw-r--r--src/htswrap.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/htswrap.h b/src/htswrap.h
index f97157a..7de1f5c 100644
--- a/src/htswrap.h
+++ b/src/htswrap.h
@@ -38,14 +38,24 @@ Please visit our Website: http://www.httrack.com
#ifndef HTSWRAP_DEFH
#define HTSWRAP_DEFH
-#include "htsglobal.h"
-
/* Library internal definictions */
#ifdef HTS_INTERNAL_BYTECODE
-HTSEXT_API int htswrap_init(void);
-HTSEXT_API int htswrap_add(char* name,void* fct);
-HTSEXT_API int htswrap_free(void);
-HTSEXT_API unsigned long int htswrap_read(char* name);
+
+#include "htsglobal.h"
+#include "htsinthash.h"
+
+/* Forward definitions */
+#ifndef HTS_DEF_FWSTRUCT_httrackp
+#define HTS_DEF_FWSTRUCT_httrackp
+typedef struct httrackp httrackp;
+#endif
+
+HTSEXT_API int htswrap_init(void); // LEGACY
+HTSEXT_API int htswrap_free(void); // LEGACY
+
+HTSEXT_API int htswrap_add(httrackp *opt, const char* name, void* fct);
+HTSEXT_API uintptr_t htswrap_read(httrackp *opt, const char* name);
+
#endif
#endif