aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-06-13 19:21:39 +0000
committerChristian Grothoff <christian@grothoff.org>2011-06-13 19:21:39 +0000
commit18db9a2fc6584fe35b327650534cf0672f4686e7 (patch)
tree8ad5dcec557b5470dded775edd705bbac0f75a18 /src/datastore/plugin_datastore_postgres.c
parent56b9555f0608da28c2e3833f06abfb126b053d76 (diff)
downloadgnunet-18db9a2fc6584fe35b327650534cf0672f4686e7.tar.gz
gnunet-18db9a2fc6584fe35b327650534cf0672f4686e7.zip
doxygen
Diffstat (limited to 'src/datastore/plugin_datastore_postgres.c')
-rw-r--r--src/datastore/plugin_datastore_postgres.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c
index 9d60100cf..115259dbf 100644
--- a/src/datastore/plugin_datastore_postgres.c
+++ b/src/datastore/plugin_datastore_postgres.c
@@ -529,6 +529,7 @@ postgres_plugin_put (void *cls,
529 * @param proc function to call the value (once only). 529 * @param proc function to call the value (once only).
530 * @param proc_cls closure for proc 530 * @param proc_cls closure for proc
531 * @param res result from exec 531 * @param res result from exec
532 * @param line line number for error messages
532 */ 533 */
533static void 534static void
534process_result (struct Plugin *plugin, 535process_result (struct Plugin *plugin,
@@ -663,6 +664,8 @@ process_result (struct Plugin *plugin,
663 * in the datastore. 664 * in the datastore.
664 * 665 *
665 * @param cls closure 666 * @param cls closure
667 * @param offset offset of the result (modulo num-results);
668 * specific ordering does not matter for the offset
666 * @param key maybe NULL (to match all entries) 669 * @param key maybe NULL (to match all entries)
667 * @param vhash hash of the value, maybe NULL (to 670 * @param vhash hash of the value, maybe NULL (to
668 * match all values that have the right key). 671 * match all values that have the right key).
@@ -671,9 +674,9 @@ process_result (struct Plugin *plugin,
671 * there may be! 674 * there may be!
672 * @param type entries of which type are relevant? 675 * @param type entries of which type are relevant?
673 * Use 0 for any type. 676 * Use 0 for any type.
674 * @param iter function to call on each matching value; 677 * @param proc function to call on the matching value;
675 * will be called once with a NULL value at the end 678 * will be called once with a NULL if no value matches
676 * @param iter_cls closure for iter 679 * @param proc_cls closure for iter
677 */ 680 */
678static void 681static void
679postgres_plugin_get_key (void *cls, 682postgres_plugin_get_key (void *cls,
@@ -820,9 +823,9 @@ postgres_plugin_get_key (void *cls,
820 * @param cls our "struct Plugin*" 823 * @param cls our "struct Plugin*"
821 * @param type entries of which type should be considered? 824 * @param type entries of which type should be considered?
822 * Use 0 for any type. 825 * Use 0 for any type.
823 * @param iter function to call on each matching value; 826 * @param proc function to call on the matching value;
824 * will be called once with a NULL value at the end 827 * will be called with a NULL if no value matches
825 * @param iter_cls closure for iter 828 * @param proc_cls closure for proc
826 */ 829 */
827static void 830static void
828postgres_plugin_get_zero_anonymity (void *cls, 831postgres_plugin_get_zero_anonymity (void *cls,
@@ -951,7 +954,7 @@ repl_proc (void *cls,
951 * 954 *
952 * @param cls closure 955 * @param cls closure
953 * @param proc function to call the value (once only). 956 * @param proc function to call the value (once only).
954 * @param proc_cls closure for iter 957 * @param proc_cls closure for proc
955 */ 958 */
956static void 959static void
957postgres_plugin_get_replication (void *cls, 960postgres_plugin_get_replication (void *cls,
@@ -976,11 +979,11 @@ postgres_plugin_get_replication (void *cls,
976 979
977/** 980/**
978 * Get a random item for expiration. 981 * Get a random item for expiration.
979 * Call 'iter' with all values ZERO or NULL if the datastore is empty. 982 * Call 'proc' with all values ZERO or NULL if the datastore is empty.
980 * 983 *
981 * @param cls closure 984 * @param cls closure
982 * @param proc function to call the value (once only). 985 * @param proc function to call the value (once only).
983 * @param proc_cls closure for iter 986 * @param proc_cls closure for proc
984 */ 987 */
985static void 988static void
986postgres_plugin_get_expiration (void *cls, 989postgres_plugin_get_expiration (void *cls,