]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_distributed_types.h
type for protocol status information
[frescor/frsh-include.git] / frsh_distributed_types.h
index 9d0bf4d508ef31f3bdb01cc541308eead602b204..2ce46ccdb6a42f01227c47a78c03b22ea30ec352 100644 (file)
@@ -12,7 +12,7 @@
 //    Visual Tools S.A.                      SPAIN
 //    Rapita Systems Ltd                     UK
 //    Evidence                               ITALY
-//    
+//
 //    See http://www.frescor.org for a link to partners' websites
 //
 //           FRESCOR project (FP6/2005/IST/5-034026) is funded
@@ -22,7 +22,7 @@
 //
 //
 //  based on previous work (FSF) done in the FIRST project
-//                       
+//
 //   Copyright (C) 2005  Mälardalen University, SWEDEN
 //                       Scuola Superiore S.Anna, ITALY
 //                       Universidad de Cantabria, SPAIN
@@ -64,7 +64,7 @@
 //  **////  /**///**  ////////** /**//////**
 //  **      /**  //**        /** /**     /**
 //  **      /**   //** ********  /**     /**
-//  //       //     // ////////   //      // 
+//  //       //     // ////////   //      //
 //
 // FRSH(FRescor ScHeduler), pronounced "fresh"
 //==============================================
@@ -96,7 +96,7 @@ typedef FRSH_RECEIVE_ENDPOINT_T_OPAQUE frsh_receive_endpoint_t;
 typedef unsigned int  frsh_network_address_t;
 
 /**
- * The port type specifies the information that is 
+ * The port type specifies the information that is
  * necessary to get in contact with the thread in the
  * receiving node, in a protocol-independent way.
  * The actual port number is obtained via a configuration
@@ -115,6 +115,14 @@ typedef struct _protocol_info_t
     int size;
 } frsh_protocol_info_t;
 
+/**
+ * Protocol dependent information about the status of an endpoint
+ **/
+typedef struct {
+   void *body;
+   int size;
+} frsh_protocol_status_t;
+
 /**
  * Algorithm used when the queue is full to choose the message to reject
  **/
@@ -127,7 +135,7 @@ typedef enum _queue_rejection_policy_t
     /** Incoming messages are rejected if the queue is full **/
     FRSH_QRP_NEWCOMER
 } frsh_queue_rejection_policy_t;
-    
+
 /**
  * Queing information for endpoints
  **/