group_mod.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (C) 2001-2003 FhG Fokus
  3. *
  4. * This file is part of Kamailio, a free SIP server.
  5. *
  6. * Kamailio 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. * Kamailio is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. *
  20. */
  21. /**
  22. * \file
  23. * \brief Group membership module
  24. * \ingroup group
  25. * - Module: \ref group
  26. */
  27. #ifndef GROUP_MOD_H
  28. #define GROUP_MOD_H
  29. #include "../../lib/srdb1/db.h"
  30. #include "../../str.h"
  31. #include "../../parser/digest/digest.h" /* auth_body_t */
  32. #include "../../parser/msg_parser.h" /* struct sip_msg */
  33. /*
  34. * Module parameters variables
  35. */
  36. extern str table; /*!< 'group' table name */
  37. extern str user_column; /*!< 'user' column name in group table */
  38. extern str domain_column; /*!< 'domain' column name in group table */
  39. extern str group_column; /*!< "group' column name in group table */
  40. extern int use_domain; /*!< Use domain in is_user_in */
  41. extern str re_table;
  42. extern str re_exp_column;
  43. extern str re_gid_column;
  44. extern int multiple_gid;
  45. /* DB functions and handlers */
  46. extern db_func_t group_dbf;
  47. extern db1_con_t* group_dbh;
  48. #endif