From: cherierm Date: Wed, 7 Feb 2007 16:55:26 +0000 (+0000) Subject: do not export the functions of this header in the dll X-Git-Tag: v3.3~2250 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/21a7d9d709c8be0902ff2364b939da5a5916ee97 do not export the functions of this header in the dll git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3109 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/amok/Bandwidth/bandwidth_private.h b/src/amok/Bandwidth/bandwidth_private.h index 65c3240da7..1ddcc245e8 100644 --- a/src/amok/Bandwidth/bandwidth_private.h +++ b/src/amok/Bandwidth/bandwidth_private.h @@ -16,13 +16,13 @@ #include "gras.h" #include "amok/bandwidth.h" -XBT_PUBLIC(void) amok_bw_bw_init(void); /* Must be called only once per node */ -XBT_PUBLIC(void) amok_bw_bw_join(void); /* Each process must run it */ -XBT_PUBLIC(void) amok_bw_bw_leave(void);/* Each process must run it */ +void amok_bw_bw_init(void); /* Must be called only once per node */ +void amok_bw_bw_join(void); /* Each process must run it */ +void amok_bw_bw_leave(void);/* Each process must run it */ -XBT_PUBLIC(void) amok_bw_sat_init(void); /* Must be called only once per node */ -XBT_PUBLIC(void) amok_bw_sat_join(void); /* Each process must run it */ -XBT_PUBLIC(void) amok_bw_sat_leave(void);/* Each process must run it */ +void amok_bw_sat_init(void); /* Must be called only once per node */ +void amok_bw_sat_join(void); /* Each process must run it */ +void amok_bw_sat_leave(void);/* Each process must run it */ /*** * Plain bandwidth measurement stuff @@ -60,7 +60,7 @@ typedef struct { unsigned int duration; } s_sat_request_t,*sat_request_t; -XBT_PUBLIC(void) amok_bw_sat_start(const char* from_name,unsigned int from_port, +void amok_bw_sat_start(const char* from_name,unsigned int from_port, const char* to_name,unsigned int to_port, unsigned int msg_size, unsigned int duration); diff --git a/src/gras/Virtu/virtu_interface.h b/src/gras/Virtu/virtu_interface.h index e0a3fb16f5..2d78570389 100644 --- a/src/gras/Virtu/virtu_interface.h +++ b/src/gras/Virtu/virtu_interface.h @@ -20,18 +20,18 @@ #include "gras/process.h" /* shutdown the module mechanism (world-wide cleanups) */ -XBT_PUBLIC(void) gras_moddata_exit(void); +void gras_moddata_exit(void); /* shutdown this process wrt module mecanism (process-wide cleanups) */ -XBT_PUBLIC(void) gras_moddata_leave(void); +void gras_moddata_leave(void); /* This is the old interface (deprecated) */ /* declare a new process specific data (used by gras__register to make sure that gras_process_init will create it) */ -XBT_PUBLIC(int) gras_procdata_add(const char *name, pvoid_f_void_t creator,void_f_pvoid_t destructor); +int gras_procdata_add(const char *name, pvoid_f_void_t creator,void_f_pvoid_t destructor); -XBT_PUBLIC(void*) gras_libdata_by_name(const char *name); -XBT_PUBLIC(void*) gras_libdata_by_id(int id); +void* gras_libdata_by_name(const char *name); +void* gras_libdata_by_id(int id); #endif /* GRAS_VIRTU_INTERFACE_H */ diff --git a/src/include/surf/maxmin.h b/src/include/surf/maxmin.h index 5049661dae..3f3fc0aebd 100644 --- a/src/include/surf/maxmin.h +++ b/src/include/surf/maxmin.h @@ -20,56 +20,56 @@ typedef struct lmm_variable *lmm_variable_t; typedef struct lmm_constraint *lmm_constraint_t; typedef struct lmm_system *lmm_system_t; -XBT_PUBLIC(lmm_system_t) lmm_system_new(void); -XBT_PUBLIC(void) lmm_system_free(lmm_system_t sys); -XBT_PUBLIC(void) lmm_variable_disable(lmm_system_t sys, lmm_variable_t var); +lmm_system_t lmm_system_new(void); +void lmm_system_free(lmm_system_t sys); +void lmm_variable_disable(lmm_system_t sys, lmm_variable_t var); -XBT_PUBLIC(lmm_constraint_t) lmm_constraint_new(lmm_system_t sys, void *id, +lmm_constraint_t lmm_constraint_new(lmm_system_t sys, void *id, double bound_value); -XBT_PUBLIC(void) lmm_constraint_shared(lmm_constraint_t cnst); +void lmm_constraint_shared(lmm_constraint_t cnst); -XBT_PUBLIC(void) lmm_constraint_free(lmm_system_t sys, lmm_constraint_t cnst); +void lmm_constraint_free(lmm_system_t sys, lmm_constraint_t cnst); -XBT_PUBLIC(lmm_variable_t) lmm_variable_new(lmm_system_t sys, void *id, +lmm_variable_t lmm_variable_new(lmm_system_t sys, void *id, double weight_value, double bound, int number_of_constraints); -XBT_PUBLIC(void) lmm_variable_free(lmm_system_t sys, lmm_variable_t var); -XBT_PUBLIC(double) lmm_variable_getvalue(lmm_variable_t var); +void lmm_variable_free(lmm_system_t sys, lmm_variable_t var); +double lmm_variable_getvalue(lmm_variable_t var); -XBT_PUBLIC(void) lmm_expand(lmm_system_t sys, lmm_constraint_t cnst, +void lmm_expand(lmm_system_t sys, lmm_constraint_t cnst, lmm_variable_t var, double value); -XBT_PUBLIC(void) lmm_expand_add(lmm_system_t sys, lmm_constraint_t cnst, +void lmm_expand_add(lmm_system_t sys, lmm_constraint_t cnst, lmm_variable_t var, double value); -XBT_PUBLIC(void) lmm_elem_set_value(lmm_system_t sys, lmm_constraint_t cnst, +void lmm_elem_set_value(lmm_system_t sys, lmm_constraint_t cnst, lmm_variable_t var, double value); -XBT_PUBLIC(lmm_constraint_t) lmm_get_cnst_from_var(lmm_system_t sys, +lmm_constraint_t) lmm_get_cnst_from_var(lmm_system_t sys, lmm_variable_t var, int num); -XBT_PUBLIC(int) lmm_get_number_of_cnst_from_var(lmm_system_t sys, lmm_variable_t var); -XBT_PUBLIC(lmm_variable_t) lmm_get_var_from_cnst(lmm_system_t sys, +int lmm_get_number_of_cnst_from_var(lmm_system_t sys, lmm_variable_t var); +lmm_variable_t lmm_get_var_from_cnst(lmm_system_t sys, lmm_constraint_t cnst, lmm_variable_t * var); -XBT_PUBLIC(lmm_constraint_t) lmm_get_first_active_constraint(lmm_system_t sys); -XBT_PUBLIC(lmm_constraint_t) lmm_get_next_active_constraint(lmm_system_t sys, lmm_constraint_t cnst); +lmm_constraint_t lmm_get_first_active_constraint(lmm_system_t sys); +lmm_constraint_t lmm_get_next_active_constraint(lmm_system_t sys, lmm_constraint_t cnst); -XBT_PUBLIC(void) *lmm_constraint_id(lmm_constraint_t cnst); -XBT_PUBLIC(void) *lmm_variable_id(lmm_variable_t var); +void *lmm_constraint_id(lmm_constraint_t cnst); +void *lmm_variable_id(lmm_variable_t var); -XBT_PUBLIC(void) lmm_update(lmm_system_t sys, lmm_constraint_t cnst, +void lmm_update(lmm_system_t sys, lmm_constraint_t cnst, lmm_variable_t var, double value); -XBT_PUBLIC(void) lmm_update_variable_bound(lmm_system_t sys, lmm_variable_t var, +void lmm_update_variable_bound(lmm_system_t sys, lmm_variable_t var, double bound); -XBT_PUBLIC(void) lmm_update_variable_weight(lmm_system_t sys, lmm_variable_t var, +void lmm_update_variable_weight(lmm_system_t sys, lmm_variable_t var, double weight); -XBT_PUBLIC(double) lmm_get_variable_weight(lmm_variable_t var); +double lmm_get_variable_weight(lmm_variable_t var); -XBT_PUBLIC(void) lmm_update_constraint_bound(lmm_system_t sys, lmm_constraint_t cnst, +void lmm_update_constraint_bound(lmm_system_t sys, lmm_constraint_t cnst, double bound); -XBT_PUBLIC(int) lmm_constraint_used(lmm_system_t sys, lmm_constraint_t cnst); +int lmm_constraint_used(lmm_system_t sys, lmm_constraint_t cnst); -XBT_PUBLIC(void) lmm_solve(lmm_system_t sys); -XBT_PUBLIC(void) sdp_solve(lmm_system_t sys); +void lmm_solve(lmm_system_t sys); +void sdp_solve(lmm_system_t sys); #endif /* _SURF_MAXMIN_H */ diff --git a/src/include/surf/surf.h b/src/include/surf/surf.h index 6397cf694d..81f52993ce 100644 --- a/src/include/surf/surf.h +++ b/src/include/surf/surf.h @@ -168,7 +168,7 @@ extern surf_timer_resource_t surf_timer_resource; /** \brief Initializes the timer resource * \ingroup SURF_resources */ -XBT_PUBLIC(void) surf_timer_resource_init(const char *filename); +void surf_timer_resource_init(const char *filename); /* Cpu resource */ @@ -216,7 +216,7 @@ extern surf_cpu_resource_t surf_cpu_resource; * * \see surf_workstation_resource_init_CLM03() */ -XBT_PUBLIC(void) surf_cpu_resource_init_Cas01(const char *filename); +void surf_cpu_resource_init_Cas01(const char *filename); /* Network resource */ @@ -264,7 +264,7 @@ extern surf_network_resource_t surf_network_resource; * * \see surf_workstation_resource_init_CLM03() */ -XBT_PUBLIC(void) surf_network_resource_init_CM02(const char *filename); +void surf_network_resource_init_CM02(const char *filename); /** \brief Workstation resource extension public * \ingroup SURF_resources @@ -327,7 +327,7 @@ extern surf_workstation_resource_t surf_workstation_resource; * * \see surf_workstation_resource_init_KCCFLN05() */ -XBT_PUBLIC(void) surf_workstation_resource_init_CLM03(const char *filename); +void surf_workstation_resource_init_CLM03(const char *filename); /** \brief Initializes the platform with the model KCCFLN05 * \ingroup SURF_resources diff --git a/src/include/surf/surfxml_parse_private.h b/src/include/surf/surfxml_parse_private.h index 1cb1d147c2..c1ec2a8eee 100644 --- a/src/include/surf/surfxml_parse_private.h +++ b/src/include/surf/surfxml_parse_private.h @@ -14,6 +14,6 @@ #include "surf/surfxml_parse.h" #include "surf/trace_mgr.h" -XBT_PUBLIC(void) surf_parse_get_trace(tmgr_trace_t *trace, const char *string); +void surf_parse_get_trace(tmgr_trace_t *trace, const char *string); #endif diff --git a/src/include/surf/trace_mgr.h b/src/include/surf/trace_mgr.h index a6420463d7..b5af71f824 100644 --- a/src/include/surf/trace_mgr.h +++ b/src/include/surf/trace_mgr.h @@ -17,25 +17,25 @@ typedef struct tmgr_trace *tmgr_trace_t; typedef struct tmgr_trace_event *tmgr_trace_event_t; /* Creation functions */ -XBT_PUBLIC(tmgr_history_t) tmgr_history_new(void); -XBT_PUBLIC(void) tmgr_history_free(tmgr_history_t history); +tmgr_history_t tmgr_history_new(void); +void tmgr_history_free(tmgr_history_t history); -XBT_PUBLIC(tmgr_trace_t) tmgr_trace_new(const char *filename); -XBT_PUBLIC(tmgr_trace_t) tmgr_empty_trace_new(void); -XBT_PUBLIC(void) tmgr_trace_free(tmgr_trace_t trace); +tmgr_trace_t tmgr_trace_new(const char *filename); +tmgr_trace_t tmgr_empty_trace_new(void); +void tmgr_trace_free(tmgr_trace_t trace); -XBT_PUBLIC(tmgr_trace_event_t) tmgr_history_add_trace(tmgr_history_t history, +tmgr_trace_event_t tmgr_history_add_trace(tmgr_history_t history, tmgr_trace_t trace, double start_time, int offset, void *resource); /* Access functions */ -XBT_PUBLIC(double) tmgr_history_next_date(tmgr_history_t history); -XBT_PUBLIC(tmgr_trace_event_t) tmgr_history_get_next_event_leq(tmgr_history_t history, +double tmgr_history_next_date(tmgr_history_t history); +tmgr_trace_event_t tmgr_history_get_next_event_leq(tmgr_history_t history, double date, double *value, void **resource); -XBT_PUBLIC(void) tmgr_finalize(void); +void tmgr_finalize(void); #endif /* _SURF_TMGR_H */ diff --git a/src/include/xbt/context.h b/src/include/xbt/context.h index 74bc458575..1728a02b5d 100644 --- a/src/include/xbt/context.h +++ b/src/include/xbt/context.h @@ -31,16 +31,16 @@ /* @}*/ -XBT_PUBLIC(void) xbt_context_init(void); -XBT_PUBLIC(void) xbt_context_exit(void); -XBT_PUBLIC(void) xbt_context_empty_trash(void); -XBT_PUBLIC(xbt_context_t) xbt_context_new(xbt_context_function_t code, +void xbt_context_init(void); +void xbt_context_exit(void); +void xbt_context_empty_trash(void); +xbt_context_t xbt_context_new(xbt_context_function_t code, void_f_pvoid_t startup_func, void *startup_arg, void_f_pvoid_t cleanup_func, void *cleanup_arg, int argc, char *argv[]); -XBT_PUBLIC(void) xbt_context_free(xbt_context_t context); -XBT_PUBLIC(void) xbt_context_start(xbt_context_t context); -XBT_PUBLIC(void) xbt_context_yield(void); -XBT_PUBLIC(void) xbt_context_schedule(xbt_context_t context); +void xbt_context_free(xbt_context_t context); +void xbt_context_start(xbt_context_t context); +void xbt_context_yield(void); +void xbt_context_schedule(xbt_context_t context); /* @} */ #endif /* _XBT_CONTEXT_H */ diff --git a/src/include/xbt/xbt_portability.h b/src/include/xbt/xbt_portability.h index d04d6738bd..8393364fc3 100644 --- a/src/include/xbt/xbt_portability.h +++ b/src/include/xbt/xbt_portability.h @@ -17,13 +17,13 @@ * gives the number of seconds since the Epoch (00:00:00 UTC, January 1, 1970). * Most users should use gras_os_time and should not use this function unless they really know what they are doing. */ -XBT_PUBLIC(double) xbt_os_time(void); +double xbt_os_time(void); typedef struct s_xbt_os_timer *xbt_os_timer_t; -XBT_PUBLIC(xbt_os_timer_t) xbt_os_timer_new(void); -XBT_PUBLIC(void) xbt_os_timer_free(xbt_os_timer_t timer); -XBT_PUBLIC(void) xbt_os_timer_start(xbt_os_timer_t timer); -XBT_PUBLIC(void) xbt_os_timer_stop(xbt_os_timer_t timer); -XBT_PUBLIC(double) xbt_os_timer_elapsed(xbt_os_timer_t timer); +xbt_os_timer_t xbt_os_timer_new(void); +void xbt_os_timer_free(xbt_os_timer_t timer); +void xbt_os_timer_start(xbt_os_timer_t timer); +void xbt_os_timer_stop(xbt_os_timer_t timer); +double xbt_os_timer_elapsed(xbt_os_timer_t timer); #endif