app_perl_mod.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_MOD_H
  27. #define PERL_MOD_H
  28. #include "../../modules/sl/sl.h"
  29. /* lock_ops.h defines union semun, perl does not need to redefine it */
  30. #ifdef USE_SYSV_SEM
  31. # define HAS_UNION_SEMUN
  32. #endif
  33. #include <EXTERN.h>
  34. #include <perl.h>
  35. extern char *filename;
  36. extern char *modpath;
  37. extern PerlInterpreter *my_perl;
  38. extern sl_api_t slb;
  39. #define PERLCLASS_MESSAGE "Kamailio::Message"
  40. #define PERLCLASS_URI "Kamailio::URI"
  41. #endif /* PERL_MOD_H */