4147c515a1845763972b452f5cda57323c71836b
[lcr.git] / endpointapp.h
1 /*****************************************************************************\
2 **                                                                           **
3 ** Linux Call Router                                                         **
4 **                                                                           **
5 **---------------------------------------------------------------------------**
6 ** Copyright: Andreas Eversberg                                              **
7 **                                                                           **
8 ** EndpointApp header file                                                   **
9 **                                                                           **
10 \*****************************************************************************/ 
11
12 #define EAPP_TYPE_PBX           0
13 #define EAPP_TYPE_BRIDGE        1
14
15 /* structure of an EndpointApp */
16 class EndpointApp
17 {
18         public:
19         EndpointApp(class Endpoint *epoint, int origin, int type);
20         virtual ~EndpointApp();
21
22         int ea_type;
23         class Endpoint          *ea_endpoint;
24         virtual void ea_message_port(unsigned int port_id, int message, union parameter *param);
25         virtual void ea_message_join(unsigned int join_id, int message, union parameter *param);
26 };
27
28 class EndpointApp *new_endpointapp(class Endpoint *epoint, int origin, int type);
29