X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c1a1042ca3cd2979858779afff318cbe5f4b6cbf..f4b7b8e6ce0fd35fc2ada5f5c06d212bcd2199c8:/include/surf/surfxml_parse.h diff --git a/include/surf/surfxml_parse.h b/include/surf/surfxml_parse.h index 6d34abfce7..c2a8577790 100644 --- a/include/surf/surfxml_parse.h +++ b/include/surf/surfxml_parse.h @@ -15,18 +15,6 @@ SG_BEGIN_DECL() -/* Hook for the different tags. All the functions which pointer to are push into here are run when the tag is encountered */ -XBT_PUBLIC_DATA(xbt_dynar_t) STag_surfxml_process_cb_list; -XBT_PUBLIC_DATA(xbt_dynar_t) ETag_surfxml_process_cb_list; -XBT_PUBLIC_DATA(xbt_dynar_t) STag_surfxml_argument_cb_list; -XBT_PUBLIC_DATA(xbt_dynar_t) ETag_surfxml_argument_cb_list; -XBT_PUBLIC_DATA(xbt_dynar_t) STag_surfxml_prop_cb_list; -XBT_PUBLIC_DATA(xbt_dynar_t) ETag_surfxml_prop_cb_list; -XBT_PUBLIC_DATA(xbt_dynar_t) STag_surfxml_trace_cb_list; -XBT_PUBLIC_DATA(xbt_dynar_t) ETag_surfxml_trace_cb_list; -XBT_PUBLIC_DATA(xbt_dynar_t) STag_surfxml_trace_connect_cb_list; -XBT_PUBLIC_DATA(xbt_dynar_t) ETag_surfxml_trace_connect_cb_list; - XBT_PUBLIC(void) surf_parse_open(const char *file); XBT_PUBLIC(void) surf_parse_close(void); XBT_PUBLIC(void) surf_parse_init_callbacks(void); @@ -36,6 +24,11 @@ XBT_PUBLIC(void) surf_parse_error(const char *msg,...) _XBT_GNUC_PRINTF(1,2) _XB XBT_PUBLIC(void) surf_parse_warn(const char *msg,...) _XBT_GNUC_PRINTF(1,2); XBT_PUBLIC(double) surf_parse_get_double(const char *string); XBT_PUBLIC(int) surf_parse_get_int(const char *string); +XBT_PUBLIC(double) surf_parse_get_time(const char *string); +XBT_PUBLIC(double) surf_parse_get_size(const char *string); +XBT_PUBLIC(double) surf_parse_get_bandwidth(const char *string); +XBT_PUBLIC(double) surf_parse_get_power(const char *string); + /* Prototypes of the functions offered by flex */ XBT_PUBLIC(int) surf_parse_lex(void); XBT_PUBLIC(int) surf_parse_get_lineno(void); @@ -80,10 +73,5 @@ extern unsigned int surfxml_buffer_stack_stack[1024]; ETag_surfxml_##tag(); \ } while(0) -XBT_PUBLIC(void) surfxml_add_callback(xbt_dynar_t cb_list, - void_f_void_t function); -XBT_PUBLIC(void) surfxml_del_callback(xbt_dynar_t cb_list, - void_f_void_t function); - SG_END_DECL() #endif