summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_orders.c
diff options
context:
space:
mode:
Diffstat (limited to 'libxrdp/xrdp_orders.c')
-rw-r--r--libxrdp/xrdp_orders.c62
1 files changed, 31 insertions, 31 deletions
diff --git a/libxrdp/xrdp_orders.c b/libxrdp/xrdp_orders.c
index 3ce0ecb5..7ce5a21b 100644
--- a/libxrdp/xrdp_orders.c
+++ b/libxrdp/xrdp_orders.c
@@ -41,7 +41,7 @@
#define MAX_ORDERS_SIZE (16 * 1024 - 256)
/*****************************************************************************/
-struct xrdp_orders *APP_CC
+struct xrdp_orders *
xrdp_orders_create(struct xrdp_session *session, struct xrdp_rdp *rdp_layer)
{
struct xrdp_orders *self;
@@ -65,7 +65,7 @@ xrdp_orders_create(struct xrdp_session *session, struct xrdp_rdp *rdp_layer)
}
/*****************************************************************************/
-void APP_CC
+void
xrdp_orders_delete(struct xrdp_orders *self)
{
if (self == 0)
@@ -83,7 +83,7 @@ xrdp_orders_delete(struct xrdp_orders *self)
/*****************************************************************************/
/* set all values to zero */
/* returns error */
-int APP_CC
+int
xrdp_orders_reset(struct xrdp_orders *self)
{
if (xrdp_orders_force_send(self) != 0)
@@ -102,7 +102,7 @@ xrdp_orders_reset(struct xrdp_orders *self)
/*****************************************************************************/
/* returns error */
-int APP_CC
+int
xrdp_orders_init(struct xrdp_orders *self)
{
self->order_level++;
@@ -138,7 +138,7 @@ xrdp_orders_init(struct xrdp_orders *self)
/*****************************************************************************/
/* returns error */
-int APP_CC
+int
xrdp_orders_send(struct xrdp_orders *self)
{
int rv;
@@ -177,7 +177,7 @@ xrdp_orders_send(struct xrdp_orders *self)
/*****************************************************************************/
/* returns error */
-int APP_CC
+int
xrdp_orders_force_send(struct xrdp_orders *self)
{
if (self == 0)
@@ -216,7 +216,7 @@ xrdp_orders_force_send(struct xrdp_orders *self)
/* check if the current order will fit in packet size of 16384, if not */
/* send what we got and init a new one */
/* returns error */
-int APP_CC
+int
xrdp_orders_check(struct xrdp_orders *self, int max_size)
{
int size;
@@ -270,7 +270,7 @@ xrdp_orders_check(struct xrdp_orders *self, int max_size)
/*****************************************************************************/
/* check if rect is the same as the last one sent */
/* returns boolean */
-static int APP_CC
+static int
xrdp_orders_last_bounds(struct xrdp_orders *self, struct xrdp_rect *rect)
{
if (rect == 0)
@@ -292,7 +292,7 @@ xrdp_orders_last_bounds(struct xrdp_orders *self, struct xrdp_rect *rect)
/*****************************************************************************/
/* check if all coords are within 256 bytes */
/* returns boolean */
-static int APP_CC
+static int
xrdp_orders_send_delta(struct xrdp_orders *self, int *vals, int count)
{
int i;
@@ -310,7 +310,7 @@ xrdp_orders_send_delta(struct xrdp_orders *self, int *vals, int count)
/*****************************************************************************/
/* returns error */
-static int APP_CC
+static int
xrdp_orders_out_bounds(struct xrdp_orders *self, struct xrdp_rect *rect)
{
char *bounds_flags_ptr;
@@ -428,7 +428,7 @@ xrdp_orders_out_bounds(struct xrdp_orders *self, struct xrdp_rect *rect)
/*****************************************************************************/
/* returns error */
-static int APP_CC
+static int
xrdp_order_pack_small_or_tiny(struct xrdp_orders *self,
char *order_flags_ptr, int orders_flags,
char *present_ptr, int present,
@@ -485,7 +485,7 @@ xrdp_order_pack_small_or_tiny(struct xrdp_orders *self,
/* returns error */
/* send a solid rect to client */
/* max size 23 */
-int APP_CC
+int
xrdp_orders_rect(struct xrdp_orders *self, int x, int y, int cx, int cy,
int color, struct xrdp_rect *rect)
{
@@ -655,7 +655,7 @@ xrdp_orders_rect(struct xrdp_orders *self, int x, int y, int cx, int cy,
/* returns error */
/* send a screen blt order */
/* max size 25 */
-int APP_CC
+int
xrdp_orders_screen_blt(struct xrdp_orders *self, int x, int y,
int cx, int cy, int srcx, int srcy,
int rop, struct xrdp_rect *rect)
@@ -845,7 +845,7 @@ xrdp_orders_screen_blt(struct xrdp_orders *self, int x, int y,
/* returns error */
/* send a pat blt order */
/* max size 39 */
-int APP_CC
+int
xrdp_orders_pat_blt(struct xrdp_orders *self, int x, int y,
int cx, int cy, int rop, int bg_color,
int fg_color, struct xrdp_brush *brush,
@@ -1064,7 +1064,7 @@ xrdp_orders_pat_blt(struct xrdp_orders *self, int x, int y,
/* returns error */
/* send a dest blt order */
/* max size 21 */
-int APP_CC
+int
xrdp_orders_dest_blt(struct xrdp_orders *self, int x, int y,
int cx, int cy, int rop,
struct xrdp_rect *rect)
@@ -1218,7 +1218,7 @@ xrdp_orders_dest_blt(struct xrdp_orders *self, int x, int y,
/* returns error */
/* send a line order */
/* max size 32 */
-int APP_CC
+int
xrdp_orders_line(struct xrdp_orders *self, int mix_mode,
int startx, int starty,
int endx, int endy, int rop, int bg_color,
@@ -1436,7 +1436,7 @@ xrdp_orders_line(struct xrdp_orders *self, int mix_mode,
/* returns error */
/* send a mem blt order */
/* max size 30 */
-int APP_CC
+int
xrdp_orders_mem_blt(struct xrdp_orders *self, int cache_id,
int color_table, int x, int y, int cx, int cy,
int rop, int srcx, int srcy,
@@ -1642,7 +1642,7 @@ xrdp_orders_mem_blt(struct xrdp_orders *self, int cache_id,
/*****************************************************************************/
/* returns error */
-int APP_CC
+int
xrdp_orders_composite_blt(struct xrdp_orders* self, int srcidx, int srcformat,
int srcwidth, int srcrepeat, int* srctransform,
int mskflags, int mskidx, int mskformat,
@@ -1971,7 +1971,7 @@ xrdp_orders_composite_blt(struct xrdp_orders* self, int srcidx, int srcformat,
/*****************************************************************************/
/* returns error */
-int APP_CC
+int
xrdp_orders_text(struct xrdp_orders *self,
int font, int flags, int mixmode,
int fg_color, int bg_color,
@@ -2168,7 +2168,7 @@ xrdp_orders_text(struct xrdp_orders *self,
/*****************************************************************************/
/* returns error */
/* when a palette gets sent, send the main palette too */
-int APP_CC
+int
xrdp_orders_send_palette(struct xrdp_orders *self, int *palette,
int cache_id)
{
@@ -2204,7 +2204,7 @@ xrdp_orders_send_palette(struct xrdp_orders *self, int *palette,
/*****************************************************************************/
/* returns error */
/* max size width * height * Bpp + 16 */
-int APP_CC
+int
xrdp_orders_send_raw_bitmap(struct xrdp_orders *self,
int width, int height, int bpp, char *data,
int cache_id, int cache_idx)
@@ -2324,7 +2324,7 @@ xrdp_orders_send_raw_bitmap(struct xrdp_orders *self,
/*****************************************************************************/
/* returns error */
/* max size width * height * Bpp + 16 */
-int APP_CC
+int
xrdp_orders_send_bitmap(struct xrdp_orders *self,
int width, int height, int bpp, char *data,
int cache_id, int cache_idx)
@@ -2432,7 +2432,7 @@ xrdp_orders_send_bitmap(struct xrdp_orders *self,
/* returns error */
/* max size datasize + 18*/
/* todo, only sends one for now */
-int APP_CC
+int
xrdp_orders_send_font(struct xrdp_orders *self,
struct xrdp_font_char *font_char,
int font_index, int char_index)
@@ -2477,7 +2477,7 @@ xrdp_orders_send_font(struct xrdp_orders *self,
/*****************************************************************************/
/* returns error */
/* max size width * height * Bpp + 14 */
-int APP_CC
+int
xrdp_orders_send_raw_bitmap2(struct xrdp_orders *self,
int width, int height, int bpp, char *data,
int cache_id, int cache_idx)
@@ -2599,7 +2599,7 @@ xrdp_orders_send_raw_bitmap2(struct xrdp_orders *self,
/*****************************************************************************/
/* returns error */
/* max size width * height * Bpp + 14 */
-int APP_CC
+int
xrdp_orders_send_bitmap2(struct xrdp_orders *self,
int width, int height, int bpp, char *data,
int cache_id, int cache_idx, int hints)
@@ -2712,7 +2712,7 @@ xrdp_orders_send_as_jpeg(struct xrdp_orders *self,
#if defined(XRDP_NEUTRINORDP)
/*****************************************************************************/
/* secondary drawing order (bitmap v3) using remotefx compression */
-static int APP_CC
+static int
xrdp_orders_send_as_rfx(struct xrdp_orders *self,
int width, int height, int bpp,
int hints)
@@ -2740,7 +2740,7 @@ xrdp_orders_send_as_rfx(struct xrdp_orders *self,
#if defined(XRDP_JPEG) || defined(XRDP_NEUTRINORDP)
/*****************************************************************************/
-static int APP_CC
+static int
xrdp_orders_out_v3(struct xrdp_orders *self, int cache_id, int cache_idx,
char *buf, int bufsize, int width, int height, int bpp,
int codec_id)
@@ -2783,7 +2783,7 @@ xrdp_orders_out_v3(struct xrdp_orders *self, int cache_id, int cache_idx,
/*****************************************************************************/
/* secondary drawing order (bitmap v3) using remotefx compression */
-int APP_CC
+int
xrdp_orders_send_bitmap3(struct xrdp_orders *self,
int width, int height, int bpp, char *data,
int cache_id, int cache_idx, int hints)
@@ -2891,7 +2891,7 @@ xrdp_orders_send_bitmap3(struct xrdp_orders *self,
/*****************************************************************************/
/* returns error */
/* send a brush cache entry */
-int APP_CC
+int
xrdp_orders_send_brush(struct xrdp_orders *self, int width, int height,
int bpp, int type, int size, char *data, int cache_id)
{
@@ -2922,7 +2922,7 @@ xrdp_orders_send_brush(struct xrdp_orders *self, int width, int height,
/*****************************************************************************/
/* returns error */
/* send an off screen bitmap entry */
-int APP_CC
+int
xrdp_orders_send_create_os_surface(struct xrdp_orders *self, int id,
int width, int height,
struct list *del_list)
@@ -2981,7 +2981,7 @@ xrdp_orders_send_create_os_surface(struct xrdp_orders *self, int id,
/*****************************************************************************/
/* returns error */
-int APP_CC
+int
xrdp_orders_send_switch_os_surface(struct xrdp_orders *self, int id)
{
int order_flags;