aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_pr.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-04-03 20:00:42 +0000
committerChristian Grothoff <christian@grothoff.org>2011-04-03 20:00:42 +0000
commite8f35bb025c25839a52fb502e452393831e4e6f0 (patch)
tree7a056253bddc61b1e6a3258567e176af128c2b67 /src/fs/gnunet-service-fs_pr.c
parent9f871785d57da57ba128ac2279fda1db1d9b8bfb (diff)
downloadgnunet-e8f35bb025c25839a52fb502e452393831e4e6f0.tar.gz
gnunet-e8f35bb025c25839a52fb502e452393831e4e6f0.zip
improving datastore API --- not working yet
Diffstat (limited to 'src/fs/gnunet-service-fs_pr.c')
-rw-r--r--src/fs/gnunet-service-fs_pr.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c
index c44a658df..16389e130 100644
--- a/src/fs/gnunet-service-fs_pr.c
+++ b/src/fs/gnunet-service-fs_pr.c
@@ -1047,7 +1047,7 @@ process_local_reply (void *cls,
1047 pr)) 1047 pr))
1048 { 1048 {
1049 if (pr->qe != NULL) 1049 if (pr->qe != NULL)
1050 GNUNET_DATASTORE_get_next (GSF_dsh); 1050 GNUNET_DATASTORE_iterate_get_next (GSF_dsh);
1051 } 1051 }
1052 return; 1052 return;
1053 } 1053 }
@@ -1070,7 +1070,7 @@ process_local_reply (void *cls,
1070 -1, -1, 1070 -1, -1,
1071 GNUNET_TIME_UNIT_FOREVER_REL, 1071 GNUNET_TIME_UNIT_FOREVER_REL,
1072 NULL, NULL); 1072 NULL, NULL);
1073 GNUNET_DATASTORE_get_next (GSF_dsh); 1073 GNUNET_DATASTORE_iterate_get_next (GSF_dsh);
1074 return; 1074 return;
1075 } 1075 }
1076 prq.type = type; 1076 prq.type = type;
@@ -1112,7 +1112,7 @@ process_local_reply (void *cls,
1112 } 1112 }
1113 return; 1113 return;
1114 } 1114 }
1115 GNUNET_DATASTORE_get_next (GSF_dsh); 1115 GNUNET_DATASTORE_iterate_get_next (GSF_dsh);
1116} 1116}
1117 1117
1118 1118
@@ -1132,20 +1132,20 @@ GSF_local_lookup_ (struct GSF_PendingRequest *pr,
1132 GNUNET_assert (NULL == pr->llc_cont); 1132 GNUNET_assert (NULL == pr->llc_cont);
1133 pr->llc_cont = cont; 1133 pr->llc_cont = cont;
1134 pr->llc_cont_cls = cont_cls; 1134 pr->llc_cont_cls = cont_cls;
1135 pr->qe = GNUNET_DATASTORE_get (GSF_dsh, 1135 pr->qe = GNUNET_DATASTORE_iterate_key (GSF_dsh,
1136 &pr->public_data.query, 1136 &pr->public_data.query,
1137 pr->public_data.type == GNUNET_BLOCK_TYPE_FS_DBLOCK 1137 pr->public_data.type == GNUNET_BLOCK_TYPE_FS_DBLOCK
1138 ? GNUNET_BLOCK_TYPE_ANY 1138 ? GNUNET_BLOCK_TYPE_ANY
1139 : pr->public_data.type, 1139 : pr->public_data.type,
1140 (0 != (GSF_PRO_PRIORITY_UNLIMITED & pr->public_data.options)) 1140 (0 != (GSF_PRO_PRIORITY_UNLIMITED & pr->public_data.options))
1141 ? UINT_MAX 1141 ? UINT_MAX
1142 : 1 /* queue priority */, 1142 : 1 /* queue priority */,
1143 (0 != (GSF_PRO_PRIORITY_UNLIMITED & pr->public_data.options)) 1143 (0 != (GSF_PRO_PRIORITY_UNLIMITED & pr->public_data.options))
1144 ? UINT_MAX 1144 ? UINT_MAX
1145 : 1 /* max queue size */, 1145 : 1 /* max queue size */,
1146 GNUNET_TIME_UNIT_FOREVER_REL, 1146 GNUNET_TIME_UNIT_FOREVER_REL,
1147 &process_local_reply, 1147 &process_local_reply,
1148 pr); 1148 pr);
1149} 1149}
1150 1150
1151 1151