diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-06-27 15:28:20 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-06-27 15:28:20 +0000 |
commit | 0caef6ac8573b285210d0a74c2ffd29a427de7a4 (patch) | |
tree | 63edd5ffe1fc19708e9c647ac4c2fbe6ef2ac586 /src/include/gnunet_configuration_lib.h | |
parent | 8cc2bc95891cb47263671f0fdf6c2fa0e63999f6 (diff) | |
download | gnunet-0caef6ac8573b285210d0a74c2ffd29a427de7a4.tar.gz gnunet-0caef6ac8573b285210d0a74c2ffd29a427de7a4.zip |
-configuration deserialization
Diffstat (limited to 'src/include/gnunet_configuration_lib.h')
-rw-r--r-- | src/include/gnunet_configuration_lib.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h index bba2900da..18d0f04d2 100644 --- a/src/include/gnunet_configuration_lib.h +++ b/src/include/gnunet_configuration_lib.h | |||
@@ -126,6 +126,24 @@ GNUNET_CONFIGURATION_serialize (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
126 | 126 | ||
127 | 127 | ||
128 | /** | 128 | /** |
129 | * De-serializes configuration | ||
130 | * | ||
131 | * @param cfg configuration to update | ||
132 | * @param mem the memory block of serialized configuration | ||
133 | * @param size the size of the memory block | ||
134 | * @param allow_inline set to GNUNET_YES if we recursively load configuration | ||
135 | * from inlined configurations; GNUNET_NO if not and raise warnings | ||
136 | * when we come across them | ||
137 | * @return GNUNET_OK on success, GNUNET_ERROR on error | ||
138 | */ | ||
139 | int | ||
140 | GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg, | ||
141 | const char *mem, | ||
142 | const size_t size, | ||
143 | int allow_inline); | ||
144 | |||
145 | |||
146 | /** | ||
129 | * Write configuration file. | 147 | * Write configuration file. |
130 | * | 148 | * |
131 | * @param cfg configuration to write | 149 | * @param cfg configuration to write |