X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=endpointapp.h;h=5d6f253968d5992d6ac7d3402d3465e1afd542a3;hp=11001f3bd639d70301f134aa62632906c5fbccfc;hb=5566f74eb29be75da44e29ba72ee6f015249ce61;hpb=e01d4caa3eef0f4d17e5513cb793e19fecd2b051 diff --git a/endpointapp.h b/endpointapp.h index 11001f3..5d6f253 100644 --- a/endpointapp.h +++ b/endpointapp.h @@ -9,17 +9,27 @@ ** ** \*****************************************************************************/ +#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 long port_id, int message, union parameter *param); - virtual void ea_message_join(unsigned long join_id, int message, union parameter *param); + 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); + virtual void trace_header(const char *name, int direction); + +#ifdef WITH_MISDN + struct mISDNport *hunt_port(char *ifname, int *channel); +#endif + struct interface *hunt_interface(char *ifname); }; +class EndpointApp *new_endpointapp(class Endpoint *epoint, int origin, int type); +