/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1999-2003 The OpenLDAP Foundation.
+ * Copyright 1999-2011 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
#ifndef PERL_BACK_H
#define PERL_BACK_H 1
+#include <EXTERN.h>
+#include <perl.h>
+#undef _ /* #defined by both Perl and ac/localize.h */
+#include "asperl_undefs.h"
+
+#include "portable.h"
+
+#include "slap.h"
+
LDAP_BEGIN_DECL
/*
/* All the old style variables are prefixed with PL_ now */
# define errgv PL_errgv
# define na PL_na
+#else
+# define call_method(m, f) perl_call_method(m, f)
+# define eval_pv(m, f) perl_eval_pv(m, f)
+# define ERRSV GvSV(errgv)
#endif
-#ifdef HAVE_WIN32_ASPERL
+#if defined( HAVE_WIN32_ASPERL ) || defined( USE_ITHREADS )
/* pTHX is needed often now */
# define PERL_INTERPRETER my_perl
# define PERL_BACK_XS_INIT_PARAMS pTHX
typedef struct perl_backend_instance {
- char *pb_module_name;
+ char *pb_module_name;
+ BerVarray pb_module_path;
+ BerVarray pb_module_config;
SV *pb_obj_ref;
int pb_filter_search_results;
} PerlBackend;
LDAP_END_DECL
-#include "external.h"
+#include "proto-perl.h"
-#endif
+#endif /* PERL_BACK_H */