X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fini-config%2Fini-config.hpp;h=3e6c85187551d3e6334366c781fadc0e2470e636;hb=HEAD;hp=3e4160596d339c18c8f9328a8910d0eb552a34df;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/common/ini-config/ini-config.hpp b/src/common/ini-config/ini-config.hpp index 3e4160596..3e6c85187 100644 --- a/src/common/ini-config/ini-config.hpp +++ b/src/common/ini-config/ini-config.hpp @@ -25,7 +25,7 @@ struct config_entry { * config_entry_handler_cb may return negative value to indicate an error in * the configuration file. */ -typedef int (*config_entry_handler_cb)(const struct config_entry *, void *); +using config_entry_handler_cb = int (*)(const struct config_entry *, void *); /* * Read a section's entries in an INI configuration file. @@ -41,8 +41,10 @@ typedef int (*config_entry_handler_cb)(const struct config_entry *, void *); * Returns 0 on success. Negative values are error codes. If the return value * is positive, it represents the line number on which a parsing error occurred. */ -int config_get_section_entries(const char *path, const char *section, - config_entry_handler_cb handler, void *user_data); +int config_get_section_entries(const char *path, + const char *section, + config_entry_handler_cb handler, + void *user_data); /* * Parse a configuration value.