lib/srdb1 : put pooling constans into separate header file to reduce
authorAnca Vamanu <anca.vamanu@1and1.ro>
Fri, 13 Jul 2012 13:50:07 +0000 (16:50 +0300)
committerAnca Vamanu <anca.vamanu@1and1.ro>
Fri, 13 Jul 2012 13:51:30 +0000 (16:51 +0300)
include dependancy

lib/srdb1/db.h
lib/srdb1/db_id.h
lib/srdb1/db_pooling.h [new file with mode: 0644]

index 2cbcdf7..0844c05 100644 (file)
 #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.
index 13ffc85..6d5a93f 100644 (file)
@@ -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 (file)
index 0000000..30daa49
--- /dev/null
@@ -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 */