summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_types.h
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-03-16 11:07:59 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-03-16 11:07:59 -0700
commit9470b031aaf27e58b9eeb8df90574c30ac55935e (patch)
tree4e6ed5db4d522a42748448339269e01c67ca4f48 /xrdp/xrdp_types.h
parent963b95877a8e8c515d6ae775d1f1aeab2775a863 (diff)
downloadxrdp-proprietary-9470b031aaf27e58b9eeb8df90574c30ac55935e.tar.gz
xrdp-proprietary-9470b031aaf27e58b9eeb8df90574c30ac55935e.zip
xrdp_encoder: developer checkin
Diffstat (limited to 'xrdp/xrdp_types.h')
-rw-r--r--xrdp/xrdp_types.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/xrdp/xrdp_types.h b/xrdp/xrdp_types.h
index b345e36c..b824f176 100644
--- a/xrdp/xrdp_types.h
+++ b/xrdp/xrdp_types.h
@@ -26,6 +26,7 @@
#include "xrdp_rail.h"
#include "xrdp_constants.h"
+#include "fifo.h"
#define MAX_NR_CHANNELS 16
#define MAX_CHANNEL_NAME 16
@@ -262,12 +263,19 @@ struct xrdp_mm
int (*mod_exit)(struct xrdp_mod*);
struct xrdp_mod* mod; /* module interface */
int display; /* 10 for :10.0, 11 for :11.0, etc */
- int code; /* 0 Xvnc session 10 X11rdp session */
+ int code; /* 0=Xvnc session, 10=X11rdp session, 20=xorg driver mode */
int sesman_controlled; /* true if this is a sesman session */
struct trans* chan_trans; /* connection to chansrv */
int chan_trans_up; /* true once connected to chansrv */
int delete_chan_trans; /* boolean set when done with channel connection */
int usechansrv; /* true if chansrvport is set in xrdp.ini or using sesman */
+
+ /* for codec mode operations */
+ int in_codec_mode;
+ tbus xrdp_encoder_event;
+ FIFO *fifo_to_proc;
+ FIFO *fifo_processed;
+ tbus mutex;
};
struct xrdp_key_info
@@ -581,4 +589,20 @@ struct xrdp_config
struct xrdp_cfg_channels cfg_channels;
};
+/* used when scheduling tasks in xrdp_encoder.c */
+struct xrdp_enc_data
+{
+ struct xrdp_mod *mod;
+ int num_drects;
+ short *drects; /* 4 * num_drects */
+ int num_crects;
+ short *crects; /* 4 * num_crects */
+ char *data;
+ int width;
+ int height;
+ int flags;
+};
+
+typedef struct xrdp_enc_data XRDP_ENC_DATA;
+
#endif