Changed record update API . It is now handled by function
[idzebra-moved-to-github.git] / include / idzebra / recctrl.h
index 4a8f384..ac5f448 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: recctrl.h,v 1.29 2006-08-22 13:39:25 adam Exp $
-   Copyright (C) 1995-2006
+/* $Id: recctrl.h,v 1.32 2007-03-14 11:48:31 adam Exp $
+   Copyright (C) 1995-2007
    Index Data ApS
 
 This file is part of the Zebra server.
@@ -85,6 +85,13 @@ struct ZebraRecStream {
     void      (*destroy)(struct ZebraRecStream *s);
 };
 
+enum zebra_recctrl_action_t {
+    action_insert = 1,
+    action_replace,
+    action_delete,
+    action_update  /* insert or replace as needed */
+};
+
 /** \brief record extract for indexing */
 struct recExtractCtrl {
     struct ZebraRecStream *stream;
@@ -147,6 +154,7 @@ struct recType
 #define RECCTRL_EXTRACT_EOF   1
 #define RECCTRL_EXTRACT_ERROR_GENERIC 2
 #define RECCTRL_EXTRACT_ERROR_NO_SUCH_FILTER 3
+#define RECCTRL_EXTRACT_SKIP  4
 
 typedef struct recTypeClass *RecTypeClass;
 typedef struct recTypes *RecTypes;