Module: sip-router Branch: 3.3 Commit: 8ad086aa81bc6ca4fb762264ffcc5e53be819ec2 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8ad086aa...
Author: Anca Vamanu anca.vamanu@1and1.ro Committer: Anca Vamanu anca.vamanu@1and1.ro Date: Fri Jul 13 16:50:07 2012 +0300
lib/srdb1 : put pooling constans into separate header file to reduce include dependancy (cherry picked from commit f3ff581dbd0a53c4c5eafdf829bef0c25e8e8f28)
---
lib/srdb1/db.h | 7 +------ lib/srdb1/db_id.h | 2 +- lib/srdb1/db_pooling.h | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 7 deletions(-)
diff --git a/lib/srdb1/db.h b/lib/srdb1/db.h index 2cbcdf7..0844c05 100644 --- a/lib/srdb1/db.h +++ b/lib/srdb1/db.h @@ -50,12 +50,7 @@ #include "db_cap.h" #include "db_con.h" #include "db_row.h" - - -typedef enum { - DB_POOLING_PERMITTED, - DB_POOLING_NONE -} db_pooling_t; +#include "db_pooling.h"
/** * \brief Specify table name that will be used for subsequent operations. diff --git a/lib/srdb1/db_id.h b/lib/srdb1/db_id.h index 13ffc85..6d5a93f 100644 --- a/lib/srdb1/db_id.h +++ b/lib/srdb1/db_id.h @@ -31,7 +31,7 @@ #define _DB1_ID_H
#include "../../str.h" -#include "db.h" +#include "db_pooling.h"
/** Structure representing a database ID */ struct db_id { diff --git a/lib/srdb1/db_pooling.h b/lib/srdb1/db_pooling.h new file mode 100644 index 0000000..30daa49 --- /dev/null +++ b/lib/srdb1/db_pooling.h @@ -0,0 +1,41 @@ +/* + * $Id$ + * + * Copyright (C) 2001-2003 FhG Fokus + * Copyright (C) 2007-2008 1&1 Internet AG + * + * This file is part of Kamailio, a free SIP server. + * + * Kamailio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * Kamailio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/** + * \file lib/srdb1/db_pooling.h + * \ingroup db1 + * \brief Defines Pooling states + * + */ + +#ifndef DB1_POOLING_H +#define DB1_POOLING_H + + +typedef enum { + DB_POOLING_PERMITTED, + DB_POOLING_NONE +} db_pooling_t; + + +#endif /* DB1_POOLING_H */