Index: propedit/Makefile =================================================================== --- propedit/Makefile (revision 33268) +++ propedit/Makefile (revision 33269) @@ -12,13 +12,9 @@ CFLAGS = $(PCB_RND_C89FLAGS) -I$(PED) -I$(LHT) -I$(SRC) -I$(ROOT) -I$(ROOT)/src_3rd LDLIBS = -lm LIB_OBJS = \ - $(LHT)/genht/htsp.o \ - $(LHT)/genht/hash.o \ - $(LIBRND)/core/compat_misc.o \ - $(LIBRND)/core/misc_util.o \ - $(LIBRND)/core/rnd_printf.o \ - $(LIBRND)/core/unit.o \ - $(ROOT)/src_3rd/genvector/gds_char.o + $(SRC)/librnd-hid.a \ + $(SRC)/librnd-3rd.a \ + glue.o \ OBJS = tester.o $(PED)/props.o @@ -40,5 +36,8 @@ tester.out: tester ./tester > tester.out +glue.o: glue.c + $(CC) -c $(CFLAGS) glue.c -o glue.o + clean: -$(SCCBOX) rm -f tester.out tester $(OBJS) Index: propedit/glue.c =================================================================== --- propedit/glue.c (nonexistent) +++ propedit/glue.c (revision 33269) @@ -0,0 +1,73 @@ +#include +#include +#include + +/*** hidlib glue ***/ + +const char *rnd_hidlib_default_embedded_menu = ""; +const char *pcb_conf_internal = ""; +const char *rnd_menu_file_paths[] = { "./", NULL }; +const char *rnd_menu_name_fmt = "menu.lht"; + +const char *rnd_conf_userdir_path = "./"; +const char *rnd_pcphl_conf_user_path = "./conf.lht"; + +/* hack for running from ./ without internal version of the conf */ +const char *rnd_conf_sysdir_path = "./"; +const char *rnd_conf_sys_path = "./conf.lht"; + +const char *rnd_app_package = "librnd_test"; +const char *rnd_app_version = "0.0.0"; +const char *rnd_app_url = "n/a"; + + +typedef struct design_s { + rnd_hidlib_t hidlib; /* shall be the first */ +} design_t; + +design_t CTX; + +const pup_buildin_t local_buildins[] = { + {NULL, NULL, NULL, NULL, 0, NULL} +}; + +static const char *action_args[] = { + NULL, NULL, NULL, NULL, NULL /* terminator */ +}; + +void conf_core_init() +{ +} + +void rnd_hidlib_adjust_attached_objects(rnd_hidlib_t *hl) +{ +} + +void *rnd_hidlib_crosshair_suspend(rnd_hidlib_t *hl) +{ + return NULL; +} + +void rnd_hidlib_crosshair_restore(rnd_hidlib_t *hl, void *susp_data) +{ +} + +void rnd_hidlib_crosshair_move_to(rnd_hidlib_t *hl, rnd_coord_t abs_x, rnd_coord_t abs_y, int mouse_mot) +{ +} + +void rnd_draw_marks(rnd_hidlib_t *hidlib, rnd_bool inhibit_drawing_mode) +{ +} + +void rnd_draw_attached(rnd_hidlib_t *hidlib, rnd_bool inhibit_drawing_mode) +{ +} + +void rnd_expose_main(rnd_hid_t *hid, const rnd_hid_expose_ctx_t *region, rnd_xform_t *xform_caller) +{ +} + +void rnd_expose_preview(rnd_hid_t *hid, const rnd_hid_expose_ctx_t *e) +{ +}