summaryrefslogtreecommitdiffstats
path: root/message.h
diff options
context:
space:
mode:
authorSuper User2007-08-11 10:12:10 +0200
committerSuper User2007-08-11 10:12:10 +0200
commit0a0643e3a561de5f34927ea80c2bd0ce6405fd3c (patch)
tree636f59202db625704b49a6148b2d0a2374714a44 /message.h
parentsome minor fixes (diff)
downloadlcr-0a0643e3a561de5f34927ea80c2bd0ce6405fd3c.tar.gz
lcr-0a0643e3a561de5f34927ea80c2bd0ce6405fd3c.tar.xz
lcr-0a0643e3a561de5f34927ea80c2bd0ce6405fd3c.zip
fixes, debugging for usleep problems.
Diffstat (limited to 'message.h')
-rw-r--r--message.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/message.h b/message.h
index ae1e8fd..d60c1b3 100644
--- a/message.h
+++ b/message.h
@@ -278,6 +278,10 @@ struct param_hello {
char application[32]; /* name of remote application */
};
+struct param_bchannel {
+ unsigned long addr; /* bchannel stack address */
+};
+
/* structure of message parameter */
union parameter {
struct param_tone tone; /* MESSAGE_TONE */
@@ -300,6 +304,7 @@ union parameter {
struct extension ext; /* tell port about extension information */
struct param_crypt crypt; /* MESSAGE_CRYPT */
struct param_hello hello; /* MESSAGE_HELLO */
+ struct param_bchannel bchannel; /* MESSAGE_BCHANNEL */
};
enum { /* message flow */
@@ -355,6 +360,7 @@ enum { /* messages between entities */
MESSAGE_TONE_COUNTER, /* tone counter (for VBOX tone use) */
MESSAGE_TONE_EOF, /* tone is end of file */
MESSAGE_BCHANNEL, /* request/assign bchannel */
+ MESSAGE_BCHANNEL_FREE, /* requests/assigns bchannel to be free */
MESSAGE_HELLO, /* hello message for remote application */
MESSAGE_NEWREF, /* special message to create and inform ref */
};
@@ -396,7 +402,7 @@ enum { /* messages between entities */
struct message *message_create(int id_from, int id_to, int flow, int type);
void message_put(struct message *message);
-void message_forward(int id_from, int id_to, int flow, union parameter *param);
+struct message *message_forward(int id_from, int id_to, int flow, union parameter *param);
struct message *message_get(void);
void message_free(struct message *message);