group_mod.h 1.7 KB

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