Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move private datatypes into relevant file; kill header files which were loaded only...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 2 Jul 2009 07:58:49 +0000 (07:58 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 2 Jul 2009 07:58:49 +0000 (07:58 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6433 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/Makefile.am
src/surf/cpu.c
src/surf/cpu_private.h [deleted file]
src/surf/workstation.c
src/surf/workstation_private.h [deleted file]

index b1e72d7..a184411 100644 (file)
@@ -40,8 +40,6 @@ EXTRA_DIST= \
        surf/maxmin_private.h \
        surf/trace_mgr_private.h \
        surf/surf_private.h \
        surf/maxmin_private.h \
        surf/trace_mgr_private.h \
        surf/surf_private.h \
-       surf/cpu_private.h \
-       surf/workstation_private.h \
        surf/surfxml_parse.c \
        surf/simgrid_dtd.l \
        surf/simgrid_dtd.c \
        surf/surfxml_parse.c \
        surf/simgrid_dtd.l \
        surf/simgrid_dtd.c \
index 7f26a7c..ee3ab22 100644 (file)
@@ -5,11 +5,32 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "cpu_private.h"
+#include "surf_private.h"
+
+typedef struct surf_action_cpu_Cas01 {
+  s_surf_action_t generic_action;
+  lmm_variable_t variable;
+  int suspended;
+} s_surf_action_cpu_Cas01_t, *surf_action_cpu_Cas01_t;
+
+typedef struct cpu_Cas01 {
+  s_surf_resource_t generic_resource;
+  char *name;
+  double power_scale;
+  double power_current;
+  tmgr_trace_event_t power_event;
+  e_surf_cpu_state_t state_current;
+  tmgr_trace_event_t state_event;
+  lmm_constraint_t constraint;
+  /*Handles the properties that can be added to cpu's */
+  xbt_dict_t properties;
+} s_cpu_Cas01_t, *cpu_Cas01_t;
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_cpu, surf,
                                 "Logging specific to the SURF CPU module");
 
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_cpu, surf,
                                 "Logging specific to the SURF CPU module");
 
+
+
 surf_model_t surf_cpu_model = NULL;
 lmm_system_t cpu_maxmin_system = NULL;
 
 surf_model_t surf_cpu_model = NULL;
 lmm_system_t cpu_maxmin_system = NULL;
 
diff --git a/src/surf/cpu_private.h b/src/surf/cpu_private.h
deleted file mode 100644 (file)
index 125ba40..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*     $Id$     */
-
-/* Copyright (c) 2004 Arnaud Legrand. All rights reserved.                  */
-
-/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
-#ifndef _SURF_CPU_PRIVATE_H
-#define _SURF_CPU_PRIVATE_H
-
-#include "surf_private.h"
-#include "xbt/dict.h"
-
-typedef struct surf_action_cpu_Cas01 {
-  s_surf_action_t generic_action;
-  lmm_variable_t variable;
-  int suspended;
-} s_surf_action_cpu_Cas01_t, *surf_action_cpu_Cas01_t;
-
-typedef struct cpu_Cas01 {
-  s_surf_resource_t generic_resource;
-  char *name;
-  double power_scale;
-  double power_current;
-  tmgr_trace_event_t power_event;
-  e_surf_cpu_state_t state_current;
-  tmgr_trace_event_t state_event;
-  lmm_constraint_t constraint;
-  /*Handles the properties that can be added to cpu's */
-  xbt_dict_t properties;
-} s_cpu_Cas01_t, *cpu_Cas01_t;
-
-#endif /* _SURF_CPU_PRIVATE_H */
index 1fb8397..ce87967 100644 (file)
@@ -8,10 +8,15 @@
 #include "xbt/ex.h"
 #include "xbt/dict.h"
 #include "portable.h"
 #include "xbt/ex.h"
 #include "xbt/dict.h"
 #include "portable.h"
-#include "workstation_private.h"
-#include "cpu_private.h"
+#include "surf_private.h"
 #include "network_common.h"
 
 #include "network_common.h"
 
+typedef struct workstation_CLM03 {
+  s_surf_resource_t generic_resource; /* Must remain first to add this to a trace */
+  void *cpu;
+  int id;
+} s_workstation_CLM03_t, *workstation_CLM03_t;
+
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_workstation, surf,
                                 "Logging specific to the SURF workstation module");
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_workstation, surf,
                                 "Logging specific to the SURF workstation module");
 
diff --git a/src/surf/workstation_private.h b/src/surf/workstation_private.h
deleted file mode 100644 (file)
index 6aafb39..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*     $Id$ */
-
-/* Copyright (c) 2004 Arnaud Legrand. All rights reserved.                  */
-
-/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
-#ifndef _SURF_WORKSTATION_PRIVATE_H
-#define _SURF_WORKSTATION_PRIVATE_H
-
-#include "surf_private.h"
-
-typedef struct workstation_CLM03 {
-  s_surf_resource_t generic_resource; /* Must remain first to add this to a trace */
-  void *cpu;
-  int id;
-} s_workstation_CLM03_t, *workstation_CLM03_t;
-
-typedef struct surf_action_parallel_task_CSL05 {
-  s_surf_action_t generic_action;
-  lmm_variable_t variable;
-  double rate;
-  int suspended;
-} s_surf_action_parallel_task_CSL05_t, *surf_action_parallel_task_CSL05_t;
-
-#endif /* _SURF_WORKSTATION_PRIVATE_H */