#endif
#include "verbose.h"
-#include "afb-config.h"
+#include "afb-args.h"
#include "afb-hook-flags.h"
#include "wrap-json.h"
#endif
}
-void afb_config_dump(struct json_object *config)
-{
- dump(config, stderr, "--", "CONFIG");
-}
-
static void on_environment(struct json_object *config, int optid, const char *name, void (*func)(struct json_object*, int, const char*))
{
char *value = getenv(name);
on_environment_bool(config, SET_TRAP_FAULTS, "AFB_TRAP_FAULTS");
}
-struct json_object *afb_config_parse_arguments(int argc, char **argv)
+struct json_object *afb_args_parse(int argc, char **argv)
{
struct json_object *result;
parse_arguments(argc, argv, result);
fulfill_config(result);
if (verbose_wants(Log_Level_Info))
- afb_config_dump(result);
+ dump(result, stderr, "--", "CONFIG");
return result;
}
-struct json_object *afb_config_json(struct json_object *config)
-{
- return NULL;
-}