X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=endpoint.h;h=963b5dd5783f99fa5db87b5ca424fda277ffad4c;hp=e556bf3e0c211579f351dfe8d548c4ed61f1deb2;hb=b2a665f8f1cdeb7d02c3f665d95e6a80297e21d1;hpb=559ff64e3062b70f27ddceba825f40642a6c5725 diff --git a/endpoint.h b/endpoint.h index e556bf3..963b5dd 100644 --- a/endpoint.h +++ b/endpoint.h @@ -1,6 +1,6 @@ /*****************************************************************************\ ** ** -** PBX4Linux ** +** Linux Call Router ** ** ** **---------------------------------------------------------------------------** ** Copyright: Andreas Eversberg ** @@ -13,7 +13,7 @@ /* structure of port_list */ struct port_list { struct port_list *next; - unsigned long port_id; + unsigned int port_id; int port_type; int early_b; /* if patterns are available */ }; @@ -22,10 +22,10 @@ struct port_list { class Endpoint { public: - Endpoint(int port_id, int call_id); + Endpoint(unsigned int port_id, unsigned int join_id); ~Endpoint(); class Endpoint *next; /* next in list */ - unsigned long ep_serial; /* a unique serial to identify */ + unsigned int ep_serial; /* a unique serial to identify */ int handler(void); /* applocaton relation */ @@ -33,11 +33,11 @@ class Endpoint /* port relation */ struct port_list *ep_portlist; /* link to list of ports */ - struct port_list *portlist_new(unsigned long port_id, int port_type); + struct port_list *portlist_new(unsigned int port_id, int port_type, int earlyb); void free_portlist(struct port_list *portlist); - /* call relation */ - unsigned long ep_call_id; /* link to call */ + /* join relation */ + unsigned int ep_join_id; /* link to join */ /* if still used by threads */ int ep_use; @@ -50,5 +50,5 @@ class Endpoint extern class Endpoint *epoint_first; -class Endpoint *find_epoint_id(unsigned long epoint_id); +class Endpoint *find_epoint_id(unsigned int epoint_id);