java_sig_parser.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2013 Konstantin Mosesov
  3. *
  4. * This file is part of Kamailio, a free SIP server.
  5. *
  6. * This file is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version
  10. *
  11. *
  12. * This file is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  20. *
  21. */
  22. #ifndef __JAVA_SIG_PARSER_H__
  23. #define __JAVA_SIG_PARSER_H__
  24. #include "../../str.h"
  25. #include "../../sr_module.h"
  26. #include <jni.h>
  27. #define JAVA_INV_SUPP_TYPE_OBJECTS
  28. #define JAVA_INV_SUPP_TYPE_BOOLEAN
  29. #define JAVA_INV_SUPP_TYPE_BYTE
  30. #define JAVA_INV_SUPP_TYPE_CHARACTER
  31. #define JAVA_INV_SUPP_TYPE_DOUBLE
  32. #define JAVA_INV_SUPP_TYPE_FLOAT
  33. #define JAVA_INV_SUPP_TYPE_INTEGER
  34. #define JAVA_INV_SUPP_TYPE_LONG
  35. #define JAVA_INV_SUPP_TYPE_SHORT
  36. #define JAVA_INV_SUPP_TYPE_STRING
  37. #define JAVA_INV_SUPP_TYPE_VOID
  38. int is_sig_allowed(char *);
  39. jvalue *get_value_by_sig_type(char *, char *);
  40. #endif