summaryrefslogtreecommitdiff
path: root/src/htswrap.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2012-03-19 12:59:03 +0000
committerXavier Roche <xroche@users.noreply.github.com>2012-03-19 12:59:03 +0000
commit660b569b0980fc8f71b03ed666dd02eec8388b4c (patch)
tree8ad02b5f0bebdd4cd1d2ba01005d6f3f71a0a7fb /src/htswrap.h
parent64cc4a88da8887ef1f7f4d90be0158d2cc76222d (diff)
httrack 3.41.2
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