X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=endpointapp.h;h=4147c515a1845763972b452f5cda57323c71836b;hp=a330a630de9c0fbaa32b77e731be137536365cb9;hb=57defecea870c265179b69f811416c7a4659b0ee;hpb=d2b113f2c4f11acfaee1b2e0fd2f03744a89f6d4 diff --git a/endpointapp.h b/endpointapp.h index a330a63..4147c51 100644 --- a/endpointapp.h +++ b/endpointapp.h @@ -9,17 +9,21 @@ ** ** \*****************************************************************************/ +#define EAPP_TYPE_PBX 0 +#define EAPP_TYPE_BRIDGE 1 /* structure of an EndpointApp */ class EndpointApp { public: - EndpointApp(class Endpoint *epoint, int origin); + EndpointApp(class Endpoint *epoint, int origin, int type); virtual ~EndpointApp(); + int ea_type; class Endpoint *ea_endpoint; - virtual int handler(void); virtual void ea_message_port(unsigned int port_id, int message, union parameter *param); virtual void ea_message_join(unsigned int join_id, int message, union parameter *param); }; +class EndpointApp *new_endpointapp(class Endpoint *epoint, int origin, int type); +