po_hi_driver_sockets.h 1.26 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * This is a part of PolyORB-HI-C distribution, a minimal
 * middleware written for generated code from AADL models.
 * You should use it with the Ocarina toolsuite.
 *
 * Copyright (C) 2010, European Space Agency
 */

#include <deployment.h>

#ifndef __PO_HI_DRIVER_SOCKETS_H__
#define __PO_HI_DRIVER_SOCKETS_H__

14
15

#if (defined (__PO_HI_NEED_DRIVER_SOCKETS)  \
16
               || defined (__PO_HI_NEED_DRIVER_SOCKETSNEW) \
julien.delange's avatar
julien.delange committed
17
               || defined (__PO_HI_NEED_DRIVER_RTEMS_NE2000_SOCKETS))
18
19
20

#include <po_hi_transport.h>

21
22
#include <drivers/po_hi_driver_sockets_common.h>
/* Files from PolyORB-HI-C */
23
24


25
void __po_hi_driver_sockets_receiver (void);
26

27
#ifdef __PO_HI_NEED_DRIVER_SOCKETS
28
int  __po_hi_driver_sockets_send (__po_hi_entity_t from, __po_hi_entity_t to, __po_hi_msg_t* msg);
29
30
31
32
33
34
#endif

#ifdef __PO_HI_NEED_DRIVER_SOCKETSNEW
int __po_hi_driver_sockets_send (__po_hi_task_id task_id,
                                 __po_hi_port_t port);
#endif
35
36
37
38
39
40
41
42
43
44
/*
 * Send data through the sending socket
 */

void* __po_hi_sockets_receiver_task (void);
/*
 * Task that polls for incoming data 
 * and dispatch it in po-hi-c queues
 */

45
void* __po_hi_sockets_poller (void);
julien.delange's avatar
julien.delange committed
46
47
48
/*
 * Generic poller for PO-HI-C protocol.
 */
49

julien.delange's avatar
julien.delange committed
50
void __po_hi_driver_sockets_init (__po_hi_device_id id);
51
52
53
54
#endif

#endif