]> git.sur5r.net Git - openldap/commitdiff
Add internal bind/unbind/search/compare/abandon plugin types
authorLuke Howard <lukeh@openldap.org>
Sun, 11 Jun 2006 09:47:54 +0000 (09:47 +0000)
committerLuke Howard <lukeh@openldap.org>
Sun, 11 Jun 2006 09:47:54 +0000 (09:47 +0000)
include/slapi-plugin.h
servers/slapd/slapi/slapi_overlay.c

index 8a30465aef9fce601ec1a38ab85738391ae1d41b..a59e7a9d3f4515716ce2122b8ad9ddb2565f98da 100644 (file)
@@ -727,6 +727,20 @@ int slapi_x_backend_get_flags( const Slapi_Backend *be, unsigned long *flags );
 #define SLAPI_X_GROUP_OPERATION_DN             1252 /* asserted value */
 #define SLAPI_X_GROUP_TARGET_ENTRY             1253 /* target entry */
 
+/* internal preoperation extensions */
+#define SLAPI_PLUGIN_INTERNAL_PRE_BIND_FN      1260
+#define SLAPI_PLUGIN_INTERNAL_PRE_UNBIND_FN    1261
+#define SLAPI_PLUGIN_INTERNAL_PRE_SEARCH_FN    1262
+#define SLAPI_PLUGIN_INTERNAL_PRE_COMPARE_FN   1263
+#define SLAPI_PLUGIN_INTERNAL_PRE_ABANDON_FN   1264
+
+/* internal postoperation extensions */
+#define SLAPI_PLUGIN_INTERNAL_POST_BIND_FN     1270
+#define SLAPI_PLUGIN_INTERNAL_POST_UNBIND_FN   1271
+#define SLAPI_PLUGIN_INTERNAL_POST_SEARCH_FN   1272
+#define SLAPI_PLUGIN_INTERNAL_POST_COMPARE_FN  1273
+#define SLAPI_PLUGIN_INTERNAL_POST_ABANDON_FN  1274
+
 /* config stuff */
 #define SLAPI_CONFIG_FILENAME                  40
 #define SLAPI_CONFIG_LINENO                    41
index 12425f06c1067c83448ddf365822e1ec5af3cd56..25c5b0011410b4e0884b25c5f2a4e9c5b38dba97 100644 (file)
@@ -325,29 +325,29 @@ struct slapi_op_info {
        {
                SLAPI_PLUGIN_PRE_BIND_FN,
                SLAPI_PLUGIN_POST_BIND_FN,
-               0,
-               0,
+               SLAPI_PLUGIN_INTERNAL_PRE_BIND_FN,
+               SLAPI_PLUGIN_INTERNAL_POST_BIND_FN,
                slapi_op_bind_callback
        },
        {
                SLAPI_PLUGIN_PRE_UNBIND_FN,
                SLAPI_PLUGIN_POST_UNBIND_FN,
-               0,
-               0,
+               SLAPI_PLUGIN_INTERNAL_PRE_UNBIND_FN,
+               SLAPI_PLUGIN_INTERNAL_POST_UNBIND_FN,
                NULL
        },
        {
                SLAPI_PLUGIN_PRE_SEARCH_FN,
                SLAPI_PLUGIN_POST_SEARCH_FN,
-               0,
-               0,
+               SLAPI_PLUGIN_INTERNAL_PRE_SEARCH_FN,
+               SLAPI_PLUGIN_INTERNAL_POST_SEARCH_FN,
                slapi_op_search_callback
        },
        {
                SLAPI_PLUGIN_PRE_COMPARE_FN,
                SLAPI_PLUGIN_POST_COMPARE_FN,
-               0,
-               0,
+               SLAPI_PLUGIN_INTERNAL_PRE_COMPARE_FN,
+               SLAPI_PLUGIN_INTERNAL_POST_COMPARE_FN,
                NULL
        },
        {
@@ -381,8 +381,8 @@ struct slapi_op_info {
        {
                SLAPI_PLUGIN_PRE_ABANDON_FN,
                SLAPI_PLUGIN_POST_ABANDON_FN,
-               0,
-               0,
+               SLAPI_PLUGIN_INTERNAL_PRE_ABANDON_FN,
+               SLAPI_PLUGIN_INTERNAL_POST_ABANDON_FN,
                NULL
        },
        {