diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-27 00:23:34 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-27 00:23:47 +0100 |
commit | befd2f9fc787c2ac75790b06e1601f2f65305375 (patch) | |
tree | 902a372dc4996a33820abc70505d60ab9bf72c10 /src/include/gnunet_mysql_lib.h | |
parent | 82242cae3bb6313ee10df20570e4c14627828033 (diff) | |
download | gnunet-befd2f9fc787c2ac75790b06e1601f2f65305375.tar.gz gnunet-befd2f9fc787c2ac75790b06e1601f2f65305375.zip |
designing SQ-lib API
Diffstat (limited to 'src/include/gnunet_mysql_lib.h')
-rw-r--r-- | src/include/gnunet_mysql_lib.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/include/gnunet_mysql_lib.h b/src/include/gnunet_mysql_lib.h index fc6f42f86..6a1e5b3ac 100644 --- a/src/include/gnunet_mysql_lib.h +++ b/src/include/gnunet_mysql_lib.h | |||
@@ -61,10 +61,12 @@ struct GNUNET_MYSQL_StatementHandle; | |||
61 | * @param cls user-defined argument | 61 | * @param cls user-defined argument |
62 | * @param num_values number of elements in values | 62 | * @param num_values number of elements in values |
63 | * @param values values returned by MySQL | 63 | * @param values values returned by MySQL |
64 | * @return GNUNET_OK to continue iterating, GNUNET_SYSERR to abort | 64 | * @return #GNUNET_OK to continue iterating, #GNUNET_SYSERR to abort |
65 | */ | 65 | */ |
66 | typedef int (*GNUNET_MYSQL_DataProcessor) (void *cls, unsigned int num_values, | 66 | typedef int |
67 | MYSQL_BIND * values); | 67 | (*GNUNET_MYSQL_DataProcessor) (void *cls, |
68 | unsigned int num_values, | ||
69 | MYSQL_BIND * values); | ||
68 | 70 | ||
69 | 71 | ||
70 | /** | 72 | /** |
@@ -102,7 +104,7 @@ GNUNET_MYSQL_statements_invalidate (struct GNUNET_MYSQL_Context *mc); | |||
102 | /** | 104 | /** |
103 | * Get internal handle for a prepared statement. This function should rarely | 105 | * Get internal handle for a prepared statement. This function should rarely |
104 | * be used, and if, with caution! On failures during the interaction with | 106 | * be used, and if, with caution! On failures during the interaction with |
105 | * the handle, you must call 'GNUNET_MYSQL_statements_invalidate'! | 107 | * the handle, you must call #GNUNET_MYSQL_statements_invalidate()! |
106 | * | 108 | * |
107 | * @param sh prepared statement to introspect | 109 | * @param sh prepared statement to introspect |
108 | * @return MySQL statement handle, NULL on error | 110 | * @return MySQL statement handle, NULL on error |
@@ -129,8 +131,8 @@ GNUNET_MYSQL_statement_prepare (struct GNUNET_MYSQL_Context *mc, | |||
129 | * | 131 | * |
130 | * @param mc mysql context | 132 | * @param mc mysql context |
131 | * @param sql SQL statement to run | 133 | * @param sql SQL statement to run |
132 | * @return GNUNET_OK on success | 134 | * @return #GNUNET_OK on success |
133 | * GNUNET_SYSERR if there was a problem | 135 | * #GNUNET_SYSERR if there was a problem |
134 | */ | 136 | */ |
135 | int | 137 | int |
136 | GNUNET_MYSQL_statement_run (struct GNUNET_MYSQL_Context *mc, | 138 | GNUNET_MYSQL_statement_run (struct GNUNET_MYSQL_Context *mc, |