summaryrefslogtreecommitdiffstats
path: root/mc
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2009-08-15 02:49:13 +0000
committerjsorg71 <jsorg71>2009-08-15 02:49:13 +0000
commit33b4e7f417f5d270b88b44ae1a3356a29a977062 (patch)
tree908ea7c643bfea14c1b8ec77236129072beaf3e3 /mc
parentfa91c84668207d94079fc0b4826d3f0e89efdf40 (diff)
downloadxrdp-proprietary-33b4e7f417f5d270b88b44ae1a3356a29a977062.tar.gz
xrdp-proprietary-33b4e7f417f5d270b88b44ae1a3356a29a977062.zip
channel fixes
Diffstat (limited to 'mc')
-rw-r--r--mc/mc.c1
-rw-r--r--mc/mc.h5
2 files changed, 5 insertions, 1 deletions
diff --git a/mc/mc.c b/mc/mc.c
index fc0e9e18..106fa3fe 100644
--- a/mc/mc.c
+++ b/mc/mc.c
@@ -90,6 +90,7 @@ mod_init(void)
mod = (struct mod*)g_malloc(sizeof(struct mod), 1);
mod->size = sizeof(struct mod);
+ mod->version = CURRENT_MOD_VER;
mod->handle = (long)mod;
mod->mod_connect = lib_mod_connect;
mod->mod_start = lib_mod_start;
diff --git a/mc/mc.h b/mc/mc.h
index b825eadc..949166f0 100644
--- a/mc/mc.h
+++ b/mc/mc.h
@@ -26,6 +26,8 @@
#include "os_calls.h"
#include "defines.h"
+#define CURRENT_MOD_VER 1
+
struct mod
{
int size; /* size of this struct */
@@ -78,7 +80,8 @@ struct mod
int* channel_flags);
int (*server_get_channel_id)(struct mod* v, char* name);
int (*server_send_to_channel)(struct mod* v, int channel_id,
- char* data, int data_len);
+ char* data, int data_len,
+ int total_data_len, int flags);
long server_dumby[100 - 24]; /* align, 100 minus the number of server
functions above */
/* common */