Mysql indexing pluging
[idzebra-moved-to-github.git] / index / indexplugin.h
diff --git a/index/indexplugin.h b/index/indexplugin.h
new file mode 100644 (file)
index 0000000..f3de2cb
--- /dev/null
@@ -0,0 +1,36 @@
+#ifndef INDEXPLUGINH
+#define INDEXPLUGINH
+
+#include "../index/index.h"
+#include <assert.h>
+
+
+typedef int (*indexList)(ZebraHandle zh, const char *driverArg, enum zebra_recctrl_action_t action);
+
+typedef struct 
+{
+       indexList idxList;
+} zebra_index_plugin_object;
+
+void addDriverFunction(indexList);
+void zebraIndexBuffer(ZebraHandle zh, char *data, int dataLength, enum zebra_recctrl_action_t action, char *name);
+
+#endif
+#ifndef INDEXPLUGINH
+#define INDEXPLUGINH
+
+#include "../index/index.h"
+#include <assert.h>
+
+
+typedef int (*indexList)(ZebraHandle zh, const char *driverArg, enum zebra_recctrl_action_t action);
+
+typedef struct 
+{
+       indexList idxList;
+} zebra_index_plugin_object;
+
+void addDriverFunction(indexList);
+void zebraIndexBuffer(ZebraHandle zh, char *data, int dataLength, enum zebra_recctrl_action_t action, char *name);
+
+#endif