#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
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);
#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_<module>_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 */
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 */
/** \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 */
*
* \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 */
*
* \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
*
* \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
#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
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 */
/* @}*/
-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 */
* 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