Index: dlg_library.c =================================================================== --- dlg_library.c (revision 36176) +++ dlg_library.c (revision 36177) @@ -60,19 +60,7 @@ typedef struct library_ctx_s library_ctx_t; typedef pcb_fplibrary_t library_ent_t; -typedef struct { - int pactive; /* already open - allow only one instance */ - int pwdesc; - RND_DAD_DECL_NOINIT(pdlg) - library_ent_t *last_l; - char *example, *help_params; - htsi_t param_names; /* param_name -> param_idx */ - int pwid[MAX_PARAMS]; /* param_idx -> widget_idx (for the input field widget) */ - char *pnames[MAX_PARAMS]; /* param_idx -> parameter_name (also key stored in the param_names hash */ - int num_params, first_optional; - gds_t descr; - library_ctx_t *lib_ctx; -} library_param_ctx_t; +#include "dlg_library_param.h" struct library_ctx_s { RND_DAD_DECL_NOINIT(dlg) Index: dlg_library_param.c =================================================================== --- dlg_library_param.c (revision 36176) +++ dlg_library_param.c (revision 36177) @@ -24,11 +24,8 @@ * mailing list: pcb-rnd (at) list.repo.hu (send "subscribe") */ -#include "config.h" - #include - static void library_param_close_cb(void *caller_data, rnd_hid_attr_ev_t ev) { library_param_ctx_t *ctx = caller_data; Index: dlg_library_param.h =================================================================== --- dlg_library_param.h (nonexistent) +++ dlg_library_param.h (revision 36177) @@ -0,0 +1,13 @@ +typedef struct { + int pactive; /* already open - allow only one instance */ + int pwdesc; + RND_DAD_DECL_NOINIT(pdlg) + library_ent_t *last_l; + char *example, *help_params; + htsi_t param_names; /* param_name -> param_idx */ + int pwid[MAX_PARAMS]; /* param_idx -> widget_idx (for the input field widget) */ + char *pnames[MAX_PARAMS]; /* param_idx -> parameter_name (also key stored in the param_names hash */ + int num_params, first_optional; + gds_t descr; + library_ctx_t *lib_ctx; +} library_param_ctx_t;