diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-11 01:23:16 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-11 01:33:02 +0200 |
commit | c90ae1921559d990c179800ac392b0a5358758fb (patch) | |
tree | c696cf7e8a8d2f66d24eb221251ab0c05f7c948f /src/datacache | |
parent | d71e2f3b35de7fcce36806bdad44ecf4114f6740 (diff) | |
download | gnunet-c90ae1921559d990c179800ac392b0a5358758fb.tar.gz gnunet-c90ae1921559d990c179800ac392b0a5358758fb.zip |
rename GNUNET_PQ_QueryStatus to GNUNET_DB_QueryStatus
Diffstat (limited to 'src/datacache')
-rw-r--r-- | src/datacache/plugin_datacache_postgres.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/datacache/plugin_datacache_postgres.c b/src/datacache/plugin_datacache_postgres.c index c99f5fd68..5c497cdf8 100644 --- a/src/datacache/plugin_datacache_postgres.c +++ b/src/datacache/plugin_datacache_postgres.c | |||
@@ -170,7 +170,7 @@ postgres_plugin_put (void *cls, | |||
170 | path_info_len * sizeof (struct GNUNET_PeerIdentity)), | 170 | path_info_len * sizeof (struct GNUNET_PeerIdentity)), |
171 | GNUNET_PQ_query_param_end | 171 | GNUNET_PQ_query_param_end |
172 | }; | 172 | }; |
173 | enum GNUNET_PQ_QueryStatus ret; | 173 | enum GNUNET_DB_QueryStatus ret; |
174 | 174 | ||
175 | ret = GNUNET_PQ_eval_prepared_non_select (plugin->dbh, | 175 | ret = GNUNET_PQ_eval_prepared_non_select (plugin->dbh, |
176 | "put", | 176 | "put", |
@@ -311,7 +311,7 @@ postgres_plugin_get (void *cls, | |||
311 | GNUNET_PQ_query_param_uint32 (&type32), | 311 | GNUNET_PQ_query_param_uint32 (&type32), |
312 | GNUNET_PQ_query_param_end | 312 | GNUNET_PQ_query_param_end |
313 | }; | 313 | }; |
314 | enum GNUNET_PQ_QueryStatus res; | 314 | enum GNUNET_DB_QueryStatus res; |
315 | struct HandleResultContext hr_ctx; | 315 | struct HandleResultContext hr_ctx; |
316 | 316 | ||
317 | hr_ctx.iter = iter; | 317 | hr_ctx.iter = iter; |
@@ -354,7 +354,7 @@ postgres_plugin_del (void *cls) | |||
354 | &key), | 354 | &key), |
355 | GNUNET_PQ_result_spec_end | 355 | GNUNET_PQ_result_spec_end |
356 | }; | 356 | }; |
357 | enum GNUNET_PQ_QueryStatus res; | 357 | enum GNUNET_DB_QueryStatus res; |
358 | struct GNUNET_PQ_QueryParam dparam[] = { | 358 | struct GNUNET_PQ_QueryParam dparam[] = { |
359 | GNUNET_PQ_query_param_uint32 (&oid), | 359 | GNUNET_PQ_query_param_uint32 (&oid), |
360 | GNUNET_PQ_query_param_end | 360 | GNUNET_PQ_query_param_end |
@@ -366,7 +366,7 @@ postgres_plugin_del (void *cls) | |||
366 | rs); | 366 | rs); |
367 | if (0 > res) | 367 | if (0 > res) |
368 | return GNUNET_SYSERR; | 368 | return GNUNET_SYSERR; |
369 | if (GNUNET_PQ_STATUS_SUCCESS_NO_RESULTS == res) | 369 | if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == res) |
370 | { | 370 | { |
371 | /* no result */ | 371 | /* no result */ |
372 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 372 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
@@ -412,7 +412,7 @@ postgres_plugin_get_random (void *cls, | |||
412 | struct GNUNET_PeerIdentity *path; | 412 | struct GNUNET_PeerIdentity *path; |
413 | struct GNUNET_HashCode key; | 413 | struct GNUNET_HashCode key; |
414 | uint32_t type; | 414 | uint32_t type; |
415 | enum GNUNET_PQ_QueryStatus res; | 415 | enum GNUNET_DB_QueryStatus res; |
416 | struct GNUNET_PQ_QueryParam params[] = { | 416 | struct GNUNET_PQ_QueryParam params[] = { |
417 | GNUNET_PQ_query_param_uint32 (&off), | 417 | GNUNET_PQ_query_param_uint32 (&off), |
418 | GNUNET_PQ_query_param_end | 418 | GNUNET_PQ_query_param_end |
@@ -448,7 +448,7 @@ postgres_plugin_get_random (void *cls, | |||
448 | GNUNET_break (0); | 448 | GNUNET_break (0); |
449 | return 0; | 449 | return 0; |
450 | } | 450 | } |
451 | if (GNUNET_PQ_STATUS_SUCCESS_NO_RESULTS == res) | 451 | if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == res) |
452 | { | 452 | { |
453 | GNUNET_break (0); | 453 | GNUNET_break (0); |
454 | return 0; | 454 | return 0; |
@@ -595,7 +595,7 @@ postgres_plugin_get_closest (void *cls, | |||
595 | GNUNET_PQ_query_param_uint32 (&num_results32), | 595 | GNUNET_PQ_query_param_uint32 (&num_results32), |
596 | GNUNET_PQ_query_param_end | 596 | GNUNET_PQ_query_param_end |
597 | }; | 597 | }; |
598 | enum GNUNET_PQ_QueryStatus res; | 598 | enum GNUNET_DB_QueryStatus res; |
599 | struct ExtractResultContext erc; | 599 | struct ExtractResultContext erc; |
600 | 600 | ||
601 | erc.iter = iter; | 601 | erc.iter = iter; |
@@ -611,7 +611,7 @@ postgres_plugin_get_closest (void *cls, | |||
611 | "Ending iteration (postgres error)\n"); | 611 | "Ending iteration (postgres error)\n"); |
612 | return 0; | 612 | return 0; |
613 | } | 613 | } |
614 | if (GNUNET_PQ_STATUS_SUCCESS_NO_RESULTS == res) | 614 | if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == res) |
615 | { | 615 | { |
616 | /* no result */ | 616 | /* no result */ |
617 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 617 | LOG (GNUNET_ERROR_TYPE_DEBUG, |