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/datastore | |
parent | d71e2f3b35de7fcce36806bdad44ecf4114f6740 (diff) | |
download | gnunet-c90ae1921559d990c179800ac392b0a5358758fb.tar.gz gnunet-c90ae1921559d990c179800ac392b0a5358758fb.zip |
rename GNUNET_PQ_QueryStatus to GNUNET_DB_QueryStatus
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/plugin_datastore_postgres.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c index 9380a56c0..fd1a533bb 100644 --- a/src/datastore/plugin_datastore_postgres.c +++ b/src/datastore/plugin_datastore_postgres.c | |||
@@ -198,7 +198,7 @@ postgres_plugin_estimate_size (void *cls, | |||
198 | &total), | 198 | &total), |
199 | GNUNET_PQ_result_spec_end | 199 | GNUNET_PQ_result_spec_end |
200 | }; | 200 | }; |
201 | enum GNUNET_PQ_QueryStatus ret; | 201 | enum GNUNET_DB_QueryStatus ret; |
202 | 202 | ||
203 | if (NULL == estimate) | 203 | if (NULL == estimate) |
204 | return; | 204 | return; |
@@ -206,7 +206,7 @@ postgres_plugin_estimate_size (void *cls, | |||
206 | "estimate_size", | 206 | "estimate_size", |
207 | params, | 207 | params, |
208 | rs); | 208 | rs); |
209 | if (GNUNET_PQ_STATUS_SUCCESS_ONE_RESULT != ret) | 209 | if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != ret) |
210 | { | 210 | { |
211 | *estimate = 0LL; | 211 | *estimate = 0LL; |
212 | return; | 212 | return; |
@@ -247,7 +247,7 @@ postgres_plugin_put (void *cls, | |||
247 | { | 247 | { |
248 | struct Plugin *plugin = cls; | 248 | struct Plugin *plugin = cls; |
249 | struct GNUNET_HashCode vhash; | 249 | struct GNUNET_HashCode vhash; |
250 | enum GNUNET_PQ_QueryStatus ret; | 250 | enum GNUNET_DB_QueryStatus ret; |
251 | 251 | ||
252 | GNUNET_CRYPTO_hash (data, | 252 | GNUNET_CRYPTO_hash (data, |
253 | size, | 253 | size, |
@@ -510,7 +510,7 @@ postgres_plugin_get_key (void *cls, | |||
510 | GNUNET_PQ_query_param_end | 510 | GNUNET_PQ_query_param_end |
511 | }; | 511 | }; |
512 | struct ProcessResultContext prc; | 512 | struct ProcessResultContext prc; |
513 | enum GNUNET_PQ_QueryStatus res; | 513 | enum GNUNET_DB_QueryStatus res; |
514 | 514 | ||
515 | if (random) | 515 | if (random) |
516 | { | 516 | { |
@@ -564,7 +564,7 @@ postgres_plugin_get_zero_anonymity (void *cls, | |||
564 | GNUNET_PQ_query_param_end | 564 | GNUNET_PQ_query_param_end |
565 | }; | 565 | }; |
566 | struct ProcessResultContext prc; | 566 | struct ProcessResultContext prc; |
567 | enum GNUNET_PQ_QueryStatus res; | 567 | enum GNUNET_DB_QueryStatus res; |
568 | 568 | ||
569 | prc.plugin = plugin; | 569 | prc.plugin = plugin; |
570 | prc.proc = proc; | 570 | prc.proc = proc; |
@@ -644,7 +644,7 @@ repl_proc (void *cls, | |||
644 | GNUNET_PQ_query_param_uint32 (&oid), | 644 | GNUNET_PQ_query_param_uint32 (&oid), |
645 | GNUNET_PQ_query_param_end | 645 | GNUNET_PQ_query_param_end |
646 | }; | 646 | }; |
647 | enum GNUNET_PQ_QueryStatus qret; | 647 | enum GNUNET_DB_QueryStatus qret; |
648 | 648 | ||
649 | ret = rc->proc (rc->proc_cls, | 649 | ret = rc->proc (rc->proc_cls, |
650 | key, | 650 | key, |
@@ -689,7 +689,7 @@ postgres_plugin_get_replication (void *cls, | |||
689 | }; | 689 | }; |
690 | struct ReplCtx rc; | 690 | struct ReplCtx rc; |
691 | struct ProcessResultContext prc; | 691 | struct ProcessResultContext prc; |
692 | enum GNUNET_PQ_QueryStatus res; | 692 | enum GNUNET_DB_QueryStatus res; |
693 | 693 | ||
694 | rc.plugin = plugin; | 694 | rc.plugin = plugin; |
695 | rc.proc = proc; | 695 | rc.proc = proc; |
@@ -872,7 +872,7 @@ postgres_plugin_remove_key (void *cls, | |||
872 | void *cont_cls) | 872 | void *cont_cls) |
873 | { | 873 | { |
874 | struct Plugin *plugin = cls; | 874 | struct Plugin *plugin = cls; |
875 | enum GNUNET_PQ_QueryStatus ret; | 875 | enum GNUNET_DB_QueryStatus ret; |
876 | struct GNUNET_PQ_QueryParam params[] = { | 876 | struct GNUNET_PQ_QueryParam params[] = { |
877 | GNUNET_PQ_query_param_auto_from_type (key), | 877 | GNUNET_PQ_query_param_auto_from_type (key), |
878 | GNUNET_PQ_query_param_fixed_size (data, size), | 878 | GNUNET_PQ_query_param_fixed_size (data, size), |
@@ -891,7 +891,7 @@ postgres_plugin_remove_key (void *cls, | |||
891 | _("Postgress exec failure")); | 891 | _("Postgress exec failure")); |
892 | return; | 892 | return; |
893 | } | 893 | } |
894 | if (GNUNET_PQ_STATUS_SUCCESS_NO_RESULTS == ret) | 894 | if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == ret) |
895 | { | 895 | { |
896 | cont (cont_cls, | 896 | cont (cont_cls, |
897 | key, | 897 | key, |