summaryrefslogtreecommitdiffstats
path: root/message.h
diff options
context:
space:
mode:
authorAndreas Eversberg2010-01-16 11:20:23 +0100
committerAndreas Eversberg2010-01-16 11:20:23 +0100
commitb0bd74e35e935aa976b68c594def4e8d2c22ef95 (patch)
tree7e7033beb3b9b1a1976d58ce4e16c6f965a3c9fc /message.h
parentAdded new option to interface.conf: "nonotify" to disable notify messages. (diff)
downloadlcr-b0bd74e35e935aa976b68c594def4e8d2c22ef95.tar.gz
lcr-b0bd74e35e935aa976b68c594def4e8d2c22ef95.tar.xz
lcr-b0bd74e35e935aa976b68c594def4e8d2c22ef95.zip
Replaced polling loop for LCR and chan_lcr with select based event loop.
Now LCR and chan_lcr will not use any CPU until there is work to do.
Diffstat (limited to 'message.h')
-rw-r--r--message.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/message.h b/message.h
index 63abc65..a7f15b7 100644
--- a/message.h
+++ b/message.h
@@ -9,8 +9,6 @@
** **
\*****************************************************************************/
-#define ISDN_TRANSMIT 256 // samples
-
enum { /* interface types */
INFO_ITYPE_ISDN, /* call from external */
INFO_ITYPE_ISDN_EXTENSION, /* call from internal extension */
@@ -271,10 +269,11 @@ struct park_info {
int len;
};
+#define ISDN_TRANSMIT 256
/* DATA */
struct param_data {
- unsigned char data[ISDN_TRANSMIT]; /* audio/hdlc data */
- int len; /* audio/hdlc data */
+ unsigned char data[ISDN_TRANSMIT]; /* audio data */
+ int len; /* audio data */
};
struct param_play {
@@ -444,6 +443,7 @@ void message_put(struct lcr_msg *message);
struct lcr_msg *message_forward(int id_from, int id_to, int flow, union parameter *param);
struct lcr_msg *message_get(void);
void message_free(struct lcr_msg *message);
-
+void init_message(void);
+void cleanup_message(void);