Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not export the functions of this header in the dll
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Feb 2007 16:55:26 +0000 (16:55 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Feb 2007 16:55:26 +0000 (16:55 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3109 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/amok/Bandwidth/bandwidth_private.h
src/gras/Virtu/virtu_interface.h
src/include/surf/maxmin.h
src/include/surf/surf.h
src/include/surf/surfxml_parse_private.h
src/include/surf/trace_mgr.h
src/include/xbt/context.h
src/include/xbt/xbt_portability.h

index 65c3240..1ddcc24 100644 (file)
 #include "gras.h"
 #include "amok/bandwidth.h"
 
 #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
 
 /***
  * Plain bandwidth measurement stuff
@@ -60,7 +60,7 @@ typedef struct {
   unsigned int duration;
 } s_sat_request_t,*sat_request_t;
 
   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);
 
                                   const char* to_name,unsigned int to_port,
                                   unsigned int msg_size, unsigned int duration);
 
index e0a3fb1..2d78570 100644 (file)
 #include "gras/process.h"
 
 /* shutdown the module mechanism (world-wide cleanups) */
 #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) */
 /* 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) */
 
 /* 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 */
 
 #endif  /* GRAS_VIRTU_INTERFACE_H */
index 5049661..3f3fc0a 100644 (file)
@@ -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;
 
 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);
                                    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);
                                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);
                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);
                    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);
 
                        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);
                                       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);
 
                                     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);
                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);
                               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);
                                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);
 
                                 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 */
 #endif                         /* _SURF_MAXMIN_H */
index 6397cf6..81f5299 100644 (file)
@@ -168,7 +168,7 @@ extern surf_timer_resource_t surf_timer_resource;
 /** \brief Initializes the timer resource
  *  \ingroup SURF_resources
  */
 /** \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 */
 
 
 /* Cpu resource */
 
@@ -216,7 +216,7 @@ extern surf_cpu_resource_t surf_cpu_resource;
  *
  *  \see surf_workstation_resource_init_CLM03()
  */
  *
  *  \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 */
 
 
 /* Network resource */
 
@@ -264,7 +264,7 @@ extern surf_network_resource_t surf_network_resource;
  *
  *  \see surf_workstation_resource_init_CLM03()
  */
  *
  *  \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
 
 /** \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()
  */
  *
  *  \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
 
 /** \brief Initializes the platform with the model KCCFLN05
  *  \ingroup SURF_resources
index 1cb1d14..c1ec2a8 100644 (file)
@@ -14,6 +14,6 @@
 #include "surf/surfxml_parse.h"
 #include "surf/trace_mgr.h"
 
 #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
 
 #endif
index a642046..b5af71f 100644 (file)
@@ -17,25 +17,25 @@ typedef struct tmgr_trace *tmgr_trace_t;
 typedef struct tmgr_trace_event *tmgr_trace_event_t;
 
 /* Creation functions */
 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 */
                                          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);
 
                                                   double date,
                                                   double *value,
                                                   void **resource);
 
-XBT_PUBLIC(void) tmgr_finalize(void);
+void tmgr_finalize(void);
 
 #endif                         /* _SURF_TMGR_H */
 
 #endif                         /* _SURF_TMGR_H */
index 74bc458..1728a02 100644 (file)
 
 /* @}*/
 
 
 /* @}*/
 
-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[]);
                                          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 */
 /* @} */
 #endif                         /* _XBT_CONTEXT_H */
index d04d673..8393364 100644 (file)
   * 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. */
   * 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;
 
 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
 
 #endif