.gitignore: ignore local vscode workspace settings file
[lttng-tools.git] / src / common / ini-config / ini-config.hpp
index 3e4160596d339c18c8f9328a8910d0eb552a34df..3e6c85187551d3e6334366c781fadc0e2470e636 100644 (file)
@@ -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.
This page took 0.024427 seconds and 4 git commands to generate.