backup
[lcr.git] / port.h
diff --git a/port.h b/port.h
index 688faa6..0ee91e7 100644 (file)
--- a/port.h
+++ b/port.h
        /* te-mode */
 #define        PORT_TYPE_DSS1_TE_IN    0x0113
 #define        PORT_TYPE_DSS1_TE_OUT   0x0114
-       /* sip */
-#define        PORT_TYPE_SIP_IN        0x0121
-#define        PORT_TYPE_SIP_OUT       0x0122
-       /* h323 */
-#define        PORT_TYPE_H323_IN       0x0211
-#define        PORT_TYPE_H323_OUT      0x0212
        /* answering machine */
 #define        PORT_TYPE_VBOX_OUT      0x0311
 
@@ -149,7 +143,8 @@ class Port
        virtual int message_epoint(unsigned long epoint_id, int message, union parameter *param);
        virtual void set_echotest(int echotest);
        virtual void set_tone(char *dir, char *name);
-       virtual int read_audio(unsigned char *buffer, int length, int compressed);
+       virtual int read_audio(unsigned char *buffer, int length);
+       virtual void transmit(unsigned char *buffer, int length);
 
        struct port_settings p_settings;
        
@@ -172,16 +167,6 @@ class Port
        void set_vbox_play(char *name, int offset); /* sample of answ. */
        void set_vbox_speed(int speed); /* speed of answ. */
 
-       /* user space mixer buffer */
-       signed long p_mixer_buffer[PORT_BUFFER];        /* mixer buffer */
-       signed long p_record_buffer[PORT_BUFFER];       /* record buffer */
-       signed long p_stereo_buffer[PORT_BUFFER];       /* record buffer for stereo (user only) */
-       struct mixer_relation *p_mixer_rel;     /* list of mixer relations */
-       int p_mixer_readp;                      /* read pointer in buffer */
-
-       /* methods */
-       void mixer(union parameter *param);
-       
        /* identification */
        unsigned long p_serial;                 /* serial unique id of port */
        char p_name[128];                       /* name of port or token (h323) */
@@ -218,8 +203,6 @@ class Port
        char p_record_vbox_email[128];
        int p_record_vbox_email_file;
 
-       virtual void printisdn(char *fmt, ...);
-
        void free_epointlist(struct epoint_list *epointlist);
        void free_epointid(unsigned long epoint_id);
        struct epoint_list *epointlist_new(unsigned long epoint_id);