only for backup, still in coding state - no compile!!!
[lcr.git] / endpointapp.cpp
1 /*****************************************************************************\
2 **                                                                           **
3 ** PBX4Linux                                                                 **
4 **                                                                           **
5 **---------------------------------------------------------------------------**
6 ** Copyright: Andreas Eversberg                                              **
7 **                                                                           **
8 ** The EndpointApp represents the application for the Endpoint.              **
9 **                                                                           **
10 \*****************************************************************************/ 
11
12
13 #include <stdio.h>
14 #include "main.h"
15
16 /*
17  * EndpointApp constructor
18  */
19 EndpointApp::EndpointApp(class Endpoint *epoint)
20 {
21         ea_endpoint = epoint;
22         classuse++;
23 }
24
25 /*
26  * endpoint destructor
27  */
28 EndpointApp::~EndpointApp(void)
29 {
30         classuse--;
31 }
32
33 int EndpointApp::handler(void)
34 {
35         return(0);
36 }
37
38 /* mini application for test purpose only */
39
40 void EndpointApp::ea_message_port(unsigned long port_id, int message_type, union parameter *param)
41 {
42         PDEBUG(DEBUG_EPOINT, "%s: Spare function.\n", __FUNCTION__);
43 }
44
45 void EndpointApp::ea_message_call(unsigned long port_id, int message_type, union parameter *param)
46 {
47         PDEBUG(DEBUG_EPOINT, "%s: Spare function.\n", __FUNCTION__);
48 }
49