Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions include/lsl/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,23 @@ extern LIBLSL_C_API double lsl_local_clock();
* no free() method is available (e.g., in some scripting languages).
*/
extern LIBLSL_C_API void lsl_destroy_string(char *s);

/**
* Set the path of the configuration file to be used by liblsl.
*
* This must be called before any other LSL function; otherwise the setting
* has no effect, as the configuration is loaded lazily on first use.
* See also the precedence list in api_config.h.
*/
extern LIBLSL_C_API void lsl_set_config_filename(const char *filename);

/**
* Set the configuration content (as an INI string) to be used by liblsl.
*
* This must be called before any other LSL function; otherwise the setting
* has no effect, as the configuration is loaded lazily on first use.
* When set, this content takes precedence over any configuration file.
*
* @note The content is discarded after liblsl has initialized.
*/
extern LIBLSL_C_API void lsl_set_config_content(const char *content);
Loading
Loading