#define SUBSYSTEM APPLICATION_EXEC "_cmdline: "

/* This is the place for setting application command line switches if any,
   see struct cmdline_str_cnf_t in engine/cmdline.h. Do not remove define line
   above. */

static void cmd_app_galaxy_radius(char *);
static void cmd_app_galaxy_radius_def(void);
static void cmd_app_galaxy_arms(char *);
static void cmd_app_galaxy_arms_def(void);
static void cmd_app_galaxy_arm_length(char *);
static void cmd_app_galaxy_arm_length_def(void);
static void cmd_app_galaxy_steps(char *);
static void cmd_app_galaxy_steps_def(void);
static void cmd_app_galaxy_sigma(char *);
static void cmd_app_galaxy_sigma_def(void);
static void cmd_app_galaxy_dispersion(char *);
static void cmd_app_galaxy_dispersion_def(void);

static struct cmdline_str_cnf cmdline_str_cnf_t[] = {
	/* Insert command line switches here, use only 7bit ascii chars.

	   REMEMBER to start short option with one dash and long option
	   with two dashes. */

	{ "-gr", "--galaxy_radius",
		"Simulated galaxy radius.",
		CONFIG_OPTION_REQUIRED, CONFIG_OPTION_LOOSE, 0,
		NULL, cmd_app_galaxy_radius_def, cmd_app_galaxy_radius },
	{ "-ga", "--galaxy_arms",
		"Simulated galaxy arms.",
		CONFIG_OPTION_REQUIRED, CONFIG_OPTION_LOOSE, 0,
		NULL, cmd_app_galaxy_arms_def, cmd_app_galaxy_arms },
	{ "-ge", "--galaxy_arm_length",
		"Simulated galaxy arm length, increase to make more solar systems.",
		CONFIG_OPTION_REQUIRED, CONFIG_OPTION_LOOSE, 0,
		NULL, cmd_app_galaxy_arm_length_def, cmd_app_galaxy_arm_length },
	{ "-gs", "--galaxy_steps",
		"Simulated galaxy steps, increase to make less amount of solar systems.",
		CONFIG_OPTION_REQUIRED, CONFIG_OPTION_LOOSE, 0,
		NULL, cmd_app_galaxy_steps_def, cmd_app_galaxy_steps },
	{ "-gg", "--galaxy_sigma",
		"Simulated galaxy sigma.",
		CONFIG_OPTION_REQUIRED, CONFIG_OPTION_LOOSE, 0,
		NULL, cmd_app_galaxy_sigma_def, cmd_app_galaxy_sigma },
	{ "-gd", "--galaxy_dispersion",
		"Simulated galaxy dispersion.",
		CONFIG_OPTION_REQUIRED, CONFIG_OPTION_LOOSE, 0,
		NULL, cmd_app_galaxy_dispersion_def, cmd_app_galaxy_dispersion },

	{ NULL, NULL, NULL, 0, 0, 0, NULL, NULL, NULL }
};

/* conf_app.c */
int conf_get_type_app(char *);

/* engine/conf.c */
void conf_update_boolean_ext(char *, char *);
void conf_update_integer_ext(char *, char *);
void conf_update_float_ext(char *, char *);
void conf_update_string_ext(char *, char *);
void conf_update_color_ext(char *, char *);
