mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
finished off infastructure of modperl stuff plus adjusted autoconf, makefile, etc
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@265 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+5
-10
@@ -121,34 +121,29 @@ XS(XS_AddZNCHook)
|
||||
{
|
||||
if ( g_ModPerl )
|
||||
g_ModPerl->AddZNCHook( (char *)SvPV(ST(0),PL_na) );
|
||||
|
||||
|
||||
PUTBACK;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
EXTERN_C void
|
||||
xs_init(pTHX)
|
||||
{
|
||||
char *file = __FILE__;
|
||||
newXS( "AddZNCHook", XS_AddZNCHook, file );
|
||||
}
|
||||
|
||||
|
||||
/////////// supporting functions from within module
|
||||
bool CModPerl::OnLoad( const CString & sArgs )
|
||||
{
|
||||
const char *pArgv[] =
|
||||
{
|
||||
"ZNCPerl",
|
||||
sArgs.c_str(),
|
||||
sArgs.c_str(),
|
||||
NULL
|
||||
};
|
||||
|
||||
perl_parse( m_pPerl, xs_init, 2, (char **)pArgv, (char **)NULL );
|
||||
perl_parse( m_pPerl, NULL, 2, (char **)pArgv, (char **)NULL );
|
||||
PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
|
||||
|
||||
newXS( "AddZNCHook", XS_AddZNCHook, (char *)__FILE__ );
|
||||
|
||||
ModPerlInit();
|
||||
return( true );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user