Browse Source

srdb1: removed trailing spaces

Daniel-Constantin Mierla 1 year ago
parent
commit
e710b67b0a

+ 3 - 3
src/lib/srdb1/db.c

@@ -1,7 +1,7 @@
 /*
  * 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
@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 20 - 20
src/lib/srdb1/db.h

@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
@@ -53,7 +53,7 @@
 
 /**
  * \brief Specify table name that will be used for subsequent operations.
- * 
+ *
  * The function db_use_table takes a table name and stores it db1_con_t structure.
  * All subsequent operations (insert, delete, update, query) are performed on
  * that table.
@@ -69,11 +69,11 @@ typedef int (*db_use_table_f)(db1_con_t *_h, const str *_t);
  * This function initializes the database API and opens a new database
  * connection. This function must be called after bind_dbmod but before any
  * other database API function is called.
- * 
+ *
  * The function takes one parameter, the parameter must contain the database
- * connection URL. The URL is of the form 
+ * connection URL. The URL is of the form
  * mysql://username:password\@host:port/database where:
- * 
+ *
  * username: Username to use when logging into database (optional).
  * password: password if it was set (optional)
  * host:     Hosname or IP address of the host where database server lives (mandatory)
@@ -93,11 +93,11 @@ typedef db1_con_t *(*db_init_f)(const str *_sqlurl);
  * This function initializes the database API and opens a new database
  * connection. This function must be called after bind_dbmod but before any
  * other database API function is called.
- * 
+ *
  * The function takes one parameter, the parameter must contain the database
- * connection URL. The URL is of the form 
+ * connection URL. The URL is of the form
  * mysql://username:password\@host:port/database where:
- * 
+ *
  * username: Username to use when logging into database (optional).
  * password: password if it was set (optional)
  * host:     Hosname or IP address of the host where database server lives (mandatory)
@@ -115,7 +115,7 @@ typedef db1_con_t *(*db_init2_f)(const str *_sqlurl, db_pooling_t _pooling);
 /**
  * \brief Close a database connection and free all memory used.
  *
- * The function closes previously open connection and frees all previously 
+ * The function closes previously open connection and frees all previously
  * allocated memory. The function db_close must be the very last function called.
  * \param _h db1_con_t structure representing the database connection
  */
@@ -225,11 +225,11 @@ typedef int (*db_free_result_f)(db1_con_t *_h, db1_res_t *_r);
 
 /**
  * \brief Insert a row into the specified table.
- * 
+ *
  * This function implements INSERT SQL directive, you can insert one or more
  * rows in a table using this function.
  * \param _h database connection handle
- * \param _k array of keys (column names) 
+ * \param _k array of keys (column names)
  * \param _v array of values for keys specified in _k parameter
  * \param _n number of keys-value pairs int _k and _v parameters
  * \return returns 0 if everything is OK, otherwise returns value < 0
@@ -246,7 +246,7 @@ typedef int (*db_insert_f)(const db1_con_t *_h, const db_key_t *_k,
  * If _k is NULL and _v is NULL and _n is zero, all rows are deleted, the
  * resulting table will be empty.
  * If _o is NULL, the equal operator "=" will be used for the comparison.
- * 
+ *
  * \param _h database connection handle
  * \param _k array of keys (column names) that will be matched
  * \param _o array of operators to be used with key-value pairs
@@ -303,7 +303,7 @@ typedef int (*db_replace_f)(const db1_con_t *handle, const db_key_t *keys,
  * \brief Retrieve the last inserted ID in a table.
  *
  * The function returns the value generated for an AUTO_INCREMENT column by the
- * previous INSERT or UPDATE  statement. Use this function after you have 
+ * previous INSERT or UPDATE  statement. Use this function after you have
  * performed an INSERT statement into a table that contains an AUTO_INCREMENT
  * field.
  * \param _h structure representing database connection
@@ -315,7 +315,7 @@ typedef int (*db_last_inserted_id_f)(const db1_con_t *_h);
 
 /**
  * \brief Insert a row into specified table, update on duplicate key.
- * 
+ *
  * The function implements the INSERT ON DUPLICATE KEY UPDATE SQL directive.
  * It is possible to insert a row and update if one already exists.
  * The old row will not deleted before the insertion of the new data.
@@ -369,7 +369,7 @@ typedef int (*db_insert_async_f)(const db1_con_t *_h, const db_key_t *_k,
 typedef int (*db_affected_rows_f)(const db1_con_t *_h);
 
 /**
- * \brief Start a single transaction that will consist of one or more queries. 
+ * \brief Start a single transaction that will consist of one or more queries.
  *
  * \param _h structure representing database connection
  * \return 0 if everything is OK, otherwise returns < 0
@@ -377,7 +377,7 @@ typedef int (*db_affected_rows_f)(const db1_con_t *_h);
 typedef int (*db_start_transaction_f)(db1_con_t *_h, db_locking_t _l);
 
 /**
- * \brief End a transaction. 
+ * \brief End a transaction.
  *
  * \param _h structure representing database connection
  * \return 0 if everything is OK, otherwise returns < 0
@@ -396,7 +396,7 @@ typedef int (*db_abort_transaction_f)(db1_con_t *_h);
 
 /**
  * \brief Database module callbacks
- * 
+ *
  * This structure holds function pointer to all database functions. Before this
  * structure can be used it must be initialized with bind_dbmod.
  * \see bind_dbmod
@@ -437,7 +437,7 @@ typedef struct db_func
  * \brief Bind database module functions
  *
  * This function is special, it's only purpose is to call find_export function in
- * the core and find the addresses of all other database related functions. The 
+ * the core and find the addresses of all other database related functions. The
  * db_func_t callback given as parameter is updated with the found addresses.
  *
  * This function must be called before any other database API call!
@@ -485,7 +485,7 @@ db1_con_t *db_do_init2(
 /**
  * \brief Helper for db_close function.
  *
- * This helper method does some work for the closing of a database 
+ * This helper method does some work for the closing of a database
  * connection. No function should be called after this
  * \param _h database connection handle
  * \param (*free_connection) Pointer to the db specific free_connection method

+ 3 - 3
src/lib/srdb1/db_cap.h

@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
@@ -75,7 +75,7 @@ typedef enum db_cap
 
 
 /*! \brief
- * All database capabilities except raw_query, replace, insert_update and 
+ * All database capabilities except raw_query, replace, insert_update and
  * last_inserted_id which should be checked separately when needed
  */
 #define DB_CAP_ALL \

