1 /*
2  * MySQL module row related functions
3  *
4  * Copyright (C) 2001-2003 FhG Fokus
5  * Copyright (C) 2008 1&1 Internet AG
6  *
7  * This file is part of Kamailio, a free SIP server.
8  *
9  * Kamailio is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version
13  *
14  * Kamailio is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22  */
23 
24 /*! \file
25  *  \brief DB_MYSQL :: Row related functions
26  *  \ref row.c
27  *  \ingroup db_mysql
28  *  Module: \ref db_mysql
29  */
30 
31 
32 #ifndef KM_ROW_H
33 #define KM_ROW_H
34 
35 #include "../../lib/srdb1/db_con.h"
36 #include "../../lib/srdb1/db_res.h"
37 #include "../../lib/srdb1/db_row.h"
38 
39 
40 /*!
41  * \brief Convert a row from result into DB API representation
42  * \param _h database connection
43  * \param _res database result in the DB API representation
44  * \param _r database result row
45  * \return 0 on success, -1 on failure
46  */
47 int db_mysql_convert_row(const db1_con_t* _h, db1_res_t* _res, db_row_t* _r);
48 
49 #endif
50