Revision: 76391
          http://sourceforge.net/p/brlcad/code/76391
Author:   starseeker
Date:     2020-07-21 16:36:56 +0000 (Tue, 21 Jul 2020)
Log Message:
-----------
Plugins use a lot of otherwise internal API across a shared library interface, 
and with the hidden feature on we need to export the "internal" functions so 
the plugins can see them.

Modified Paths:
--------------
    brlcad/branches/gedplugins/src/libged/ged_private.h

Modified: brlcad/branches/gedplugins/src/libged/ged_private.h
===================================================================
--- brlcad/branches/gedplugins/src/libged/ged_private.h 2020-07-21 16:20:13 UTC 
(rev 76390)
+++ brlcad/branches/gedplugins/src/libged/ged_private.h 2020-07-21 16:36:56 UTC 
(rev 76391)
@@ -144,10 +144,10 @@
 
 
 void vls_col_item(struct bu_vls *str, const char *cp);
-void vls_col_eol(struct bu_vls *str);
+GED_EXPORT void vls_col_eol(struct bu_vls *str);
 
 /* defined in facedef.c */
-extern int edarb_facedef(void *data, int argc, const char *argv[]);
+GED_EXPORT extern int edarb_facedef(void *data, int argc, const char *argv[]);
 
 /* defined in ged.c */
 extern void _ged_print_node(struct ged *gedp,
@@ -158,11 +158,11 @@
                            unsigned flags,
                            int displayDepth,
                            int currdisplayDepth);
