aboutsummaryrefslogtreecommitdiff
path: root/src/my/test_my.c
diff options
context:
space:
mode:
authorChristophe Genevey Metat <genevey.christophe@gmail.com>2016-06-03 09:06:30 +0000
committerChristophe Genevey Metat <genevey.christophe@gmail.com>2016-06-03 09:06:30 +0000
commitb114c5d82d3984e6baa216ed47dee20fae9bf4d6 (patch)
treedfc55ae83eb1302e13e72d69efb68ce096de2546 /src/my/test_my.c
parentb5fc1aa04d11e28eaf9f5c78abba0effd083f985 (diff)
downloadgnunet-b114c5d82d3984e6baa216ed47dee20fae9bf4d6.tar.gz
gnunet-b114c5d82d3984e6baa216ed47dee20fae9bf4d6.zip
start to written extract_result
Diffstat (limited to 'src/my/test_my.c')
-rw-r--r--src/my/test_my.c36
1 files changed, 16 insertions, 20 deletions
diff --git a/src/my/test_my.c b/src/my/test_my.c
index d213bf547..c63a069bf 100644
--- a/src/my/test_my.c
+++ b/src/my/test_my.c
@@ -38,34 +38,30 @@ static int
38run_queries (struct GNUNET_MYSQL_Context *context) 38run_queries (struct GNUNET_MYSQL_Context *context)
39{ 39{
40 struct GNUNET_CRYPTO_RsaPublicKey *pub; 40 struct GNUNET_CRYPTO_RsaPublicKey *pub;
41// struct GNUNET_CRYPTO_RsaPublicKey *pub2 = NULL; 41 struct GNUNET_CRYPTO_RsaPublicKey *pub2 = NULL;
42 struct GNUNET_CRYPTO_RsaSignature *sig; 42 struct GNUNET_CRYPTO_RsaSignature *sig;
43// struct GNUNET_CRYPTO_RsaSignature *sig2 = NULL; 43 struct GNUNET_CRYPTO_RsaSignature *sig2 = NULL;
44 struct GNUNET_TIME_Absolute abs_time = GNUNET_TIME_absolute_get (); 44 struct GNUNET_TIME_Absolute abs_time = GNUNET_TIME_absolute_get ();
45// struct GNUNET_TIME_Absolute abs_time2; 45 struct GNUNET_TIME_Absolute abs_time2;
46 struct GNUNET_TIME_Absolute forever = GNUNET_TIME_UNIT_FOREVER_ABS; 46 struct GNUNET_TIME_Absolute forever = GNUNET_TIME_UNIT_FOREVER_ABS;
47// struct GNUNET_TIME_Absolute forever2; 47 struct GNUNET_TIME_Absolute forever2;
48 struct GNUNET_HashCode hc; 48 struct GNUNET_HashCode hc;
49// struct GNUNET_HashCode hc2; 49 struct GNUNET_HashCode hc2;
50 const char msg[] = "hello"; 50 const char msg[] = "hello";
51// void *msg2; 51 void *msg2;
52 size_t msg_len; 52 size_t msg2_len;
53// size_t msg2_len;
54 53
55 uint16_t u16; 54 uint16_t u16;
56// uint16_t u162; 55 uint16_t u162;
57 uint32_t u32; 56 uint32_t u32;
58// uint32_t u322; 57 uint32_t u322;
59 uint64_t u64; 58 uint64_t u64;
60// uint64_t u642; 59 uint64_t u642;
61 60
62 msg_len = sizeof(msg); 61 int ret;
63
64// int ret;
65 62
66 struct GNUNET_MYSQL_StatementHandle *statements_handle_insert; 63 struct GNUNET_MYSQL_StatementHandle *statements_handle_insert;
67 64 struct GNUNET_MYSQL_StatementHandle *statements_handle_select;
68// struct GNUNET_MYSQL_StatementHandle *statements_handle_select;
69 65
70 struct GNUNET_CRYPTO_RsaPrivateKey *priv; 66 struct GNUNET_CRYPTO_RsaPrivateKey *priv;
71 struct GNUNET_HashCode hmsg; 67 struct GNUNET_HashCode hmsg;
@@ -122,7 +118,7 @@ run_queries (struct GNUNET_MYSQL_Context *context)
122 118
123 119
124 120
125/* statements_handle_select = GNUNET_MYSQL_statement_prepare (context, 121 statements_handle_select = GNUNET_MYSQL_statement_prepare (context,
126 "SELECT" 122 "SELECT"
127 " pub" 123 " pub"
128 ",sig" 124 ",sig"
@@ -178,7 +174,7 @@ run_queries (struct GNUNET_MYSQL_Context *context)
178 fprintf(stderr, "Failed to extract result\n"); 174 fprintf(stderr, "Failed to extract result\n");
179 return 1; 175 return 1;
180 } 176 }
181*/ 177
182 return 0; 178 return 0;
183} 179}
184 180
@@ -245,8 +241,8 @@ main (int argc, const char * const argv[])
245 fprintf (stderr, "Failed to drop table test_my\n"); 241 fprintf (stderr, "Failed to drop table test_my\n");
246 GNUNET_MYSQL_statements_invalidate (context); 242 GNUNET_MYSQL_statements_invalidate (context);
247 } 243 }
248*/
249 GNUNET_MYSQL_context_destroy (context);
250 244
245 GNUNET_MYSQL_context_destroy (context);
246*/
251 return ret; 247 return ret;
252} 248}