]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_distributed_types.h
Added the hash table for contracts
[frescor/frsh-include.git] / frsh_distributed_types.h
index 8e1917ee0ab268f4b0878b52d44eb9197533ce43..ae93cce1863e4026b6a105de223fea748a144a65 100644 (file)
@@ -69,8 +69,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
@@ -84,8 +84,8 @@
  * @{
  **/
 
-#define FRSH_DEFAULT_NETWORK_ID                1
-#define FRSH_NULL_NETWORK_ID           0
+#define FRSH_DEFAULT_NETWORK_ID  1
+#define FRSH_NULL_NETWORK_ID  0
 
 
 //opaque types for frsh endpoints
@@ -97,7 +97,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 +106,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.
@@ -126,6 +126,24 @@ typedef struct {
    int size;
 } frsh_protocol_status_t;
 
+/**
+ * Protocol dependent information about extra parameters for
+ * send_endpoint definition.
+ **/
+typedef struct {
+   void *body;
+   int size;
+} frsh_send_endpoint_protocol_info_t;
+
+/**
+ * Protocol dependent information about extra parameters for
+ * receive_endpoint definition.
+ **/
+typedef struct {
+   void *body;
+   int size;
+} frsh_receive_endpoint_protocol_info_t;
+
 /**
  * Algorithm used when the queue is full to choose the message to reject
  **/
@@ -157,4 +175,4 @@ typedef enum {
 
 /*@}*/
 
-#endif             /* !FRSH_DISTRIBUTED_TYPES_H_ */
+#endif  /* !FRSH_DISTRIBUTED_TYPES_H_ */