#define SUBSYSTEM APPLICATION_EXEC "_dynload_bind: "

/* This is the place for defining optional helper stuff for dynload_bind_app.c.
   See engine/dynload_bind.h for live example. Do not remove define line
   above. */



#define DYNLOAD_UNIVERSE_SET_MESSAGE_PARAMS 1					/* Parameter count for functions */
#define DYNLOAD_UNIVERSE_CHK_MESSAGE_PARAMS 0
#define DYNLOAD_UNIVERSE_GET_MESSAGE_PARAMS 0
#define DYNLOAD_UNIVERSE_GET_DATE_PARAMS 0

#define DYNLOAD_GALAXY_GET_NAME_PARAMS 1
#define DYNLOAD_GALAXY_LIVE_PARAMS 5
#define DYNLOAD_GALAXY_LIVE_CLOSEST_PARAMS 3
#define DYNLOAD_GALAXY_PRINT_PARAMS 1

#define DYNLOAD_STAR_GET_NAME_PARAMS 2
#define DYNLOAD_STAR_LIVE_PARAMS 6
#define DYNLOAD_STAR_LIVE_CLOSEST_PARAMS 4
#define DYNLOAD_STAR_RENDER_PARAMS 3
#define DYNLOAD_STAR_STORE_PARAMS 3
#define DYNLOAD_STAR_PRINT_PARAMS 2

#define DYNLOAD_PLANET_GET_NAME_PARAMS 3
#define DYNLOAD_PLANET_LIVE_PARAMS 7
#define DYNLOAD_PLANET_LIVE_CLOSEST_PARAMS 5
#define DYNLOAD_PLANET_RENDER_PARAMS 4
#define DYNLOAD_PLANET_STORE_PARAMS 4
#define DYNLOAD_PLANET_PRINT_PARAMS 3

#define DYNLOAD_SATELLITE_GET_NAME_PARAMS 4

struct par_universe_set_message {
	char *message;
};

struct par_galaxy_get_name {
	unsigned long galaxy;
};

struct par_galaxy_live {
	unsigned int handle;

	unsigned long galaxy;

	double x, y, z;
};

struct par_galaxy_live_closest {
	unsigned long galaxy;

	double x, y;
};

struct par_galaxy_print {
	unsigned long galaxy;
};

struct par_star_get_name {
	unsigned long galaxy;
	unsigned long star;
};

struct par_star_live {
	unsigned int handle;

	unsigned long galaxy;
	unsigned long star;

	double x, y, z;
};

struct par_star_live_closest {
	unsigned long galaxy;
	unsigned long star;

	double x, y;
};

struct par_star_render {
	unsigned int handle;

	unsigned long galaxy;
	unsigned long star;
};

struct par_star_store {
	unsigned long galaxy;
	unsigned long star;

	char *path;
};

struct par_star_print {
	unsigned long galaxy;
	unsigned long star;
};

struct par_planet_get_name {
	unsigned long galaxy;
	unsigned long star;
	unsigned long planet;
};

struct par_planet_live {
	unsigned int handle;

	unsigned long galaxy;
	unsigned long star;
	unsigned long planet;

	double x, y, z;
};

struct par_planet_live_closest {
	unsigned long galaxy;
	unsigned long star;
	unsigned long planet;

	double x, y;
};

struct par_planet_render {
	unsigned int handle;

	unsigned long galaxy;
	unsigned long star;
	unsigned long planet;
};

struct par_planet_store {
	unsigned long galaxy;
	unsigned long star;
	unsigned long planet;

	char *path;
};

struct par_planet_print {
	unsigned long galaxy;
	unsigned long star;
	unsigned long planet;
};

struct par_satellite_get_name {
	unsigned long galaxy;
	unsigned long star;
	unsigned long planet;
	unsigned long satellite;
};

static int dynload_universe_set_message_pre(struct a_funcs *, struct par_universe_set_message *);
static int dynload_universe_chk_message_pre(struct a_funcs *);
static int dynload_universe_get_message_pre(struct a_funcs *);
static int dynload_universe_get_date_pre(struct a_funcs *);

static int dynload_galaxy_get_name_pre(struct a_funcs *, struct par_galaxy_get_name *);
static int dynload_galaxy_live_pre(struct a_funcs *, struct par_galaxy_live *);
static int dynload_galaxy_live_closest_pre(struct a_funcs *, struct par_galaxy_live_closest *);
static int dynload_galaxy_print_pre(struct a_funcs *, struct par_galaxy_print *);

static int dynload_star_get_name_pre(struct a_funcs *, struct par_star_get_name *);
static int dynload_star_live_pre(struct a_funcs *, struct par_star_live *);
static int dynload_star_live_closest_pre(struct a_funcs *, struct par_star_live_closest *);
static int dynload_star_render_pre(struct a_funcs *, struct par_star_render *);
static int dynload_star_store_pre(struct a_funcs *, struct par_star_store *);
static int dynload_star_print_pre(struct a_funcs *, struct par_star_print *);

static int dynload_planet_get_name_pre(struct a_funcs *, struct par_planet_get_name *);
static int dynload_planet_live_pre(struct a_funcs *, struct par_planet_live *);
static int dynload_planet_live_closest_pre(struct a_funcs *, struct par_planet_live_closest *);
static int dynload_planet_render_pre(struct a_funcs *, struct par_planet_render *);
static int dynload_planet_store_pre(struct a_funcs *, struct par_planet_store *);
static int dynload_planet_print_pre(struct a_funcs *, struct par_planet_print *);

static int dynload_satellite_get_name_pre(struct a_funcs *, struct par_satellite_get_name *);
