aboutsummaryrefslogtreecommitdiff
path: root/src/gnsrecord/gnsrecord_serialization.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-16 20:21:27 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-16 20:21:27 +0000
commitaccfd6bd85274da2f19e7230c8da6b273cfb2ece (patch)
tree60966194963795ff07b4da94f4efb6c46d6a23cf /src/gnsrecord/gnsrecord_serialization.c
parent3d670727232e79b7e49a1df7ba9260db4e5798a0 (diff)
downloadgnunet-accfd6bd85274da2f19e7230c8da6b273cfb2ece.tar.gz
gnunet-accfd6bd85274da2f19e7230c8da6b273cfb2ece.zip
-another renaming fest for GNUNET_NAMESTORE_ to GNUNET_GNSRECORD_ symbols that were moved
Diffstat (limited to 'src/gnsrecord/gnsrecord_serialization.c')
-rw-r--r--src/gnsrecord/gnsrecord_serialization.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gnsrecord/gnsrecord_serialization.c b/src/gnsrecord/gnsrecord_serialization.c
index 0fd10b3e0..4b54bd366 100644
--- a/src/gnsrecord/gnsrecord_serialization.c
+++ b/src/gnsrecord/gnsrecord_serialization.c
@@ -77,12 +77,12 @@ GNUNET_NETWORK_STRUCT_END
77 * records. 77 * records.
78 * 78 *
79 * @param rd_count number of records in the rd array 79 * @param rd_count number of records in the rd array
80 * @param rd array of #GNUNET_NAMESTORE_RecordData with @a rd_count elements 80 * @param rd array of #GNUNET_GNSRECORD_Data with @a rd_count elements
81 * @return the required size to serialize 81 * @return the required size to serialize
82 */ 82 */
83size_t 83size_t
84GNUNET_NAMESTORE_records_get_size (unsigned int rd_count, 84GNUNET_GNSRECORD_records_get_size (unsigned int rd_count,
85 const struct GNUNET_NAMESTORE_RecordData *rd) 85 const struct GNUNET_GNSRECORD_Data *rd)
86{ 86{
87 unsigned int i; 87 unsigned int i;
88 size_t ret; 88 size_t ret;
@@ -101,14 +101,14 @@ GNUNET_NAMESTORE_records_get_size (unsigned int rd_count,
101 * Serialize the given records to the given destination buffer. 101 * Serialize the given records to the given destination buffer.
102 * 102 *
103 * @param rd_count number of records in the rd array 103 * @param rd_count number of records in the rd array
104 * @param rd array of #GNUNET_NAMESTORE_RecordData with @a rd_count elements 104 * @param rd array of #GNUNET_GNSRECORD_Data with @a rd_count elements
105 * @param dest_size size of the destination array 105 * @param dest_size size of the destination array
106 * @param dest where to write the result 106 * @param dest where to write the result
107 * @return the size of serialized records, -1 if records do not fit 107 * @return the size of serialized records, -1 if records do not fit
108 */ 108 */
109ssize_t 109ssize_t
110GNUNET_NAMESTORE_records_serialize (unsigned int rd_count, 110GNUNET_GNSRECORD_records_serialize (unsigned int rd_count,
111 const struct GNUNET_NAMESTORE_RecordData *rd, 111 const struct GNUNET_GNSRECORD_Data *rd,
112 size_t dest_size, 112 size_t dest_size,
113 char *dest) 113 char *dest)
114{ 114{
@@ -151,10 +151,10 @@ GNUNET_NAMESTORE_records_serialize (unsigned int rd_count,
151 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error 151 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
152 */ 152 */
153int 153int
154GNUNET_NAMESTORE_records_deserialize (size_t len, 154GNUNET_GNSRECORD_records_deserialize (size_t len,
155 const char *src, 155 const char *src,
156 unsigned int rd_count, 156 unsigned int rd_count,
157 struct GNUNET_NAMESTORE_RecordData *dest) 157 struct GNUNET_GNSRECORD_Data *dest)
158{ 158{
159 struct NetworkRecord rec; 159 struct NetworkRecord rec;
160 unsigned int i; 160 unsigned int i;