diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-01-01 13:25:55 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-01-01 13:33:04 +0200 |
commit | 24e6dfa7cffceea0cac0f3cc349192788f040939 (patch) | |
tree | c2bd53e9bc58873c8187e6bd622ae152b35d1d51 /src/sql.h | |
parent | 2bdd70d698c63d32f25b4f1142e09f5eaef4812a (diff) | |
download | wydawca-24e6dfa7cffceea0cac0f3cc349192788f040939.tar.gz wydawca-24e6dfa7cffceea0cac0f3cc349192788f040939.tar.bz2 |
Update copyright years. Switch to a familiar style.
Diffstat (limited to 'src/sql.h')
-rw-r--r-- | src/sql.h | 55 |
1 files changed, 27 insertions, 28 deletions
@@ -1,5 +1,5 @@ /* wydawca - automatic release submission daemon - Copyright (C) 2009-2011 Sergey Poznyakoff + Copyright (C) 2009-2013 Sergey Poznyakoff 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 @@ -16,34 +16,33 @@ #include <mysql/mysql.h> -struct sqlconn -{ - char *ident; - char *config_file; - char *config_group; - char *host; - char *socket; - short port; - char *database; - char *user; - char *password; - char *cacert; - size_t initcount; /* Number of initializations */ - MYSQL mysql; - MYSQL_RES *result; +struct sqlconn { + char *ident; + char *config_file; + char *config_group; + char *host; + char *socket; + short port; + char *database; + char *user; + char *password; + char *cacert; + size_t initcount; /* Number of initializations */ + MYSQL mysql; + MYSQL_RES *result; }; -void sql_register_conn (struct sqlconn *); -int sql_connection_exists_p (const char *); -struct sqlconn *sql_find_connection (const char *ident); +void sql_register_conn(struct sqlconn *); +int sql_connection_exists_p(const char *); +struct sqlconn *sql_find_connection(const char *ident); -int sql_init_dictionary (struct dictionary *dict); -int sql_done_dictionary (struct dictionary *dict); -void *sql_open (struct dictionary *dict); +int sql_init_dictionary(struct dictionary *dict); +int sql_done_dictionary(struct dictionary *dict); +void *sql_open(struct dictionary *dict); -int sql_lookup_dictionary (struct dictionary *dict, void *handle, - const char *cmd); -int sql_get_dictionary (struct dictionary *dict, void *handle, - unsigned nrow, unsigned ncol); -int sql_free_result (struct dictionary *dict, void *handle); -int sql_quote (struct dictionary *, void *, const char *, char **, size_t *); +int sql_lookup_dictionary(struct dictionary *dict, void *handle, + const char *cmd); +int sql_get_dictionary(struct dictionary *dict, void *handle, + unsigned nrow, unsigned ncol); +int sql_free_result(struct dictionary *dict, void *handle); +int sql_quote(struct dictionary *, void *, const char *, char **, size_t *); |