]> git.sur5r.net Git - openldap/blob - servers/slapd/slapi/plugin.h
Confusingly, make SLAPI_OPERATION_AUTHTYPE return a pointer to
[openldap] / servers / slapd / slapi / plugin.h
1 /*
2  * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5 /*
6  * (C) Copyright IBM Corp. 1997,2002
7  * Redistribution and use in source and binary forms are permitted
8  * provided that this notice is preserved and that due credit is 
9  * given to IBM Corporation. This software is provided ``as is'' 
10  * without express or implied warranty.
11  */
12
13 #ifndef _PLUGIN_H_ 
14 #define _PLUGIN_H_ 
15
16 Slapi_PBlock *newPlugin ( int type, const char *path, const char *initfunc,
17                 int argc, char *argv[] );
18 int insertPlugin(Backend *be, Slapi_PBlock *pPB);
19 int doPluginFNs(Backend *be, int funcType, Slapi_PBlock * pPB);
20 int getAllPluginFuncs(Backend *be, int functype, SLAPI_FUNC **ppFuncPtrs);
21 int newExtendedOp(Backend *pBE, ExtendedOp **opList, Slapi_PBlock *pPB);
22 int getPluginFunc(struct berval  *reqoid, SLAPI_FUNC *pFuncAddr );
23 int netscape_plugin(Backend *be, const char *fname, int lineno,
24                 int argc, char **argv );
25 int slapi_init(void);
26
27 #define SLAPI_PLUGIN_IS_POST_FN(x) ((x) >= SLAPI_PLUGIN_POST_BIND_FN && (x) <= SLAPI_PLUGIN_POST_RESULT_FN)
28
29 #endif /* _PLUGIN_H_ */
30