3 /* base - several addons to do specific stuff not in GRAS itself */
5 /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */
7 /* This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package. */
11 #include "amok/base.h"
13 XBT_LOG_NEW_SUBCATEGORY(amok,XBT_LOG_ROOT_CAT,"All AMOK categories");
14 XBT_LOG_EXTERNAL_CATEGORY(amok_bw);
15 XBT_LOG_EXTERNAL_CATEGORY(amok_bw_sat);
16 XBT_LOG_EXTERNAL_CATEGORY(amok_pm);
18 void amok_base_init(void) {
19 gras_datadesc_type_t host_desc;
21 /* Connect our log channels: that must be done manually under windows */
22 XBT_LOG_CONNECT(amok_bw, amok);
23 XBT_LOG_CONNECT(amok_bw_sat, amok_bw);
24 XBT_LOG_CONNECT(amok_pm, amok);
26 /* Build the datatype descriptions */
27 host_desc = gras_datadesc_struct("s_xbt_host_t");
28 gras_datadesc_struct_append(host_desc,"name",gras_datadesc_by_name("string"));
29 gras_datadesc_struct_append(host_desc,"exp_size",gras_datadesc_by_name("int"));
30 gras_datadesc_struct_close(host_desc);
31 host_desc = gras_datadesc_ref("xbt_host_t",host_desc);
34 void amok_base_exit(void) {
35 /* FIXME: No real module mechanism in GRAS so far, nothing to do. */