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