Selaa lähdekoodia

lib/srdb1 : put pooling constans into separate header file to reduce
include dependancy

Anca Vamanu 13 vuotta sitten
vanhempi
commit
f3ff581dbd
3 muutettua tiedostoa jossa 43 lisäystä ja 7 poistoa
  1. 1 6
      lib/srdb1/db.h
  2. 1 1
      lib/srdb1/db_id.h
  3. 41 0
      lib/srdb1/db_pooling.h

+ 1 - 6
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.

+ 1 - 1
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 {

+ 41 - 0
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 */