Files
spine/sql.h
T
Ian Berry 814bce4ce5 buffer overflow cleanups (sprintf -> snprintf, strcpy -> strncpy)
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cactid_unix@1257 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-10-10 03:53:00 +00:00

34 lines
1.9 KiB
C

/*
+-------------------------------------------------------------------------+
| Copyright (C) 2003 Ian Berry |
| |
| This program 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. |
| |
| This program 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. |
+-------------------------------------------------------------------------+
| cactid: a backend data gatherer for cacti |
+-------------------------------------------------------------------------+
| This poller would not have been possible without: |
| - Rivo Nurges (rrd support, mysql poller cache, misc functions) |
| - RTG (core poller code, pthreads, snmp, autoconf examples) |
| - Brady Alleman/Doug Warner (threading ideas, implimentation details) |
+-------------------------------------------------------------------------+
| - raXnet - http://www.raxnet.net/ |
+-------------------------------------------------------------------------+
*/
#include "common.h"
#include "cactid.h"
#include <mysql.h>
int db_insert(MYSQL *mysql, char *query);
MYSQL_RES *db_query(MYSQL *mysql, char *query);
int db_connect(char *database, MYSQL *mysql);
void db_disconnect(MYSQL *mysql);