00001 /* 00002 * $Id: val.h 5322 2008-12-10 18:41:09Z henningw $ 00003 * 00004 * Copyright (C) 2001-2003 FhG Fokus 00005 * Copyright (C) 2008 1&1 Internet AG 00006 * 00007 * This file is part of Kamailio, a free SIP server. 00008 * 00009 * Kamailio is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version 00013 * 00014 * Kamailio is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 */ 00023 00024 /*! \file 00025 * \brief DB_MYSQL :: Data conversions 00026 * \ref val.c 00027 * \ingroup db_mysql 00028 * Module: \ref db_mysql 00029 */ 00030 00031 00032 #ifndef VAL_H 00033 #define VAL_H 00034 00035 #include <mysql/mysql.h> 00036 #include "../../db/db_val.h" 00037 #include "../../db/db.h" 00038 00039 00040 /*! 00041 * \brief Converting a value to a string 00042 * 00043 * Converting a value to a string, used when converting result from a query 00044 * \param _c database connection 00045 * \param _v source value 00046 * \param _s target string 00047 * \param _len target string length 00048 * \return 0 on success, negative on error 00049 */ 00050 int db_mysql_val2str(const db_con_t* _con, const db_val_t* _v, char* _s, int* _len); 00051 00052 #endif
1.5.6