*
*/
-#include "ini-config.h"
+#include "ini-config.hpp"
-#include <common/defaults.h>
-#include <common/error.h>
-#include <common/ini-config/ini.h>
-#include <common/macros.h>
-#include <common/utils.h>
+#include <common/defaults.hpp>
+#include <common/error.hpp>
+#include <common/ini-config/ini.hpp>
+#include <common/macros.hpp>
+#include <common/utils.hpp>
#include <ctype.h>
LTTNG_EXPORT const char *config_str_yes = "yes";
LTTNG_EXPORT const char *config_str_false = "false";
LTTNG_EXPORT const char *config_str_off = "off";
+namespace {
struct handler_filter_args {
const char* section;
config_entry_handler_cb handler;
void *user_data;
};
+} /* namespace */
static int config_entry_handler_filter(struct handler_filter_args *args,
const char *section, const char *name, const char *value)
goto end;
}
- lower_str = (char *) zmalloc(len + 1);
+ lower_str = zmalloc<char>(len + 1);
if (!lower_str) {
PERROR("zmalloc");
ret = -errno;