diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-02-29 11:11:10 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-02-29 11:11:10 +0000 |
commit | a74f95cb209906901dc44cff013fa9200c4e2e4e (patch) | |
tree | b07c642e8a9d0345d2f7fcbf46834d9cba25b7ed /src/include/gnunet_namestore_plugin.h | |
parent | fd9ed7b5a3e296ad99e39c36d011d5a9db6f46dd (diff) | |
download | gnunet-a74f95cb209906901dc44cff013fa9200c4e2e4e.tar.gz gnunet-a74f95cb209906901dc44cff013fa9200c4e2e4e.zip |
nametore api change
Diffstat (limited to 'src/include/gnunet_namestore_plugin.h')
-rw-r--r-- | src/include/gnunet_namestore_plugin.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/gnunet_namestore_plugin.h b/src/include/gnunet_namestore_plugin.h index 546851339..bf43805e4 100644 --- a/src/include/gnunet_namestore_plugin.h +++ b/src/include/gnunet_namestore_plugin.h | |||
@@ -56,7 +56,7 @@ typedef void (*GNUNET_NAMESTORE_RecordIterator) (void *cls, | |||
56 | const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *zone_key, | 56 | const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *zone_key, |
57 | struct GNUNET_TIME_Absolute expire, | 57 | struct GNUNET_TIME_Absolute expire, |
58 | const char *name, | 58 | const char *name, |
59 | unsigned int rd_count, | 59 | unsigned int rd_len, |
60 | const struct GNUNET_NAMESTORE_RecordData *rd, | 60 | const struct GNUNET_NAMESTORE_RecordData *rd, |
61 | const struct GNUNET_CRYPTO_RsaSignature *signature); | 61 | const struct GNUNET_CRYPTO_RsaSignature *signature); |
62 | 62 | ||
@@ -85,13 +85,13 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
85 | * @param rd array of records with data to store | 85 | * @param rd array of records with data to store |
86 | * @param signature signature of the record block, NULL if signature is unavailable (i.e. | 86 | * @param signature signature of the record block, NULL if signature is unavailable (i.e. |
87 | * because the user queried for a particular record type only) | 87 | * because the user queried for a particular record type only) |
88 | * @return GNUNET_OK on success | 88 | * @return GNUNET_OK on success, else GNUNET_SYSERR |
89 | */ | 89 | */ |
90 | int (*put_records) (void *cls, | 90 | int (*put_records) (void *cls, |
91 | const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *zone_key, | 91 | const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *zone_key, |
92 | struct GNUNET_TIME_Absolute expire, | 92 | struct GNUNET_TIME_Absolute expire, |
93 | const char *name, | 93 | const char *name, |
94 | unsigned int rd_count, | 94 | unsigned int rd_len, |
95 | const struct GNUNET_NAMESTORE_RecordData *rd, | 95 | const struct GNUNET_NAMESTORE_RecordData *rd, |
96 | const struct GNUNET_CRYPTO_RsaSignature *signature); | 96 | const struct GNUNET_CRYPTO_RsaSignature *signature); |
97 | 97 | ||
@@ -115,7 +115,7 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
115 | * | 115 | * |
116 | * @param cls closure (internal context for the plugin) | 116 | * @param cls closure (internal context for the plugin) |
117 | * @param zone hash of public key of the zone, NULL to iterate over all zones | 117 | * @param zone hash of public key of the zone, NULL to iterate over all zones |
118 | * @param name_hash hash of name, NULL to iterate over all records of the zone | 118 | * @param name name as '\0' terminated string, NULL to iterate over all records of the zone |
119 | * @param offset offset in the list of all matching records | 119 | * @param offset offset in the list of all matching records |
120 | * @param iter function to call with the result | 120 | * @param iter function to call with the result |
121 | * @param iter_cls closure for iter | 121 | * @param iter_cls closure for iter |
@@ -123,7 +123,7 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
123 | */ | 123 | */ |
124 | int (*iterate_records) (void *cls, | 124 | int (*iterate_records) (void *cls, |
125 | const GNUNET_HashCode *zone, | 125 | const GNUNET_HashCode *zone, |
126 | const GNUNET_HashCode *name_hash, | 126 | const char *name, |
127 | uint64_t offset, | 127 | uint64_t offset, |
128 | GNUNET_NAMESTORE_RecordIterator iter, void *iter_cls); | 128 | GNUNET_NAMESTORE_RecordIterator iter, void *iter_cls); |
129 | 129 | ||