diff options
author | Gabor X Toth <*@tg-x.net> | 2015-09-26 17:09:48 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2015-09-26 17:09:48 +0000 |
commit | 0c5cea1c26efb8b53f643a6ce6b162d9c9fe2b8f (patch) | |
tree | da1f58068d54688c560c2cb464dc8ce4053874a1 /src/psycstore/psycstore_api.c | |
parent | 68e2709a38f9c481f96024138a6f9ae57a280a57 (diff) | |
download | gnunet-0c5cea1c26efb8b53f643a6ce6b162d9c9fe2b8f.tar.gz gnunet-0c5cea1c26efb8b53f643a6ce6b162d9c9fe2b8f.zip |
psycstore: add fragment_limit arg for message_get
Diffstat (limited to 'src/psycstore/psycstore_api.c')
-rw-r--r-- | src/psycstore/psycstore_api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/psycstore/psycstore_api.c b/src/psycstore/psycstore_api.c index f378be210..8f067b452 100644 --- a/src/psycstore/psycstore_api.c +++ b/src/psycstore/psycstore_api.c | |||
@@ -965,6 +965,8 @@ GNUNET_PSYCSTORE_fragment_get_latest (struct GNUNET_PSYCSTORE_Handle *h, | |||
965 | * First message ID to retrieve. | 965 | * First message ID to retrieve. |
966 | * @param last_message_id | 966 | * @param last_message_id |
967 | * Last consecutive message ID to retrieve. | 967 | * Last consecutive message ID to retrieve. |
968 | * @param fragment_limit | ||
969 | * Maximum number of fragments to retrieve. | ||
968 | * @param method_prefix | 970 | * @param method_prefix |
969 | * Retrieve only messages with a matching method prefix. | 971 | * Retrieve only messages with a matching method prefix. |
970 | * @todo Implement method_prefix query. | 972 | * @todo Implement method_prefix query. |
@@ -983,6 +985,7 @@ GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h, | |||
983 | const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key, | 985 | const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key, |
984 | uint64_t first_message_id, | 986 | uint64_t first_message_id, |
985 | uint64_t last_message_id, | 987 | uint64_t last_message_id, |
988 | uint64_t fragment_limit, | ||
986 | const char *method_prefix, | 989 | const char *method_prefix, |
987 | GNUNET_PSYCSTORE_FragmentCallback fragment_cb, | 990 | GNUNET_PSYCSTORE_FragmentCallback fragment_cb, |
988 | GNUNET_PSYCSTORE_ResultCallback rcb, | 991 | GNUNET_PSYCSTORE_ResultCallback rcb, |
@@ -1009,6 +1012,7 @@ GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h, | |||
1009 | req->channel_key = *channel_key; | 1012 | req->channel_key = *channel_key; |
1010 | req->first_message_id = GNUNET_htonll (first_message_id); | 1013 | req->first_message_id = GNUNET_htonll (first_message_id); |
1011 | req->last_message_id = GNUNET_htonll (last_message_id); | 1014 | req->last_message_id = GNUNET_htonll (last_message_id); |
1015 | req->fragment_limit = GNUNET_htonll (fragment_limit); | ||
1012 | if (NULL != slave_key) | 1016 | if (NULL != slave_key) |
1013 | { | 1017 | { |
1014 | req->slave_key = *slave_key; | 1018 | req->slave_key = *slave_key; |