3 * Copyright © 2001 Novell, Inc. All Rights Reserved.
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
11 * FILENAME : iperlhost.h
12 * DESCRIPTION : IPerlHost class file.
14 * Date Created : January 2001.
15 * Date Modified: July 2nd 2001.
20 #ifndef __iPerlHost_H__
21 #define __iPerlHost_H__
31 virtual int VersionNumber() = 0;
33 virtual int PerlCreate(PerlInterpreter *my_perl) = 0;
34 virtual int PerlParse(PerlInterpreter *my_perl,int argc, char** argv, char** env) = 0;
35 virtual int PerlRun(PerlInterpreter *my_perl) = 0;
36 virtual void PerlDestroy(PerlInterpreter *my_perl) = 0;
37 virtual void PerlFree(PerlInterpreter *my_perl) = 0;
39 //virtual bool RegisterWithThreadTable(void)=0;
40 //virtual bool UnregisterWithThreadTable(void)=0;
43 extern "C" IPerlHost* AllocStdPerl();
44 extern "C" void FreeStdPerl(IPerlHost* pPerlHost);
47 #endif // __iPerlHost_H__