Add -lncurses to LDD flags
[lcr.git] / vbox.h
diff --git a/vbox.h b/vbox.h
index b07ab5b..69cf83c 100644 (file)
--- a/vbox.h
+++ b/vbox.h
@@ -5,18 +5,20 @@
 **---------------------------------------------------------------------------**
 ** Copyright: Andreas Eversberg                                              **
 **                                                                           **
-** port header file                                                          **
+** vbox-port header file                                                     **
 **                                                                           **
 \*****************************************************************************/ 
 
-/* answerin machine port class */
+/* answering machine port class */
 class VBoxPort : public Port
 {
        public:
        VBoxPort(int type, struct port_settings *settings);
        ~VBoxPort();
        int message_epoint(unsigned int epoint_id, int message, union parameter *param);
-       int handler(void);
+       void send_announcement(void);
+
+       int bridge_rx(unsigned char *data, int len);
 
        private:
        struct EndpointAppPBX *p_vbox_apppbx;           /* pbx application */
@@ -29,9 +31,10 @@ class VBoxPort : public Port
        signed int p_vbox_announce_left;                /* the number of bytes left of announcement sample */
        signed int p_vbox_announce_size;                /* size of current announcement (in bytes) */
        int p_vbox_mode;                                /* type of recording VBOX_MODE_* */
-       double p_vbox_audio_start;                      /* time stamp of starting of audio (<1 == not yet started) */ 
+       long long p_vbox_audio_start;                   /* time stamp of starting of audio (0 == not yet started) */ 
        unsigned int p_vbox_audio_transferred;          /* number of samples sent to endpoint */
-       signed int p_vbox_record_start;         /* start for recording */
+       struct lcr_timer p_vbox_announce_timer;         /* timer for sending announcement */
+       struct lcr_timer p_vbox_record_timeout;         /* timer for recording limit */
        signed int p_vbox_record_limit;         /* limit for recording */
 
        struct extension p_vbox_ext;                    /* save settings of extension */