-extern struct db_i *_ged_open_dbip(const char *filename,
+GED_EXPORT extern struct db_i *_ged_open_dbip(const char *filename,
                                   int existing_only);
 
 /* defined in comb.c */
-extern struct directory *_ged_combadd(struct ged *gedp,
+GED_EXPORT extern struct directory *_ged_combadd(struct ged *gedp,
                                      struct directory *objp,
                                      char *combname,
                                      int region_flag,
@@ -169,7 +169,7 @@
                                      db_op_t relation,
                                      int ident,
                                      int air);
-extern int _ged_combadd2(struct ged *gedp,
+GED_EXPORT extern int _ged_combadd2(struct ged *gedp,
                         char *combname,
                         int argc,
                         const char *argv[],
@@ -181,11 +181,11 @@
                         int validate);
 
 /* defined in display_list.c */
-extern void _dl_eraseAllNamesFromDisplay(struct bu_list *hdlp, struct db_i 
*dbip,
+GED_EXPORT extern void _dl_eraseAllNamesFromDisplay(struct bu_list *hdlp, 
struct db_i *dbip,
                void (*callback)(unsigned int, int),
                                          const char *name,
                                          const int skip_first, struct solid 
*freesolid);
-extern void _dl_eraseAllPathsFromDisplay(struct bu_list *hdlp, struct db_i 
*dbip,
+GED_EXPORT extern void _dl_eraseAllPathsFromDisplay(struct bu_list *hdlp, 
struct db_i *dbip,
                void (*callback)(unsigned int, int),
                                          const char *path,
                                          const int skip_first, struct solid 
*freesolid);
@@ -193,7 +193,7 @@
                void (*callback)(unsigned int, int),
                                     struct display_list *gdlp, struct solid 
*freesolid);
 extern int headsolid_splitGDL(struct bu_list *hdlp, struct db_i *dbip, struct 
display_list *gdlp, struct db_full_path *path);
-extern int dl_bounding_sph(struct bu_list *hdlp, vect_t *min, vect_t *max, int 
pflag);
+GED_EXPORT extern int dl_bounding_sph(struct bu_list *hdlp, vect_t *min, 
vect_t *max, int pflag);
 /* Returns a bu_ptbl of all solids referenced by the display list */
 extern struct bu_ptbl *dl_get_solids(struct display_list *gdlp);
 
@@ -200,29 +200,29 @@
 extern void dl_add_path(struct display_list *gdlp, int dashflag, fastf_t 
transparency, int dmode, int hiddenLine, struct bu_list *vhead, const struct 
db_full_path *pathp, struct db_tree_state *tsp, unsigned char 
*wireframe_color_override, void (*callback)(struct solid *), struct solid 
*freesolid);
 
 extern int dl_redraw(struct display_list *gdlp, struct db_i *dbip, struct 
db_tree_state *tsp, struct bview *gvp, void (*callback)(struct display_list *), 
int skip_subtractions);
-extern union tree * append_solid_to_display_list(struct db_tree_state *tsp, 
const struct db_full_path *pathp, struct rt_db_internal *ip, void *client_data);
-int dl_set_illum(struct display_list *gdlp, const char *obj, int illum);
+GED_EXPORT extern union tree * append_solid_to_display_list(struct 
db_tree_state *tsp, const struct db_full_path *pathp, struct rt_db_internal 
*ip, void *client_data);
+GED_EXPORT int dl_set_illum(struct display_list *gdlp, const char *obj, int 
illum);
 void dl_set_flag(struct bu_list *hdlp, int flag);
-void dl_set_wflag(struct bu_list *hdlp, int wflag);
-void dl_zap(struct bu_list *hdlp, struct db_i *dbip, void (*callback)(unsigned 
int, int), struct solid *freesolid);
-int dl_how(struct bu_list *hdlp, struct bu_vls *vls, struct directory **dpp, 
int both);
-void dl_plot(struct bu_list *hdlp, FILE *fp, mat_t model2view, int floating, 
mat_t center, fastf_t scale, int Three_D, int Z_clip);
-void dl_png(struct bu_list *hdlp, mat_t model2view, fastf_t perspective, 
vect_t eye_pos, size_t size, size_t half_size, unsigned char **image);
+GED_EXPORT void dl_set_wflag(struct bu_list *hdlp, int wflag);
+GED_EXPORT void dl_zap(struct bu_list *hdlp, struct db_i *dbip, void 
(*callback)(unsigned int, int), struct solid *freesolid);
+GED_EXPORT int dl_how(struct bu_list *hdlp, struct bu_vls *vls, struct 
directory **dpp, int both);
+GED_EXPORT void dl_plot(struct bu_list *hdlp, FILE *fp, mat_t model2view, int 
floating, mat_t center, fastf_t scale, int Three_D, int Z_clip);
+GED_EXPORT void dl_png(struct bu_list *hdlp, mat_t model2view, fastf_t 
perspective, vect_t eye_pos, size_t size, size_t half_size, unsigned char 
**image);
 
 #define PS_COORD(_x) ((int)((_x)+2048))
 #define PS_COLOR(_c) ((_c)*(1.0/255.0))
-void dl_ps(struct bu_list *hdlp, FILE *fp, int border, char *font, char 
*title, char *creator, int linewidth, fastf_t scale, int xoffset, int yoffset, 
mat_t model2view, fastf_t perspective, vect_t eye_pos, float red, float green, 
float blue);
+GED_EXPORT void dl_ps(struct bu_list *hdlp, FILE *fp, int border, char *font, 
char *title, char *creator, int linewidth, fastf_t scale, int xoffset, int 
yoffset, mat_t model2view, fastf_t perspective, vect_t eye_pos, float red, 
float green, float blue);
 
 
-void dl_print_schain(struct bu_list *hdlp, struct db_i *dbip, int lvl, int 
vlcmds, struct bu_vls *vls);
+GED_EXPORT void dl_print_schain(struct bu_list *hdlp, struct db_i *dbip, int 
lvl, int vlcmds, struct bu_vls *vls);
 
-void dl_bitwise_and_fullpath(struct bu_list *hdlp, int flag);
+GED_EXPORT void dl_bitwise_and_fullpath(struct bu_list *hdlp, int flag);
 
 void dl_write_animate(struct bu_list *hdlp, FILE *fp);
 
 int dl_select(struct bu_list *hdlp, mat_t model2view, struct bu_vls *vls, 
double vx, double vy, double vwidth, double vheight, int rflag);
-int dl_select_partial(struct bu_list *hdlp, mat_t model2view, struct bu_vls 
*vls, double vx, double vy, double vwidth, double vheight, int rflag);
-void dl_set_transparency(struct bu_list *hdlp, struct directory **dpp, double 
transparency, void (*callback)(struct display_list *));
+GED_EXPORT int dl_select_partial(struct bu_list *hdlp, mat_t model2view, 
struct bu_vls *vls, double vx, double vy, double vwidth, double vheight, int 
rflag);
+GED_EXPORT void dl_set_transparency(struct bu_list *hdlp, struct directory 
**dpp, double transparency, void (*callback)(struct display_list *));
 
 enum otype {
     OTYPE_DXF = 1,
@@ -231,11 +231,11 @@
     OTYPE_STL
 };
 void _ged_bot_dump(struct directory *dp, const struct db_full_path *pathp, 
struct rt_bot_internal *bot, FILE *fp, int fd, const char *file_ext, const char 
*db_name);
-void dl_botdump(struct bu_list *hdlp, struct db_i *dbip, FILE *fp, int fd, 
char *file_ext, int output_type, int *red, int *green, int *blue, fastf_t 
*alpha);
+GED_EXPORT void dl_botdump(struct bu_list *hdlp, struct db_i *dbip, FILE *fp, 
int fd, char *file_ext, int output_type, int *red, int *green, int *blue, 
fastf_t *alpha);
 
 
 /* defined in draw.c */
-extern void _ged_cvt_vlblock_to_solids(struct ged *gedp,
+GED_EXPORT extern void _ged_cvt_vlblock_to_solids(struct ged *gedp,
                                       struct bn_vlblock *vbp,
                                       const char *name,
                                       int copy);
@@ -244,7 +244,7 @@
                          const char *argv[],
                          int kind,
                          struct _ged_client_data *_dgcdp);
-extern void _ged_drawH_part2(int dashflag,
+GED_EXPORT extern void _ged_drawH_part2(int dashflag,
                             struct bu_list *vhead,
                             const struct db_full_path *pathp,
                             struct db_tree_state *tsp,
@@ -262,7 +262,7 @@
 
 
 /* defined in editit.c */
-extern int _ged_editit(const char *editstring,
+GED_EXPORT extern int _ged_editit(const char *editstring,
                       const char *file);
 
 /* defined in erase.c */
@@ -279,7 +279,7 @@
                          struct directory **dpp,
                          int skip_first);
 
-extern int _ged_get_obj_bounds2(struct ged *gedp,
+GED_EXPORT extern int _ged_get_obj_bounds2(struct ged *gedp,
                                int argc,
                                const char *argv[],
                                struct _ged_trace_data *gtdp,
@@ -287,7 +287,7 @@
                                point_t rpp_max);
 
 /*  defined in get_solid_kp.c */
-extern int _ged_get_solid_keypoint(struct ged *const gedp,
+GED_EXPORT extern int _ged_get_solid_keypoint(struct ged *const gedp,
                                   fastf_t *const pt,
                                   const struct rt_db_internal *const ip,
                                   const fastf_t *const mat);
@@ -304,7 +304,7 @@
                                         const char *path);
 
 /* defined in list.c */
-extern void _ged_do_list(struct ged *gedp,
+GED_EXPORT extern void _ged_do_list(struct ged *gedp,
                         struct directory *dp,
                         int verbose);
 
@@ -340,12 +340,12 @@
 
 
 /* defined in rt.c */
-extern void
+GED_EXPORT extern void
 _ged_rt_output_handler(void *clientData, int mask);
 
-extern void _ged_rt_set_eye_model(struct ged *gedp,
+GED_EXPORT extern void _ged_rt_set_eye_model(struct ged *gedp,
                                  vect_t eye_model);
-extern int _ged_run_rt(struct ged *gdp, int cmd_len, const char **gd_rt_cmd, 
int argc, const char **argv);
+GED_EXPORT extern int _ged_run_rt(struct ged *gdp, int cmd_len, const char 
**gd_rt_cmd, int argc, const char **argv);
 extern void _ged_rt_write(struct ged *gedp,
                          FILE *fp,
                          vect_t eye_model,
@@ -423,12 +423,12 @@
                          int rflag);
 
 /* defined in edit_metaball.c */
-extern int _ged_scale_metaball(struct ged *gedp,
+GED_EXPORT extern int _ged_scale_metaball(struct ged *gedp,
                               struct rt_metaball_internal *mbip,
                               const char *attribute,
                               fastf_t sf,
                               int rflag);
-extern int _ged_set_metaball(struct ged *gedp,
+GED_EXPORT extern int _ged_set_metaball(struct ged *gedp,
                             struct rt_metaball_internal *mbip,
                             const char *attribute,
                             fastf_t sf);
@@ -488,7 +488,7 @@
                  int num_entries);
 
 /* defined in translate_extrude.c */
-extern int _ged_translate_extrude(struct ged *gedp,
+GED_EXPORT extern int _ged_translate_extrude(struct ged *gedp,
                                  struct rt_extrude_internal *extrude,
                                  const char *attribute,
                                  vect_t tvec,
@@ -502,14 +502,14 @@
                              int rflag);
 
 /* defined in vutil.c */
-extern void _ged_mat_aet(struct bview *gvp);
-extern int _ged_do_rot(struct ged *gedp,
+GED_EXPORT extern void _ged_mat_aet(struct bview *gvp);
+GED_EXPORT extern int _ged_do_rot(struct ged *gedp,
                       char coord,
                       mat_t rmat,
                       int (*func)());
-extern int _ged_do_slew(struct ged *gedp,
+GED_EXPORT extern int _ged_do_slew(struct ged *gedp,
                        vect_t svec);
-extern int _ged_do_tra(struct ged *gedp,
+GED_EXPORT extern int _ged_do_tra(struct ged *gedp,
                       char coord,
                       vect_t tvec,
                       int (*func)());
@@ -548,7 +548,7 @@
  * Given two pointers to pointers to directory entries, compare
  * the dp->d_len sizes.
  */
-extern int cmpdlen(const void *a, const void *b, void *arg);
+GED_EXPORT extern int cmpdlen(const void *a, const void *b, void *arg);
 
 
 /**
@@ -556,7 +556,7 @@
  * names in that list, sort and print that list in column order over
  * four columns.
  */
-extern void _ged_vls_col_pr4v(struct bu_vls *vls,
+GED_EXPORT extern void _ged_vls_col_pr4v(struct bu_vls *vls,
                              struct directory **list_of_names,
                              size_t num_in_list,
                              int no_decorate,
@@ -574,10 +574,10 @@
 /**
  * Routine for generic command help printing.
  */
-extern void _ged_cmd_help(struct ged *gedp, const char *usage, struct 
bu_opt_desc *d);
+GED_EXPORT extern void _ged_cmd_help(struct ged *gedp, const char *usage, 
struct bu_opt_desc *d);
 
 /* Option for verbosity variable setting */
-extern int _ged_vopt(struct bu_vls *msg, size_t argc, const char **argv, void 
*set_var);
+GED_EXPORT extern int _ged_vopt(struct bu_vls *msg, size_t argc, const char 
**argv, void *set_var);
 
 /* Function to read in density information, either from a file or from the
  * database itself. Implements the following priority order:
@@ -592,7 +592,7 @@
  * the "mater -d load" command.
  *
  */
-extern int _ged_read_densities(struct analyze_densities **dens, char 
**den_src, struct ged *gedp, const char *filename, int fault_tolerant);
+GED_EXPORT extern int _ged_read_densities(struct analyze_densities **dens, 
char **den_src, struct ged *gedp, const char *filename, int fault_tolerant);
 
 #define GED_DB_DENSITY_OBJECT "_DENSITIES" 
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to