perlfunc.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * $Id$
  3. *
  4. * Perl module for Kamailio
  5. *
  6. * Copyright (C) 2006 Collax GmbH
  7. * (Bastian Friedrich <[email protected]>)
  8. *
  9. * This file is part of Kamailio, a free SIP server.
  10. *
  11. * Kamailio is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version
  15. *
  16. * Kamailio is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  24. *
  25. */
  26. #ifndef PERL_FUNC_H
  27. #define PERL_FUNC_H
  28. #include "../../parser/msg_parser.h"
  29. /*
  30. * Run a perl function without a sip message parameter.
  31. */
  32. int perl_exec_simple1(struct sip_msg* _msg, char* fnc, char* str2);
  33. int perl_exec_simple2(struct sip_msg* _msg, char* fnc, char* str2);
  34. /*
  35. * Run function with a reference to the current SIP message.
  36. * An optional string may be passed to perl_exec_string.
  37. */
  38. int perl_exec1(struct sip_msg* _msg, char* fnc, char *foobar);
  39. int perl_exec2(struct sip_msg* _msg, char* fnc, char* mystr);
  40. int app_perl_reset_interpreter(void);
  41. #endif /* PERL_FUNC_H */