src/cx/properties.h

changeset 932
484dab606292
parent 928
d2d42cb1d59e
equal deleted inserted replaced
931:be71809e69d1 932:484dab606292
41 #include "map.h" 41 #include "map.h"
42 #include "array_list.h" 42 #include "array_list.h"
43 43
44 #include <stdio.h> 44 #include <stdio.h>
45 45
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49
46 struct cx_properties_config_s { 50 struct cx_properties_config_s {
47 /** 51 /**
48 * The key/value delimiter that shall be used. 52 * The key/value delimiter that shall be used.
49 * This is '=' by default. 53 * This is '=' by default.
50 */ 54 */
266 * @param prop the properties interface that wants to read from the source 270 * @param prop the properties interface that wants to read from the source
267 * @param src the source 271 * @param src the source
268 * @param target a string buffer where the read data shall be stored 272 * @param target a string buffer where the read data shall be stored
269 * @return zero on success, non-zero when reading data failed 273 * @return zero on success, non-zero when reading data failed
270 */ 274 */
271 __attribute__((__nonnull__)) 275 __attribute__((__nonnull__))
272 typedef int(*cx_properties_read_func)( 276 typedef int(*cx_properties_read_func)(
273 CxProperties *prop, 277 CxProperties *prop,
274 CxPropertiesSource *src, 278 CxPropertiesSource *src,
275 cxstring *target 279 cxstring *target
276 ); 280 );
277 281
278 /** 282 /**
279 * A function that may initialize additional memory for the source. 283 * A function that may initialize additional memory for the source.
280 * 284 *
281 * @param prop the properties interface that wants to read from the source 285 * @param prop the properties interface that wants to read from the source
282 * @param src the source 286 * @param src the source
283 * @return zero when initialization was successful, non-zero otherwise 287 * @return zero when initialization was successful, non-zero otherwise
284 */ 288 */
285 __attribute__((__nonnull__)) 289 __attribute__((__nonnull__))
286 typedef int(*cx_properties_read_init_func)( 290 typedef int(*cx_properties_read_init_func)(
287 CxProperties *prop, 291 CxProperties *prop,
288 CxPropertiesSource *src 292 CxPropertiesSource *src
289 ); 293 );
290 294
530 CxProperties *prop, 534 CxProperties *prop,
531 CxPropertiesSink sink, 535 CxPropertiesSink sink,
532 CxPropertiesSource source 536 CxPropertiesSource source
533 ); 537 );
534 538
539 #ifdef __cplusplus
540 } // extern "C"
541 #endif
542
535 #endif // UCX_PROPERTIES 543 #endif // UCX_PROPERTIES

mercurial