]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_distributed_types.h
Added FPGA resource type
[frescor/frsh-include.git] / frsh_distributed_types.h
index 6dc1a332b6b44e54f980838c72fb9890f96b63af..dcb2e56102f19e43be6fb3a87a533c4b3f85a6f4 100644 (file)
@@ -1,5 +1,5 @@
 // -----------------------------------------------------------------------
-//  Copyright (C) 2006 - 2007 FRESCOR consortium partners:
+//  Copyright (C) 2006 - 2008 FRESCOR consortium partners:
 //
 //    Universidad de Cantabria,              SPAIN
 //    University of York,                    UK
 //   FSF API web pages: http://marte.unican.es/fsf/docs
 //                      http://shark.sssup.it/contrib/first/docs/
 //
-//  This file is part of FRSH API
+//   This file is part of FRSH (FRescor ScHeduler)
 //
-//  FRSH API is free software; you can  redistribute it and/or  modify
-//  it under the terms of  the GNU General Public License as published by
-//  the Free Software Foundation;  either  version 2, or (at  your option)
-//  any later version.
+//  FRSH is free software; you can redistribute it and/or modify it
+//  under terms of the GNU General Public License as published by the
+//  Free Software Foundation; either version 2, or (at your option) any
+//  later version.  FRSH is distributed in the hope that it will be
+//  useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+//  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+//  General Public License for more details. You should have received a
+//  copy of the GNU General Public License along with FRSH; see file
+//  COPYING. If not, write to the Free Software Foundation, 675 Mass Ave,
+//  Cambridge, MA 02139, USA.
 //
-//  FRSH API  is distributed  in  the hope  that  it  will  be useful,  but
-//  WITHOUT  ANY  WARRANTY;     without  even the   implied   warranty  of
-//  MERCHANTABILITY  or  FITNESS FOR  A  PARTICULAR PURPOSE. See  the  GNU
-//  General Public License for more details.
-//
-//  You should have  received a  copy of  the  GNU  General Public License
-//  distributed  with  FRSH API;  see file COPYING.   If not,  write to the
-//  Free Software  Foundation,  59 Temple Place  -  Suite 330,  Boston, MA
-//  02111-1307, USA.
-//
-//  As a special exception, if you include this header file into source
-//  files to be compiled, this header file does not by itself cause
-//  the resulting executable to be covered by the GNU General Public
-//  License.  This exception does not however invalidate any other
-//  reasons why the executable file might be covered by the GNU General
-//  Public License.
+//  As a special exception, including FRSH header files in a file,
+//  instantiating FRSH generics or templates, or linking other files
+//  with FRSH objects to produce an executable application, does not
+//  by itself cause the resulting executable application to be covered
+//  by the GNU General Public License. This exception does not
+//  however invalidate any other reasons why the executable file might be
+//  covered by the GNU Public License.
 // -----------------------------------------------------------------------
 
 //==============================================
@@ -69,8 +66,8 @@
 // FRSH(FRescor ScHeduler), pronounced "fresh"
 //==============================================
 
-#ifndef        FRSH_DISTRIBUTED_TYPES_H_
-#define        FRSH_DISTRIBUTED_TYPES_H_
+#ifndef   FRSH_DISTRIBUTED_TYPES_H_
+#define   FRSH_DISTRIBUTED_TYPES_H_
 
 /**
  * @file frsh_distributed_types.h
 
 #include "frsh_opaque_types.h"
 
+FRSH_CPP_BEGIN_DECLS
+
 /**
  * @addtogroup distributed
  *
  * @{
  **/
 
-#define FRSH_DEFAULT_NETWORK_ID                1
-#define FRSH_NULL_NETWORK_ID           0
-
-
 //opaque types for frsh endpoints
 typedef FRSH_SEND_ENDPOINT_T_OPAQUE frsh_send_endpoint_t;
 typedef FRSH_RECEIVE_ENDPOINT_T_OPAQUE frsh_receive_endpoint_t;
@@ -97,7 +92,7 @@ typedef FRSH_RECEIVE_ENDPOINT_T_OPAQUE frsh_receive_endpoint_t;
  * a communication-protocol-independent way. The actual address is
  * obtained via a configuration dependent mapping function
  **/
-typedef unsigned int  frsh_network_address_t;
+typedef unsigned int frsh_network_address_t;
 
 /**
  * The port type specifies the information that is
@@ -106,7 +101,7 @@ typedef unsigned int  frsh_network_address_t;
  * The actual port number is obtained via a configuration
  * dependent mapping function
  **/
-typedef unsigned int  frsh_stream_id_t;
+typedef unsigned int frsh_stream_id_t;
 
 /**
  * Extra information protocol dependent opaque for the application.
@@ -171,8 +166,10 @@ typedef enum {
 
     /** Network is down **/
     FRSH_ENS_DOWN
-} frsh_endpoint_network_status;
+} frsh_endpoint_network_status_t;
 
 /*@}*/
 
-#endif             /* !FRSH_DISTRIBUTED_TYPES_H_ */
+FRSH_CPP_END_DECLS
+
+#endif  /* !FRSH_DISTRIBUTED_TYPES_H_ */