diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-26 10:09:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-26 10:09:03 +0000 |
commit | fd4db43fe74e67f83b7013c7b98f97bb14d9b028 (patch) | |
tree | 07edd9a9d303629c2acd6e9d09860d6716273f54 /src/my/my.c | |
parent | 732081dcd1eec1f10f7b9a0c8be2f10f73d84f68 (diff) | |
download | gnunet-fd4db43fe74e67f83b7013c7b98f97bb14d9b028.tar.gz gnunet-fd4db43fe74e67f83b7013c7b98f97bb14d9b028.zip |
sketch envisioned API
Diffstat (limited to 'src/my/my.c')
-rw-r--r-- | src/my/my.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/my/my.c b/src/my/my.c index 886f0c6f6..1ab4a64db 100644 --- a/src/my/my.c +++ b/src/my/my.c | |||
@@ -108,15 +108,20 @@ GNUNET_MY_exec_prepared (struct GNUNET_MYSQL_Context *mc, | |||
108 | #GNUNET_SYSERR if a result was invalid | 108 | #GNUNET_SYSERR if a result was invalid |
109 | */ | 109 | */ |
110 | int | 110 | int |
111 | GNUNET_MY_extract_result (MYSQL_BIND * result, | 111 | GNUNET_MY_extract_result (struct GNUNET_MYSQL_StatementHandle *sh, |
112 | struct GNUNET_MY_QueryParam *qp, | 112 | struct GNUNET_MY_QueryParam *qp, |
113 | struct GNUNET_MY_ResultSpec *rs, | 113 | struct GNUNET_MY_ResultSpec *rs, |
114 | int row) | 114 | int row) |
115 | { | 115 | { |
116 | MYSQL_BIND * result; | ||
116 | unsigned int i; | 117 | unsigned int i; |
117 | int had_null = GNUNET_NO; | 118 | int had_null = GNUNET_NO; |
118 | int ret; | 119 | int ret; |
120 | MYSQL_STMT *stmt; | ||
119 | 121 | ||
122 | stmt = GNUNET_MYSQL_statement_get_stmt (NULL /* FIXME */, sh); | ||
123 | // result = mysql_get_result (stmt); | ||
124 | result = NULL; | ||
120 | for (i = 0 ; NULL != rs[i].conv ; i++) | 125 | for (i = 0 ; NULL != rs[i].conv ; i++) |
121 | { | 126 | { |
122 | struct GNUNET_MY_ResultSpec *spec; | 127 | struct GNUNET_MY_ResultSpec *spec; |