mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
54 lines
1.0 KiB
C
54 lines
1.0 KiB
C
/* $OpenLDAP$ */
|
|
#ifndef PERL_BACK_H
|
|
#define PERL_BACK_H 1
|
|
|
|
LDAP_BEGIN_DECL
|
|
|
|
/*
|
|
* From Apache mod_perl: test for Perl version.[ja
|
|
*/
|
|
#ifdef pTHX_
|
|
#define PERL_IS_5_6
|
|
#endif
|
|
|
|
#define EVAL_BUF_SIZE 500
|
|
|
|
#ifdef pTHX_
|
|
#define PERL_IS_5_6
|
|
#endif
|
|
|
|
extern ldap_pvt_thread_mutex_t perl_interpreter_mutex;
|
|
|
|
#ifdef HAVE_WIN32_ASPERL
|
|
/* We should be using the PL_errgv, I think */
|
|
/* All the old style variables are prefixed with PL_ now */
|
|
# define errgv PL_errgv
|
|
# define na PL_na
|
|
#endif
|
|
|
|
#ifdef HAVE_WIN32_ASPERL
|
|
/* pTHX is needed often now */
|
|
# define PERL_INTERPRETER my_perl
|
|
# define PERL_BACK_XS_INIT_PARAMS pTHX
|
|
# define PERL_BACK_BOOT_DYNALOADER_PARAMS pTHX, CV *cv
|
|
#else
|
|
# define PERL_INTERPRETER perl_interpreter
|
|
# define PERL_BACK_XS_INIT_PARAMS void
|
|
# define PERL_BACK_BOOT_DYNALOADER_PARAMS CV *cv
|
|
#endif
|
|
|
|
extern PerlInterpreter *PERL_INTERPRETER;
|
|
|
|
|
|
typedef struct perl_backend_instance {
|
|
char *pb_module_name;
|
|
SV *pb_obj_ref;
|
|
int pb_filter_search_results;
|
|
} PerlBackend;
|
|
|
|
LDAP_END_DECL
|
|
|
|
#include "external.h"
|
|
|
|
#endif
|