Commit c7f9b1d5 authored by julien.delange's avatar julien.delange
Browse files

introduce __po_hi_get_entity_from_global_port function



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@554 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 81535a05
......@@ -26,12 +26,17 @@ typedef char* __po_hi_inetaddr_t;
typedef uint8_t __po_hi_queue_id;
__po_hi_node_t __po_hi_transport_get_node_from_entity (__po_hi_entity_t entity);
__po_hi_node_t __po_hi_transport_get_node_from_entity (const __po_hi_entity_t entity);
/*
* Returns the node identifier that corresponds to an entity.
*/
int __po_hi_transport_send_default (__po_hi_task_id id, __po_hi_port_t port);
__po_hi_entity_t __po_hi_get_entity_from_global_port (const __po_hi_port_t port);
/*
* Return the entity identifier that own the port in parameters.
*/
int __po_hi_transport_send_default (__po_hi_task_id id, __po_hi_port_t port);
/*
* Default transport layer
*/
......
......@@ -103,7 +103,12 @@ int __po_hi_transport_send_default (__po_hi_task_id id, __po_hi_port_t port)
__po_hi_node_t __po_hi_transport_get_node_from_entity (__po_hi_entity_t entity)
__po_hi_node_t __po_hi_transport_get_node_from_entity (const __po_hi_entity_t entity)
{
return entity_table[entity];
}
__po_hi_entity_t __po_hi_get_entity_from_global_port (const __po_hi_port_t port)
{
return __po_hi_port_global_to_entity[port];
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment