aboutsummaryrefslogtreecommitdiff
path: root/src/sql.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-08-19 13:30:35 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-08-19 13:30:35 +0000
commit32d5cff1b7c2266779b63fb97eb6b91cab34e7ad (patch)
treea6334d3ceff71716e9e1399fb376963782a5404b /src/sql.h
parent106472e9039e46a5468ed15f118a2cf7d74f6ec8 (diff)
downloadwydawca-32d5cff1b7c2266779b63fb97eb6b91cab34e7ad.tar.gz
wydawca-32d5cff1b7c2266779b63fb97eb6b91cab34e7ad.tar.bz2
New module: wydawca
git-svn-id: file:///svnroot/wydawca/trunk@279 6bb4bd81-ecc2-4fd4-a2d4-9571d19c0d33
Diffstat (limited to 'src/sql.h')
-rw-r--r--src/sql.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/sql.h b/src/sql.h
new file mode 100644
index 0000000..ef60ddc
--- /dev/null
+++ b/src/sql.h
@@ -0,0 +1,38 @@
1/* wydawca - FTP release synchronisation daemon
2 Copyright (C) 2007 Sergey Poznyakoff
3
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the
6 Free Software Foundation; either version 3 of the License, or (at your
7 option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License along
15 with this program. If not, see <http://www.gnu.org/licenses/>. */
16
17#include <mysql/mysql.h>
18
19struct sqlconn
20{
21 char *ident;
22 char *host;
23 char *socket;
24 short port;
25 char *database;
26 char *user;
27 char *password;
28 int init;
29 MYSQL mysql;
30};
31
32void sql_register_conn (struct sqlconn *);
33int sql_connection_exists_p (const char *);
34struct sqlconn *sql_find_connection (const char *ident);
35
36int sql_init_method (struct access_method *method);
37int sql_done_method (struct access_method *method);
38int sql_run_method (struct access_method *method, const char *cmd);

Return to:

Send suggestions and report system problems to the System administrator.