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 */
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 */
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 */
};
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);