diff options
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 |