global.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * $Id$
  3. *
  4. * Copyright (C) 2013 Konstantin Mosesov
  5. *
  6. * This file is part of Kamailio, a free SIP server.
  7. *
  8. * This file is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version
  12. *
  13. *
  14. * This file is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. */
  24. #ifndef __GLOBAL_H__
  25. #define __GLOBAL_H__
  26. #include "../../str.h"
  27. #include "../../sr_module.h"
  28. #include "../../action.h"
  29. #include "../../mem/mem.h"
  30. #include "../../sr_module.h"
  31. #include "../../dset.h"
  32. #include "../../parser/msg_parser.h"
  33. #include <jni.h>
  34. #define APP_NAME "app_java"
  35. JavaVM *jvm;
  36. JNIEnv *env;
  37. jclass KamailioClass;
  38. jclass KamailioClassRef;
  39. jclass KamailioClassInstanceRef;
  40. jobject KamailioClassInstance;
  41. jmethodID KamailioID;
  42. struct sip_msg *msg;
  43. #endif