X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fctf%2Ffs-src%2Ffs.h;h=6594b61153c8334fd8119affb2dfe818d948829d;hb=d907165ce769b0eba30683cd5a4565242f8884c3;hp=1ee4a6821e91bef0da3ca5f3c2fad15b11bd6f1b;hpb=5ec1bd5c3200e4eb986299bad81d15fc319b60e3;p=babeltrace.git diff --git a/plugins/ctf/fs-src/fs.h b/plugins/ctf/fs-src/fs.h index 1ee4a682..6594b611 100644 --- a/plugins/ctf/fs-src/fs.h +++ b/plugins/ctf/fs-src/fs.h @@ -204,10 +204,18 @@ int ctf_fs_component_create_ctf_fs_traces(bt_self_component_source *self_comp, BT_HIDDEN void ctf_fs_destroy(struct ctf_fs_component *ctf_fs); -/* Validate the "paths" parameter passed to this component. It must be - present, and it must be an array of strings. */ +/* + * Read and validate parameters taken by the src.ctf.fs plugin. + * + * - The mandatory `paths` parameter is returned in `*paths`. + * - The optional `clock-class-offset-s` and `clock-class-offset-ns`, if + * present, are recorded in the `ctf_fs` structure. + * + * Return true on success, false if any parameter didn't pass validation. + */ BT_HIDDEN -bool validate_paths_parameter(const bt_value *paths); +bool read_src_fs_parameters(const bt_value *params, + const bt_value **paths, struct ctf_fs_component *ctf_fs); #endif /* BABELTRACE_PLUGIN_CTF_FS_H */