+ 3 - 3
src/lib/srdb1/db_con.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2007-2008 1&1 Internet AG
  *
@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 4 - 4
src/lib/srdb1/db_id.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2005 iptel.org
  * Copyright (C) 2007-2008 1&1 Internet AG
  *
@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
@@ -87,7 +87,7 @@ static int dupl_string_name(char **dst, const char *begin, const char *end)
 
 
 /**
- * Parse a database URL of form 
+ * Parse a database URL of form
  * scheme://[username[:password]@]hostname[:port]/database
  *
  * \param id filled id struct

+ 4 - 4
src/lib/srdb1/db_id.h

@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright (C) 2001-2005 iptel.org
  * 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
@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 3 - 3
src/lib/srdb1/db_key.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2007-2008 1&1 Internet AG
  *
@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 2 - 2
src/lib/srdb1/db_locking.h

@@ -11,8 +11,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 3 - 3
src/lib/srdb1/db_op.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2007-2008 1&1 Internet AG
  *
@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 3 - 3
src/lib/srdb1/db_pool.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2005 iptel.org
  * Copyright (C) 2007-2008 1&1 Internet AG
  *
@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 4 - 4
src/lib/srdb1/db_pool.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2005 iptel.org
  * Copyright (C) 2007-2008 1&1 Internet AG
  *
@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
@@ -59,7 +59,7 @@ struct pool_con *pool_get(const struct db_id *id);
 
 /**
  * Insert a new connection into the pool.
- * \param con the inserted connection 
+ * \param con the inserted connection
  */
 void pool_insert(struct pool_con *con);
 

+ 2 - 2
src/lib/srdb1/db_pooling.h

@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 3 - 3
src/lib/srdb1/db_query.h

@@ -13,8 +13,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */
@@ -131,7 +131,7 @@ int db_do_raw_query(const db1_con_t *_h, const str *_s, db1_res_t **_r,
  * \param _h structure representing database connection
  * \param _k key names
  * \param _v values of the keys
- * \param _n number of key/value pairs 
+ * \param _n number of key/value pairs
  * \param (*val2str) function pointer to the db specific val conversion function
  * \param (*submit_query) function pointer to the db specific query submit function
  * \return zero on success, negative on errors

+ 3 - 3
src/lib/srdb1/db_res.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2007-2008 1&1 Internet AG
  *
@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 3 - 3
src/lib/srdb1/db_res.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2007-2008 1&1 Internet AG
  *
@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 3 - 3
src/lib/srdb1/db_row.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2007-2008 1&1 Internet AG
  *
@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 3 - 3
src/lib/srdb1/db_row.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2007-2008 1&1 Internet AG
  *
@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 2 - 2
src/lib/srdb1/db_val.c

@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 3 - 3
src/lib/srdb1/db_val.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2007-2008 1&1 Internet AG
  *
@@ -14,8 +14,8 @@
  * 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 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */