Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix (c) dates
[simgrid.git] / src / gras / Virtu / virtu_interface.h
index 10c065db2fe8a8cac4ffc1a28344d239124170f0..2a5ebd86b0ba0f4df2329089ea86ab631676b60f 100644 (file)
@@ -2,17 +2,23 @@
 
 /* virtu[alization] - speciafic parts for each OS and for SG                */
 
-/* module's public interface  exported within GRAS, but not to end user.    */
+/* module's public interface exported within GRAS, but not to end user.     */
 
-/* Authors: Martin Quinson                                                  */
-/* Copyright (C) 2004 Martin Quinson.                                       */
+/* Copyright (c) 2004 Martin Quinson. 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. */
* under the terms of the license (GNU LGPL) which comes with this package. */
 
 #ifndef GRAS_VIRTU_INTERFACE_H
 #define GRAS_VIRTU_INTERFACE_H
 
+#include "xbt/sysdep.h"
+#include "xbt/log.h"
+#include "xbt/error.h"
+#include "xbt/dynar.h"
+#include "gras/virtu.h"
+#include "gras/process.h"
+
 /**
  * gras_process_data_t:
  *
  */
 typedef struct {
   /*queue of msgs storing the ones got while msg_wait'ing for something else */
-  gras_dynar_t *msg_queue; /* elm type: gras_msg_t */
+  xbt_dynar_t msg_queue; /* elm type: gras_msg_t */
 
   /* registered callbacks for each message */
-  gras_dynar_t *cbl_list; /* elm type: gras_cblist_t */
+  xbt_dynar_t cbl_list; /* elm type: gras_cblist_t */
    
   /* SG only elements. In RL, they are part of the OS ;) */
   int chan;    /* Formated messages channel */
   int rawChan; /* Unformated echange channel */
-  gras_dynar_t *sockets; /* all sockets known to this process */
+  xbt_dynar_t sockets; /* all sockets known to this process */
 
   /* globals of the process */
   void *userdata;               
 } gras_procdata_t;
 
 /* Access */
-gras_dynar_t * gras_socketset_get(void);
+xbt_dynar_t gras_socketset_get(void);
 
 /* FIXME: mv to _private? */
 gras_procdata_t *gras_procdata_get(void);