mirror of https://github.com/neutrinolabs/xrdp
Merge pull request #2829 from firewave/missing-prototypes
fixed `-Wmissing-prototypes` (and subsequent) compiler warnings
This commit is contained in:
commit
15b46f8ccf
|
@ -341,16 +341,6 @@ list_dump_items(struct list *self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
/**
|
|
||||||
* Appends a string fragment to a list
|
|
||||||
* @param[in,out] start Pointer to start of fragment (by reference)
|
|
||||||
* @param end Pointer to one past end of fragment
|
|
||||||
* @param list List to append to
|
|
||||||
* @result 1 for success
|
|
||||||
*
|
|
||||||
* In the event of a memory failure, 0 is returned and the list is deleted.
|
|
||||||
*/
|
|
||||||
int
|
int
|
||||||
split_string_append_fragment(const char **start, const char *end,
|
split_string_append_fragment(const char **start, const char *end,
|
||||||
struct list *list)
|
struct list *list)
|
||||||
|
|
|
@ -95,6 +95,19 @@ list_append_list_strdup(struct list *self, struct list *dest, int start_index);
|
||||||
void
|
void
|
||||||
list_dump_items(struct list *self);
|
list_dump_items(struct list *self);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appends a string fragment to a list
|
||||||
|
* @param[in,out] start Pointer to start of fragment (by reference)
|
||||||
|
* @param end Pointer to one past end of fragment
|
||||||
|
* @param list List to append to
|
||||||
|
* @result 1 for success
|
||||||
|
*
|
||||||
|
* In the event of a memory failure, 0 is returned and the list is deleted.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
split_string_append_fragment(const char **start, const char *end,
|
||||||
|
struct list *list);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Splits a string on a separation character and then returns a list of
|
* Splits a string on a separation character and then returns a list of
|
||||||
* the string split by the character, without the character contained within
|
* the string split by the character, without the character contained within
|
||||||
|
|
|
@ -55,7 +55,7 @@ static struct log_config *g_staticLogConfig = NULL;
|
||||||
* @return see open(2) return values
|
* @return see open(2) return values
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
int
|
static int
|
||||||
internal_log_file_open(const char *fname)
|
internal_log_file_open(const char *fname)
|
||||||
{
|
{
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
@ -88,7 +88,7 @@ internal_log_file_open(const char *fname)
|
||||||
* @return syslog equivalent logging level
|
* @return syslog equivalent logging level
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
int
|
static int
|
||||||
internal_log_xrdp2syslog(const enum logLevels lvl)
|
internal_log_xrdp2syslog(const enum logLevels lvl)
|
||||||
{
|
{
|
||||||
switch (lvl)
|
switch (lvl)
|
||||||
|
@ -275,7 +275,7 @@ internal_log_text2level(const char *buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
struct log_config *
|
static struct log_config *
|
||||||
internal_config_read_logging(int file,
|
internal_config_read_logging(int file,
|
||||||
const char *applicationName,
|
const char *applicationName,
|
||||||
const char *section_prefix)
|
const char *section_prefix)
|
||||||
|
@ -547,7 +547,7 @@ internal_log_config_copy_levels(struct log_config *dest,
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
internal_log_config_copy(struct log_config *dest, const struct log_config *src)
|
internal_log_config_copy(struct log_config *dest, const struct log_config *src)
|
||||||
{
|
{
|
||||||
if (src != NULL && dest != NULL)
|
if (src != NULL && dest != NULL)
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -68,7 +68,7 @@ typedef signed int overflow_int_t;
|
||||||
|
|
||||||
#define critical_if_fail(expr)
|
#define critical_if_fail(expr)
|
||||||
|
|
||||||
int _pixman_log_error(const char *func, const char *format, ...)
|
static int _pixman_log_error(const char *func, const char *format, ...)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1525,7 +1525,7 @@ ssl_get_protocols_from_string(const char *str, long *ssl_protocols)
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
const char
|
const char
|
||||||
*get_openssl_version()
|
*get_openssl_version(void)
|
||||||
{
|
{
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||||
return SSLeay_version(SSLEAY_VERSION);
|
return SSLeay_version(SSLEAY_VERSION);
|
||||||
|
|
|
@ -108,7 +108,7 @@ ssl_get_cipher_name(const struct ssl_tls *ssl);
|
||||||
int
|
int
|
||||||
ssl_get_protocols_from_string(const char *str, long *ssl_protocols);
|
ssl_get_protocols_from_string(const char *str, long *ssl_protocols);
|
||||||
const char *
|
const char *
|
||||||
get_openssl_version();
|
get_openssl_version(void);
|
||||||
tintptr
|
tintptr
|
||||||
ssl_get_rwo(const struct ssl_tls *ssl);
|
ssl_get_rwo(const struct ssl_tls *ssl);
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
#define CONNECT_DELAY_ON_FAIL_MS 2000
|
#define CONNECT_DELAY_ON_FAIL_MS 2000
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
static int
|
||||||
trans_tls_recv(struct trans *self, char *ptr, int len)
|
trans_tls_recv(struct trans *self, char *ptr, int len)
|
||||||
{
|
{
|
||||||
if (self->tls == NULL)
|
if (self->tls == NULL)
|
||||||
|
@ -49,7 +49,7 @@ trans_tls_recv(struct trans *self, char *ptr, int len)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
static int
|
||||||
trans_tls_send(struct trans *self, const char *data, int len)
|
trans_tls_send(struct trans *self, const char *data, int len)
|
||||||
{
|
{
|
||||||
if (self->tls == NULL)
|
if (self->tls == NULL)
|
||||||
|
@ -60,7 +60,7 @@ trans_tls_send(struct trans *self, const char *data, int len)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
static int
|
||||||
trans_tls_can_recv(struct trans *self, int sck, int millis)
|
trans_tls_can_recv(struct trans *self, int sck, int millis)
|
||||||
{
|
{
|
||||||
if (self->tls == NULL)
|
if (self->tls == NULL)
|
||||||
|
@ -71,21 +71,21 @@ trans_tls_can_recv(struct trans *self, int sck, int millis)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
static int
|
||||||
trans_tcp_recv(struct trans *self, char *ptr, int len)
|
trans_tcp_recv(struct trans *self, char *ptr, int len)
|
||||||
{
|
{
|
||||||
return g_tcp_recv(self->sck, ptr, len, 0);
|
return g_tcp_recv(self->sck, ptr, len, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
static int
|
||||||
trans_tcp_send(struct trans *self, const char *data, int len)
|
trans_tcp_send(struct trans *self, const char *data, int len)
|
||||||
{
|
{
|
||||||
return g_tcp_send(self->sck, data, len, 0);
|
return g_tcp_send(self->sck, data, len, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
static int
|
||||||
trans_tcp_can_recv(struct trans *self, int sck, int millis)
|
trans_tcp_can_recv(struct trans *self, int sck, int millis)
|
||||||
{
|
{
|
||||||
return g_sck_can_recv(sck, millis);
|
return g_sck_can_recv(sck, millis);
|
||||||
|
@ -235,7 +235,7 @@ trans_get_wait_objs_rw(struct trans *self, tbus *robjs, int *rcount,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
static int
|
||||||
trans_send_waiting(struct trans *self, int block)
|
trans_send_waiting(struct trans *self, int block)
|
||||||
{
|
{
|
||||||
struct stream *temp_s;
|
struct stream *temp_s;
|
||||||
|
|
|
@ -206,6 +206,7 @@ AX_GCC_FUNC_ATTRIBUTE([format])
|
||||||
AX_TYPE_SOCKLEN_T
|
AX_TYPE_SOCKLEN_T
|
||||||
AX_CFLAGS_WARN_ALL
|
AX_CFLAGS_WARN_ALL
|
||||||
AX_APPEND_COMPILE_FLAGS([-Wwrite-strings])
|
AX_APPEND_COMPILE_FLAGS([-Wwrite-strings])
|
||||||
|
AX_APPEND_COMPILE_FLAGS([-Wmissing-prototypes], ,[-Werror])
|
||||||
|
|
||||||
AM_COND_IF([LINUX],
|
AM_COND_IF([LINUX],
|
||||||
[AX_APPEND_COMPILE_FLAGS([-Werror])]) # bsd has warnings that have not been fixed yet
|
[AX_APPEND_COMPILE_FLAGS([-Werror])]) # bsd has warnings that have not been fixed yet
|
||||||
|
|
|
@ -231,7 +231,7 @@ fv1_file_free(struct fv1_file *fv1)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
static int
|
||||||
write_stream(int fd, struct stream *s)
|
write_stream(int fd, struct stream *s)
|
||||||
{
|
{
|
||||||
const char *p = s->data;
|
const char *p = s->data;
|
||||||
|
|
|
@ -427,7 +427,7 @@ xrdp_caps_process_input(struct xrdp_rdp *self, struct stream *s,
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* get the type of client brush cache */
|
/* get the type of client brush cache */
|
||||||
int
|
static int
|
||||||
xrdp_caps_process_brushcache(struct xrdp_rdp *self, struct stream *s,
|
xrdp_caps_process_brushcache(struct xrdp_rdp *self, struct stream *s,
|
||||||
int len)
|
int len)
|
||||||
{
|
{
|
||||||
|
@ -471,7 +471,7 @@ xrdp_caps_process_glyphcache(struct xrdp_rdp *self, struct stream *s,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
static int
|
||||||
xrdp_caps_process_offscreen_bmpcache(struct xrdp_rdp *self, struct stream *s,
|
xrdp_caps_process_offscreen_bmpcache(struct xrdp_rdp *self, struct stream *s,
|
||||||
int len)
|
int len)
|
||||||
{
|
{
|
||||||
|
@ -497,7 +497,7 @@ xrdp_caps_process_offscreen_bmpcache(struct xrdp_rdp *self, struct stream *s,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
static int
|
||||||
xrdp_caps_process_rail(struct xrdp_rdp *self, struct stream *s, int len)
|
xrdp_caps_process_rail(struct xrdp_rdp *self, struct stream *s, int len)
|
||||||
{
|
{
|
||||||
int i32;
|
int i32;
|
||||||
|
|
|
@ -49,14 +49,6 @@ xrdp_fastpath_delete(struct xrdp_fastpath *self)
|
||||||
g_free(self);
|
g_free(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
|
||||||
/* returns error */
|
|
||||||
int
|
|
||||||
xrdp_fastpath_reset(struct xrdp_fastpath *self)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
int
|
||||||
xrdp_fastpath_recv(struct xrdp_fastpath *self, struct stream *s)
|
xrdp_fastpath_recv(struct xrdp_fastpath *self, struct stream *s)
|
||||||
|
|
|
@ -878,7 +878,7 @@ xrdp_mcs_out_domain_params(struct xrdp_mcs *self, struct stream *s,
|
||||||
* with ConnectGCCPDU, ConferenceCreateResponse,
|
* with ConnectGCCPDU, ConferenceCreateResponse,
|
||||||
* and [MS-RDPBCGR] Server Data Blocks as user data.
|
* and [MS-RDPBCGR] Server Data Blocks as user data.
|
||||||
*/
|
*/
|
||||||
int
|
static int
|
||||||
xrdp_mcs_out_gcc_data(struct xrdp_sec *self)
|
xrdp_mcs_out_gcc_data(struct xrdp_sec *self)
|
||||||
{
|
{
|
||||||
struct stream *s;
|
struct stream *s;
|
||||||
|
@ -1490,7 +1490,7 @@ xrdp_mcs_send(struct xrdp_mcs *self, struct stream *s, int chan)
|
||||||
* Internal help function to close the socket
|
* Internal help function to close the socket
|
||||||
* @param self
|
* @param self
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
close_rdp_socket(struct xrdp_mcs *self)
|
close_rdp_socket(struct xrdp_mcs *self)
|
||||||
{
|
{
|
||||||
if (self->iso_layer != 0)
|
if (self->iso_layer != 0)
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#include <config_ac.h>
|
#include <config_ac.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "xrdp_orders_rail.h"
|
||||||
#include "libxrdp.h"
|
#include "libxrdp.h"
|
||||||
#include "ms-rdpegdi.h"
|
#include "ms-rdpegdi.h"
|
||||||
#include "xrdp_rail.h"
|
#include "xrdp_rail.h"
|
||||||
|
|
|
@ -2511,7 +2511,7 @@ xrdp_sec_process_mcs_data_monitors(struct xrdp_sec *self, struct stream *s)
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* Process a [MS-RDPBCGR] TS_UD_CS_MONITOR_EX message.
|
/* Process a [MS-RDPBCGR] TS_UD_CS_MONITOR_EX message.
|
||||||
reads the client monitor's extended data */
|
reads the client monitor's extended data */
|
||||||
int
|
static int
|
||||||
xrdp_sec_process_mcs_data_monitors_ex(struct xrdp_sec *self, struct stream *s)
|
xrdp_sec_process_mcs_data_monitors_ex(struct xrdp_sec *self, struct stream *s)
|
||||||
{
|
{
|
||||||
int flags;
|
int flags;
|
||||||
|
@ -2755,7 +2755,7 @@ xrdp_sec_in_mcs_data(struct xrdp_sec *self)
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
xrdp_sec_init_rdp_security(struct xrdp_sec *self)
|
xrdp_sec_init_rdp_security(struct xrdp_sec *self)
|
||||||
{
|
{
|
||||||
switch (self->rdp_layer->client_info.crypt_level)
|
switch (self->rdp_layer->client_info.crypt_level)
|
||||||
|
|
12
mc/mc.c
12
mc/mc.c
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_start(struct mod *mod, int w, int h, int bpp)
|
lib_mod_start(struct mod *mod, int w, int h, int bpp)
|
||||||
{
|
{
|
||||||
LOG_DEVEL(LOG_LEVEL_TRACE, "in lib_mod_start");
|
LOG_DEVEL(LOG_LEVEL_TRACE, "in lib_mod_start");
|
||||||
|
@ -40,7 +40,7 @@ lib_mod_start(struct mod *mod, int w, int h, int bpp)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_connect(struct mod *mod)
|
lib_mod_connect(struct mod *mod)
|
||||||
{
|
{
|
||||||
LOG_DEVEL(LOG_LEVEL_TRACE, "in lib_mod_connect");
|
LOG_DEVEL(LOG_LEVEL_TRACE, "in lib_mod_connect");
|
||||||
|
@ -50,7 +50,7 @@ lib_mod_connect(struct mod *mod)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_event(struct mod *mod, int msg, long param1, long param2,
|
lib_mod_event(struct mod *mod, int msg, long param1, long param2,
|
||||||
long param3, long param4)
|
long param3, long param4)
|
||||||
{
|
{
|
||||||
|
@ -61,7 +61,7 @@ lib_mod_event(struct mod *mod, int msg, long param1, long param2,
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_signal(struct mod *mod)
|
lib_mod_signal(struct mod *mod)
|
||||||
{
|
{
|
||||||
LOG_DEVEL(LOG_LEVEL_TRACE, "in lib_mod_signal");
|
LOG_DEVEL(LOG_LEVEL_TRACE, "in lib_mod_signal");
|
||||||
|
@ -71,7 +71,7 @@ lib_mod_signal(struct mod *mod)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_end(struct mod *mod)
|
lib_mod_end(struct mod *mod)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -79,7 +79,7 @@ lib_mod_end(struct mod *mod)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_set_param(struct mod *mod, const char *name, const char *value)
|
lib_mod_set_param(struct mod *mod, const char *name, const char *value)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -27,6 +27,8 @@
|
||||||
#include "os_calls.h"
|
#include "os_calls.h"
|
||||||
#include "string_calls.h"
|
#include "string_calls.h"
|
||||||
|
|
||||||
|
#include "xrdp-color.h"
|
||||||
|
|
||||||
char *
|
char *
|
||||||
convert_bitmap(int in_bpp, int out_bpp, char *bmpdata,
|
convert_bitmap(int in_bpp, int out_bpp, char *bmpdata,
|
||||||
int width, int height, int *palette)
|
int width, int height, int *palette)
|
||||||
|
|
|
@ -2041,7 +2041,7 @@ lfreerdp_pre_connect(freerdp *instance)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
lrail_WindowCreate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
lrail_WindowCreate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
WINDOW_STATE_ORDER *window_state)
|
WINDOW_STATE_ORDER *window_state)
|
||||||
{
|
{
|
||||||
|
@ -2122,7 +2122,7 @@ lrail_WindowCreate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
lrail_WindowUpdate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
lrail_WindowUpdate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
WINDOW_STATE_ORDER *window_state)
|
WINDOW_STATE_ORDER *window_state)
|
||||||
{
|
{
|
||||||
|
@ -2131,7 +2131,7 @@ lrail_WindowUpdate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
lrail_WindowDelete(rdpContext *context, WINDOW_ORDER_INFO *orderInfo)
|
lrail_WindowDelete(rdpContext *context, WINDOW_ORDER_INFO *orderInfo)
|
||||||
{
|
{
|
||||||
struct mod *mod;
|
struct mod *mod;
|
||||||
|
@ -2142,7 +2142,7 @@ lrail_WindowDelete(rdpContext *context, WINDOW_ORDER_INFO *orderInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
lrail_WindowIcon(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
lrail_WindowIcon(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
WINDOW_ICON_ORDER *window_icon)
|
WINDOW_ICON_ORDER *window_icon)
|
||||||
{
|
{
|
||||||
|
@ -2168,7 +2168,7 @@ lrail_WindowIcon(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
lrail_WindowCachedIcon(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
lrail_WindowCachedIcon(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
WINDOW_CACHED_ICON_ORDER *window_cached_icon)
|
WINDOW_CACHED_ICON_ORDER *window_cached_icon)
|
||||||
{
|
{
|
||||||
|
@ -2183,7 +2183,7 @@ lrail_WindowCachedIcon(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
lrail_NotifyIconCreate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
lrail_NotifyIconCreate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
NOTIFY_ICON_STATE_ORDER *notify_icon_state)
|
NOTIFY_ICON_STATE_ORDER *notify_icon_state)
|
||||||
{
|
{
|
||||||
|
@ -2240,7 +2240,7 @@ lrail_NotifyIconCreate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
lrail_NotifyIconUpdate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
lrail_NotifyIconUpdate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
NOTIFY_ICON_STATE_ORDER *notify_icon_state)
|
NOTIFY_ICON_STATE_ORDER *notify_icon_state)
|
||||||
{
|
{
|
||||||
|
@ -2249,7 +2249,7 @@ lrail_NotifyIconUpdate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
lrail_NotifyIconDelete(rdpContext *context, WINDOW_ORDER_INFO *orderInfo)
|
lrail_NotifyIconDelete(rdpContext *context, WINDOW_ORDER_INFO *orderInfo)
|
||||||
{
|
{
|
||||||
struct mod *mod;
|
struct mod *mod;
|
||||||
|
@ -2261,7 +2261,7 @@ lrail_NotifyIconDelete(rdpContext *context, WINDOW_ORDER_INFO *orderInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
lrail_MonitoredDesktop(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
lrail_MonitoredDesktop(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
MONITORED_DESKTOP_ORDER *monitored_desktop)
|
MONITORED_DESKTOP_ORDER *monitored_desktop)
|
||||||
{
|
{
|
||||||
|
@ -2293,7 +2293,7 @@ lrail_MonitoredDesktop(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
lrail_NonMonitoredDesktop(rdpContext *context, WINDOW_ORDER_INFO *orderInfo)
|
lrail_NonMonitoredDesktop(rdpContext *context, WINDOW_ORDER_INFO *orderInfo)
|
||||||
{
|
{
|
||||||
struct mod *mod;
|
struct mod *mod;
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "xrdp_constants.h"
|
#include "xrdp_constants.h"
|
||||||
#include "fifo.h"
|
#include "fifo.h"
|
||||||
|
#include "audin.h"
|
||||||
|
|
||||||
#define MSG_SNDIN_VERSION 1
|
#define MSG_SNDIN_VERSION 1
|
||||||
#define MSG_SNDIN_FORMATS 2
|
#define MSG_SNDIN_FORMATS 2
|
||||||
|
|
|
@ -894,7 +894,7 @@ process_message(void)
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
my_trans_data_in(struct trans *trans)
|
my_trans_data_in(struct trans *trans)
|
||||||
{
|
{
|
||||||
struct stream *s = (struct stream *)NULL;
|
struct stream *s = (struct stream *)NULL;
|
||||||
|
@ -938,7 +938,7 @@ my_trans_data_in(struct trans *trans)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
struct trans *
|
static struct trans *
|
||||||
get_api_trans_from_chan_id(int chan_id)
|
get_api_trans_from_chan_id(int chan_id)
|
||||||
{
|
{
|
||||||
return g_drdynvcs[chan_id].xrdp_api_trans;
|
return g_drdynvcs[chan_id].xrdp_api_trans;
|
||||||
|
@ -1038,7 +1038,7 @@ my_api_data(int chan_id, char *data, int bytes)
|
||||||
* called when WTSVirtualChannelWrite() is invoked in xrdpapi.c
|
* called when WTSVirtualChannelWrite() is invoked in xrdpapi.c
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
int
|
static int
|
||||||
my_api_trans_data_in(struct trans *trans)
|
my_api_trans_data_in(struct trans *trans)
|
||||||
{
|
{
|
||||||
struct stream *s;
|
struct stream *s;
|
||||||
|
@ -1172,7 +1172,7 @@ my_api_trans_data_in(struct trans *trans)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
static int
|
||||||
my_trans_conn_in(struct trans *trans, struct trans *new_trans)
|
my_trans_conn_in(struct trans *trans, struct trans *new_trans)
|
||||||
{
|
{
|
||||||
if (trans == 0)
|
if (trans == 0)
|
||||||
|
@ -1209,7 +1209,7 @@ my_trans_conn_in(struct trans *trans, struct trans *new_trans)
|
||||||
* called when WTSVirtualChannelOpenEx is invoked in xrdpapi.c
|
* called when WTSVirtualChannelOpenEx is invoked in xrdpapi.c
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
int
|
static int
|
||||||
my_api_trans_conn_in(struct trans *trans, struct trans *new_trans)
|
my_api_trans_conn_in(struct trans *trans, struct trans *new_trans)
|
||||||
{
|
{
|
||||||
struct xrdp_api_data *ad;
|
struct xrdp_api_data *ad;
|
||||||
|
@ -1377,7 +1377,7 @@ api_con_trans_list_remove_all(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
THREAD_RV THREAD_CC
|
static THREAD_RV THREAD_CC
|
||||||
channel_thread_loop(void *in_val)
|
channel_thread_loop(void *in_val)
|
||||||
{
|
{
|
||||||
tbus objs[32];
|
tbus objs[32];
|
||||||
|
@ -1538,7 +1538,7 @@ child_signal_handler(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
segfault_signal_handler(int sig)
|
segfault_signal_handler(int sig)
|
||||||
{
|
{
|
||||||
LOG_DEVEL(LOG_LEVEL_ERROR, "segfault_signal_handler: entered.......");
|
LOG_DEVEL(LOG_LEVEL_ERROR, "segfault_signal_handler: entered.......");
|
||||||
|
|
|
@ -413,21 +413,21 @@ static unsigned int format_user_info(char *dest, unsigned int len,
|
||||||
const char *format);
|
const char *format);
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
static int
|
||||||
load_fuse_config(void)
|
load_fuse_config(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
XFUSE_HANDLE *
|
static XFUSE_HANDLE *
|
||||||
xfuse_handle_create()
|
xfuse_handle_create()
|
||||||
{
|
{
|
||||||
return g_new0(XFUSE_HANDLE, 1);
|
return g_new0(XFUSE_HANDLE, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
xfuse_handle_delete(XFUSE_HANDLE *self)
|
xfuse_handle_delete(XFUSE_HANDLE *self)
|
||||||
{
|
{
|
||||||
if (self == NULL)
|
if (self == NULL)
|
||||||
|
@ -443,14 +443,14 @@ xfuse_handle_delete(XFUSE_HANDLE *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
uint64_t
|
static uint64_t
|
||||||
xfuse_handle_to_fuse_handle(XFUSE_HANDLE *self)
|
xfuse_handle_to_fuse_handle(XFUSE_HANDLE *self)
|
||||||
{
|
{
|
||||||
return (uint64_t) (tintptr) self;
|
return (uint64_t) (tintptr) self;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
XFUSE_HANDLE *
|
static XFUSE_HANDLE *
|
||||||
xfuse_handle_from_fuse_handle(uint64_t handle)
|
xfuse_handle_from_fuse_handle(uint64_t handle)
|
||||||
{
|
{
|
||||||
return (XFUSE_HANDLE *) (tintptr) handle;
|
return (XFUSE_HANDLE *) (tintptr) handle;
|
||||||
|
|
|
@ -191,10 +191,11 @@ devredir_deinit(void)
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef USE_DEVEL_LOGGING
|
||||||
/*
|
/*
|
||||||
* Convert a COMPLETION_TYPE to a string
|
* Convert a COMPLETION_TYPE to a string
|
||||||
*/
|
*/
|
||||||
const char *completion_type_to_str(enum COMPLETION_TYPE cid)
|
static const char *completion_type_to_str(enum COMPLETION_TYPE cid)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
(cid == CID_CREATE_DIR_REQ) ? "CID_CREATE_DIR_REQ" :
|
(cid == CID_CREATE_DIR_REQ) ? "CID_CREATE_DIR_REQ" :
|
||||||
|
@ -213,6 +214,7 @@ const char *completion_type_to_str(enum COMPLETION_TYPE cid)
|
||||||
(cid == CID_SETATTR) ? "CID_SETATTR" :
|
(cid == CID_SETATTR) ? "CID_SETATTR" :
|
||||||
/* default */ "<unknown>";
|
/* default */ "<unknown>";
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -360,7 +360,7 @@ rail_deinit(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
rail_startup(void)
|
rail_startup(void)
|
||||||
{
|
{
|
||||||
int dummy;
|
int dummy;
|
||||||
|
@ -565,7 +565,7 @@ rail_close_window(int window_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
my_timeout(void *data)
|
my_timeout(void *data)
|
||||||
{
|
{
|
||||||
LOG_DEVEL(LOG_LEVEL_DEBUG, "my_timeout: g_got_focus %d", g_got_focus);
|
LOG_DEVEL(LOG_LEVEL_DEBUG, "my_timeout: g_got_focus %d", g_got_focus);
|
||||||
|
@ -1327,7 +1327,7 @@ rail_destroy_window(Window window_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
static int
|
int
|
||||||
rail_show_window(Window window_id, int show_state)
|
rail_show_window(Window window_id, int show_state)
|
||||||
{
|
{
|
||||||
int flags;
|
int flags;
|
||||||
|
@ -1510,7 +1510,7 @@ rail_create_window(Window window_id, Window owner_id)
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns 0, event handled, 1 unhandled */
|
/* returns 0, event handled, 1 unhandled */
|
||||||
int
|
static int
|
||||||
rail_configure_request_window(XConfigureRequestEvent *config)
|
rail_configure_request_window(XConfigureRequestEvent *config)
|
||||||
{
|
{
|
||||||
int num_window_rects = 1;
|
int num_window_rects = 1;
|
||||||
|
@ -1714,8 +1714,9 @@ rail_configure_request_window(XConfigureRequestEvent *config)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
#if 0
|
||||||
/* returns 0, event handled, 1 unhandled */
|
/* returns 0, event handled, 1 unhandled */
|
||||||
int
|
static int
|
||||||
rail_configure_window(XConfigureEvent *config)
|
rail_configure_window(XConfigureEvent *config)
|
||||||
{
|
{
|
||||||
int num_window_rects = 1;
|
int num_window_rects = 1;
|
||||||
|
@ -1796,6 +1797,7 @@ rail_configure_window(XConfigureEvent *config)
|
||||||
free_stream(s);
|
free_stream(s);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
static int
|
static int
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
#include "trans.h"
|
#include "trans.h"
|
||||||
#include "chansrv.h"
|
#include "chansrv.h"
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
|
#include "smartcard_pcsc.h"
|
||||||
|
|
||||||
#if PCSC_STANDIN
|
#if PCSC_STANDIN
|
||||||
|
|
||||||
|
@ -147,7 +148,7 @@ get_uds_client_by_id(int uds_client_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
struct pcsc_context *
|
static struct pcsc_context *
|
||||||
get_pcsc_context_by_app_context(struct pcsc_uds_client *uds_client,
|
get_pcsc_context_by_app_context(struct pcsc_uds_client *uds_client,
|
||||||
tui32 app_context)
|
tui32 app_context)
|
||||||
{
|
{
|
||||||
|
@ -175,7 +176,7 @@ get_pcsc_context_by_app_context(struct pcsc_uds_client *uds_client,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
struct pcsc_card *
|
static struct pcsc_card *
|
||||||
get_pcsc_card_by_app_card(struct pcsc_uds_client *uds_client,
|
get_pcsc_card_by_app_card(struct pcsc_uds_client *uds_client,
|
||||||
tui32 app_card, struct pcsc_context **acontext)
|
tui32 app_card, struct pcsc_context **acontext)
|
||||||
{
|
{
|
||||||
|
@ -441,7 +442,7 @@ scard_pcsc_check_wait_objs(void)
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
scard_process_establish_context(struct trans *con, struct stream *in_s)
|
scard_process_establish_context(struct trans *con, struct stream *in_s)
|
||||||
{
|
{
|
||||||
int dwScope;
|
int dwScope;
|
||||||
|
@ -525,7 +526,7 @@ scard_function_establish_context_return(void *user_data,
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
scard_process_release_context(struct trans *con, struct stream *in_s)
|
scard_process_release_context(struct trans *con, struct stream *in_s)
|
||||||
{
|
{
|
||||||
int hContext;
|
int hContext;
|
||||||
|
@ -601,7 +602,7 @@ struct pcsc_list_readers
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
scard_process_list_readers(struct trans *con, struct stream *in_s)
|
scard_process_list_readers(struct trans *con, struct stream *in_s)
|
||||||
{
|
{
|
||||||
int hContext;
|
int hContext;
|
||||||
|
@ -662,7 +663,7 @@ scard_process_list_readers(struct trans *con, struct stream *in_s)
|
||||||
* The string is guaranteed to have at least the returned number of NULL
|
* The string is guaranteed to have at least the returned number of NULL
|
||||||
* characters in it
|
* characters in it
|
||||||
*/
|
*/
|
||||||
unsigned int
|
static unsigned int
|
||||||
count_multistring_elements(const char *str, unsigned int len)
|
count_multistring_elements(const char *str, unsigned int len)
|
||||||
{
|
{
|
||||||
unsigned int rv = 0;
|
unsigned int rv = 0;
|
||||||
|
@ -822,7 +823,7 @@ scard_function_list_readers_return(void *user_data,
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
scard_process_connect(struct trans *con, struct stream *in_s)
|
scard_process_connect(struct trans *con, struct stream *in_s)
|
||||||
{
|
{
|
||||||
int hContext;
|
int hContext;
|
||||||
|
@ -925,7 +926,7 @@ scard_function_connect_return(void *user_data,
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
scard_process_disconnect(struct trans *con, struct stream *in_s)
|
scard_process_disconnect(struct trans *con, struct stream *in_s)
|
||||||
{
|
{
|
||||||
int hCard;
|
int hCard;
|
||||||
|
@ -995,7 +996,7 @@ scard_function_disconnect_return(void *user_data,
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
scard_process_begin_transaction(struct trans *con, struct stream *in_s)
|
scard_process_begin_transaction(struct trans *con, struct stream *in_s)
|
||||||
{
|
{
|
||||||
int hCard;
|
int hCard;
|
||||||
|
@ -1065,7 +1066,7 @@ scard_function_begin_transaction_return(void *user_data,
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
scard_process_end_transaction(struct trans *con, struct stream *in_s)
|
scard_process_end_transaction(struct trans *con, struct stream *in_s)
|
||||||
{
|
{
|
||||||
int hCard;
|
int hCard;
|
||||||
|
@ -1157,7 +1158,7 @@ struct pcsc_transmit
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
scard_process_transmit(struct trans *con, struct stream *in_s)
|
scard_process_transmit(struct trans *con, struct stream *in_s)
|
||||||
{
|
{
|
||||||
int hCard;
|
int hCard;
|
||||||
|
@ -1298,7 +1299,7 @@ scard_function_transmit_return(void *user_data,
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
scard_process_control(struct trans *con, struct stream *in_s)
|
scard_process_control(struct trans *con, struct stream *in_s)
|
||||||
{
|
{
|
||||||
int hCard;
|
int hCard;
|
||||||
|
@ -1400,7 +1401,7 @@ struct pcsc_status
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
scard_process_status(struct trans *con, struct stream *in_s)
|
scard_process_status(struct trans *con, struct stream *in_s)
|
||||||
{
|
{
|
||||||
int hCard;
|
int hCard;
|
||||||
|
@ -1588,7 +1589,7 @@ scard_function_status_return(void *user_data,
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
scard_process_get_status_change(struct trans *con, struct stream *in_s)
|
scard_process_get_status_change(struct trans *con, struct stream *in_s)
|
||||||
{
|
{
|
||||||
int index;
|
int index;
|
||||||
|
@ -1725,7 +1726,7 @@ scard_function_get_status_change_return(void *user_data,
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
scard_process_cancel(struct trans *con, struct stream *in_s)
|
scard_process_cancel(struct trans *con, struct stream *in_s)
|
||||||
{
|
{
|
||||||
int hContext;
|
int hContext;
|
||||||
|
@ -1811,7 +1812,7 @@ int scard_function_reconnect_return(void *user_data,
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
scard_process_msg(struct trans *con, struct stream *in_s, int command)
|
scard_process_msg(struct trans *con, struct stream *in_s, int command)
|
||||||
{
|
{
|
||||||
int rv;
|
int rv;
|
||||||
|
@ -1906,7 +1907,7 @@ scard_process_msg(struct trans *con, struct stream *in_s, int command)
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
my_pcsc_trans_data_in(struct trans *trans)
|
my_pcsc_trans_data_in(struct trans *trans)
|
||||||
{
|
{
|
||||||
struct stream *s;
|
struct stream *s;
|
||||||
|
@ -1933,7 +1934,7 @@ my_pcsc_trans_data_in(struct trans *trans)
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* got a new connection from libpcsclite */
|
/* got a new connection from libpcsclite */
|
||||||
int
|
static int
|
||||||
my_pcsc_trans_conn_in(struct trans *trans, struct trans *new_trans)
|
my_pcsc_trans_conn_in(struct trans *trans, struct trans *new_trans)
|
||||||
{
|
{
|
||||||
struct pcsc_uds_client *uds_client;
|
struct pcsc_uds_client *uds_client;
|
||||||
|
|
|
@ -155,7 +155,7 @@ session_data_free(struct session_data *session_data)
|
||||||
* @param len the allocated len for outstr
|
* @param len the allocated len for outstr
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
char *
|
static char *
|
||||||
dumpItemsToString(struct list *self, char *outstr, int len)
|
dumpItemsToString(struct list *self, char *outstr, int len)
|
||||||
{
|
{
|
||||||
int index;
|
int index;
|
||||||
|
@ -557,7 +557,7 @@ fork_child(
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
enum scp_screate_status
|
static enum scp_screate_status
|
||||||
session_start_wrapped(struct login_info *login_info,
|
session_start_wrapped(struct login_info *login_info,
|
||||||
const struct session_parameters *s,
|
const struct session_parameters *s,
|
||||||
struct session_data *sd)
|
struct session_data *sd)
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include "xauth.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "os_calls.h"
|
#include "os_calls.h"
|
||||||
#include "string_calls.h"
|
#include "string_calls.h"
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include "config_ac.h"
|
#include "config_ac.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "tools_common.h"
|
||||||
#include "trans.h"
|
#include "trans.h"
|
||||||
#include "os_calls.h"
|
#include "os_calls.h"
|
||||||
#include "scp.h"
|
#include "scp.h"
|
||||||
|
|
|
@ -147,10 +147,6 @@ START_TEST(test_list__simple_strdup_multi)
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
int
|
|
||||||
split_string_append_fragment(const char **start, const char *end,
|
|
||||||
struct list *list);
|
|
||||||
|
|
||||||
START_TEST(test_list__append_fragment)
|
START_TEST(test_list__append_fragment)
|
||||||
{
|
{
|
||||||
struct list *l = list_create();
|
struct list *l = list_create();
|
||||||
|
|
|
@ -11,7 +11,7 @@ struct xrdp_sec *sec_layer;
|
||||||
struct xrdp_rdp *rdp_layer;
|
struct xrdp_rdp *rdp_layer;
|
||||||
struct xrdp_session *session;
|
struct xrdp_session *session;
|
||||||
|
|
||||||
void setup(void)
|
static void setup(void)
|
||||||
{
|
{
|
||||||
rdp_layer = (struct xrdp_rdp *)g_malloc(sizeof(struct xrdp_rdp), 1);
|
rdp_layer = (struct xrdp_rdp *)g_malloc(sizeof(struct xrdp_rdp), 1);
|
||||||
session = (struct xrdp_session *)g_malloc(sizeof(struct xrdp_session), 1);
|
session = (struct xrdp_session *)g_malloc(sizeof(struct xrdp_session), 1);
|
||||||
|
@ -22,7 +22,7 @@ void setup(void)
|
||||||
sec_layer->rdp_layer = rdp_layer;
|
sec_layer->rdp_layer = rdp_layer;
|
||||||
}
|
}
|
||||||
|
|
||||||
void teardown(void)
|
static void teardown(void)
|
||||||
{
|
{
|
||||||
g_free(sec_layer);
|
g_free(sec_layer);
|
||||||
g_free(session);
|
g_free(session);
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "libmem.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
#define ALIGN_BY 32
|
#define ALIGN_BY 32
|
||||||
|
|
|
@ -48,11 +48,11 @@ static int WHITE = COLOR24RGB(255, 255, 255);
|
||||||
/* Time to allow some large bitmap test suites to run on slower platforms */
|
/* Time to allow some large bitmap test suites to run on slower platforms */
|
||||||
#define LARGE_BM_TEST_SUITE_TIMEOUT 10
|
#define LARGE_BM_TEST_SUITE_TIMEOUT 10
|
||||||
|
|
||||||
void setup(void)
|
static void setup(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void teardown(void)
|
static void teardown(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,8 @@ static pixman_box16_t test_box =
|
||||||
0, 0, 100, 100
|
0, 0, 100, 100
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// cmocka requires this to be externally linkable
|
||||||
|
extern pixman_box16_t *__wrap_pixman_region_extents(pixman_region16_t *region);
|
||||||
pixman_box16_t *__wrap_pixman_region_extents(pixman_region16_t *region)
|
pixman_box16_t *__wrap_pixman_region_extents(pixman_region16_t *region)
|
||||||
{
|
{
|
||||||
check_expected_ptr(region);
|
check_expected_ptr(region);
|
||||||
|
@ -107,6 +109,8 @@ static void test_xrdp_region_get_bounds__happy_path(void **state)
|
||||||
g_free(rect);
|
g_free(rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// cmocka requires this to be externally linkable
|
||||||
|
extern pixman_bool_t __wrap_pixman_region_not_empty(pixman_region16_t *region);
|
||||||
pixman_bool_t __wrap_pixman_region_not_empty(pixman_region16_t *region)
|
pixman_bool_t __wrap_pixman_region_not_empty(pixman_region16_t *region)
|
||||||
{
|
{
|
||||||
check_expected_ptr(region);
|
check_expected_ptr(region);
|
||||||
|
|
|
@ -299,14 +299,14 @@ usage(void)
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void
|
static void
|
||||||
proxy_shutdown(int sig)
|
proxy_shutdown(int sig)
|
||||||
{
|
{
|
||||||
LOG(LOG_LEVEL_INFO, "shutting down");
|
LOG(LOG_LEVEL_INFO, "shutting down");
|
||||||
g_terminated = 1;
|
g_terminated = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
clear_counters(int sig)
|
clear_counters(int sig)
|
||||||
{
|
{
|
||||||
LOG(LOG_LEVEL_DEBUG, "cleared counters at: local_io_count: %d remote_io_count: %d",
|
LOG(LOG_LEVEL_DEBUG, "cleared counters at: local_io_count: %d remote_io_count: %d",
|
||||||
|
|
46
vnc/vnc.c
46
vnc/vnc.c
|
@ -444,7 +444,7 @@ resize_server_to_client_layout(struct vnc *v)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int
|
static int
|
||||||
lib_mod_event(struct vnc *v, int msg, long param1, long param2,
|
lib_mod_event(struct vnc *v, int msg, long param1, long param2,
|
||||||
long param3, long param4)
|
long param3, long param4)
|
||||||
{
|
{
|
||||||
|
@ -619,7 +619,7 @@ lib_mod_event(struct vnc *v, int msg, long param1, long param2,
|
||||||
}
|
}
|
||||||
|
|
||||||
//******************************************************************************
|
//******************************************************************************
|
||||||
int
|
static int
|
||||||
get_pixel_safe(char *data, int x, int y, int width, int height, int bpp)
|
get_pixel_safe(char *data, int x, int y, int width, int height, int bpp)
|
||||||
{
|
{
|
||||||
int start = 0;
|
int start = 0;
|
||||||
|
@ -688,7 +688,7 @@ get_pixel_safe(char *data, int x, int y, int width, int height, int bpp)
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
void
|
static void
|
||||||
set_pixel_safe(char *data, int x, int y, int width, int height, int bpp,
|
set_pixel_safe(char *data, int x, int y, int width, int height, int bpp,
|
||||||
int pixel)
|
int pixel)
|
||||||
{
|
{
|
||||||
|
@ -747,7 +747,7 @@ set_pixel_safe(char *data, int x, int y, int width, int height, int bpp,
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
int
|
static int
|
||||||
split_color(int pixel, int *r, int *g, int *b, int bpp, int *palette)
|
split_color(int pixel, int *r, int *g, int *b, int bpp, int *palette)
|
||||||
{
|
{
|
||||||
if (bpp == 8)
|
if (bpp == 8)
|
||||||
|
@ -786,7 +786,7 @@ split_color(int pixel, int *r, int *g, int *b, int bpp, int *palette)
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
int
|
static int
|
||||||
make_color(int r, int g, int b, int bpp)
|
make_color(int r, int g, int b, int bpp)
|
||||||
{
|
{
|
||||||
if (bpp == 24)
|
if (bpp == 24)
|
||||||
|
@ -1229,7 +1229,7 @@ lib_framebuffer_waiting_for_resize_confirm(struct vnc *v)
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
int
|
static int
|
||||||
lib_framebuffer_update(struct vnc *v)
|
lib_framebuffer_update(struct vnc *v)
|
||||||
{
|
{
|
||||||
char *d1;
|
char *d1;
|
||||||
|
@ -1249,9 +1249,9 @@ lib_framebuffer_update(struct vnc *v)
|
||||||
int srcy;
|
int srcy;
|
||||||
unsigned int encoding;
|
unsigned int encoding;
|
||||||
int pixel;
|
int pixel;
|
||||||
int r;
|
int r = 0;
|
||||||
int g;
|
int g = 0;
|
||||||
int b;
|
int b = 0;
|
||||||
int error;
|
int error;
|
||||||
int need_size;
|
int need_size;
|
||||||
struct stream *s;
|
struct stream *s;
|
||||||
|
@ -1418,7 +1418,7 @@ lib_framebuffer_update(struct vnc *v)
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
int
|
static int
|
||||||
lib_palette_update(struct vnc *v)
|
lib_palette_update(struct vnc *v)
|
||||||
{
|
{
|
||||||
struct stream *s;
|
struct stream *s;
|
||||||
|
@ -1474,7 +1474,7 @@ lib_palette_update(struct vnc *v)
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
int
|
static int
|
||||||
lib_bell_trigger(struct vnc *v)
|
lib_bell_trigger(struct vnc *v)
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
|
@ -1484,7 +1484,7 @@ lib_bell_trigger(struct vnc *v)
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
int
|
static int
|
||||||
lib_mod_signal(struct vnc *v)
|
lib_mod_signal(struct vnc *v)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1543,7 +1543,7 @@ lib_mod_process_message(struct vnc *v, struct stream *s)
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
int
|
static int
|
||||||
lib_mod_start(struct vnc *v, int w, int h, int bpp)
|
lib_mod_start(struct vnc *v, int w, int h, int bpp)
|
||||||
{
|
{
|
||||||
v->server_begin_update(v);
|
v->server_begin_update(v);
|
||||||
|
@ -1591,7 +1591,7 @@ lib_data_in(struct trans *trans)
|
||||||
/*
|
/*
|
||||||
return error
|
return error
|
||||||
*/
|
*/
|
||||||
int
|
static int
|
||||||
lib_mod_connect(struct vnc *v)
|
lib_mod_connect(struct vnc *v)
|
||||||
{
|
{
|
||||||
char cursor_data[32 * (32 * 3)];
|
char cursor_data[32 * (32 * 3)];
|
||||||
|
@ -2001,7 +2001,7 @@ lib_mod_connect(struct vnc *v)
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
int
|
static int
|
||||||
lib_mod_end(struct vnc *v)
|
lib_mod_end(struct vnc *v)
|
||||||
{
|
{
|
||||||
if (v->vnc_desktop != 0)
|
if (v->vnc_desktop != 0)
|
||||||
|
@ -2052,7 +2052,7 @@ init_client_layout(struct vnc *v,
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
int
|
static int
|
||||||
lib_mod_set_param(struct vnc *v, const char *name, const char *value)
|
lib_mod_set_param(struct vnc *v, const char *name, const char *value)
|
||||||
{
|
{
|
||||||
if (g_strcasecmp(name, "username") == 0)
|
if (g_strcasecmp(name, "username") == 0)
|
||||||
|
@ -2111,7 +2111,7 @@ lib_mod_set_param(struct vnc *v, const char *name, const char *value)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_get_wait_objs(struct vnc *v, tbus *read_objs, int *rcount,
|
lib_mod_get_wait_objs(struct vnc *v, tbus *read_objs, int *rcount,
|
||||||
tbus *write_objs, int *wcount, int *timeout)
|
tbus *write_objs, int *wcount, int *timeout)
|
||||||
{
|
{
|
||||||
|
@ -2131,7 +2131,7 @@ lib_mod_get_wait_objs(struct vnc *v, tbus *read_objs, int *rcount,
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_check_wait_objs(struct vnc *v)
|
lib_mod_check_wait_objs(struct vnc *v)
|
||||||
{
|
{
|
||||||
int rv;
|
int rv;
|
||||||
|
@ -2153,7 +2153,7 @@ lib_mod_check_wait_objs(struct vnc *v)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_frame_ack(struct vnc *v, int flags, int frame_id)
|
lib_mod_frame_ack(struct vnc *v, int flags, int frame_id)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -2161,7 +2161,7 @@ lib_mod_frame_ack(struct vnc *v, int flags, int frame_id)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_suppress_output(struct vnc *v, int suppress,
|
lib_mod_suppress_output(struct vnc *v, int suppress,
|
||||||
int left, int top, int right, int bottom)
|
int left, int top, int right, int bottom)
|
||||||
{
|
{
|
||||||
|
@ -2189,7 +2189,7 @@ lib_mod_suppress_output(struct vnc *v, int suppress,
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_server_version_message(struct vnc *v)
|
lib_mod_server_version_message(struct vnc *v)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -2197,7 +2197,7 @@ lib_mod_server_version_message(struct vnc *v)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_server_monitor_resize(struct vnc *v, int width, int height,
|
lib_mod_server_monitor_resize(struct vnc *v, int width, int height,
|
||||||
int num_monitors,
|
int num_monitors,
|
||||||
const struct monitor_info *monitors,
|
const struct monitor_info *monitors,
|
||||||
|
@ -2226,7 +2226,7 @@ lib_mod_server_monitor_resize(struct vnc *v, int width, int height,
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_server_monitor_full_invalidate(struct vnc *v, int param1, int param2)
|
lib_mod_server_monitor_full_invalidate(struct vnc *v, int param1, int param2)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -804,7 +804,7 @@ vnc_clip_exit(struct vnc *v)
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
int
|
static int
|
||||||
vnc_clip_process_eclip_pdu(struct vnc *v, struct stream *s)
|
vnc_clip_process_eclip_pdu(struct vnc *v, struct stream *s)
|
||||||
{
|
{
|
||||||
int type;
|
int type;
|
||||||
|
|
|
@ -56,6 +56,7 @@ xrdp_SOURCES = \
|
||||||
xrdp_listen.c \
|
xrdp_listen.c \
|
||||||
xrdp_login_wnd.c \
|
xrdp_login_wnd.c \
|
||||||
xrdp_mm.c \
|
xrdp_mm.c \
|
||||||
|
xrdp_mm.h \
|
||||||
xrdp_painter.c \
|
xrdp_painter.c \
|
||||||
xrdp_process.c \
|
xrdp_process.c \
|
||||||
xrdp_region.c \
|
xrdp_region.c \
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
#include "xrdp_egfx.h"
|
#include "xrdp_egfx.h"
|
||||||
#include "libxrdp.h"
|
#include "libxrdp.h"
|
||||||
#include "xrdp_channel.h"
|
#include "xrdp_channel.h"
|
||||||
|
#include "xrdp_mm.h"
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#define MAX_PART_SIZE 0xFFFF
|
#define MAX_PART_SIZE 0xFFFF
|
||||||
|
@ -928,10 +929,6 @@ xrdp_egfx_open_response(intptr_t id, int chan_id, int creation_status)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
advance_resize_state_machine(struct xrdp_mm *mm,
|
|
||||||
enum display_resize_state new_state);
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* from client */
|
/* from client */
|
||||||
static int
|
static int
|
||||||
|
|
|
@ -140,7 +140,7 @@ xrdp_listen_delete_done_pro(struct xrdp_listen *self)
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* i can't get stupid in_val to work, hum using global var for now */
|
/* i can't get stupid in_val to work, hum using global var for now */
|
||||||
THREAD_RV THREAD_CC
|
static THREAD_RV THREAD_CC
|
||||||
xrdp_process_run(void *in_val)
|
xrdp_process_run(void *in_val)
|
||||||
{
|
{
|
||||||
struct xrdp_process *process;
|
struct xrdp_process *process;
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#if defined(HAVE_CONFIG_H)
|
#if defined(HAVE_CONFIG_H)
|
||||||
#include <config_ac.h>
|
#include <config_ac.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include "xrdp_mm.h"
|
||||||
#include "xrdp.h"
|
#include "xrdp.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "string_calls.h"
|
#include "string_calls.h"
|
||||||
|
@ -1489,7 +1490,7 @@ xrdp_mm_egfx_frame_ack(void *user, uint32_t queue_depth, int frame_id,
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
int
|
static int
|
||||||
egfx_initialize(struct xrdp_mm *self)
|
egfx_initialize(struct xrdp_mm *self)
|
||||||
{
|
{
|
||||||
LOG_DEVEL(LOG_LEVEL_TRACE, "egfx_initialize");
|
LOG_DEVEL(LOG_LEVEL_TRACE, "egfx_initialize");
|
||||||
|
@ -1988,7 +1989,7 @@ dynamic_monitor_process_queue(struct xrdp_mm *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
int
|
static int
|
||||||
dynamic_monitor_initialize(struct xrdp_mm *self)
|
dynamic_monitor_initialize(struct xrdp_mm *self)
|
||||||
{
|
{
|
||||||
struct xrdp_drdynvc_procs d_procs;
|
struct xrdp_drdynvc_procs d_procs;
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
/**
|
||||||
|
* xrdp: A Remote Desktop Protocol server.
|
||||||
|
*
|
||||||
|
* Copyright (C) Jay Sorg 2023
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*
|
||||||
|
* module manager
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _XRDP_MM_H
|
||||||
|
#define _XRDP_MM_H
|
||||||
|
|
||||||
|
#include "arch.h"
|
||||||
|
#include "trans.h"
|
||||||
|
#include "list16.h"
|
||||||
|
#include "libxrdpinc.h"
|
||||||
|
#include "xrdp_types.h"
|
||||||
|
|
||||||
|
int
|
||||||
|
advance_resize_state_machine(struct xrdp_mm *mm,
|
||||||
|
enum display_resize_state new_state);
|
||||||
|
|
||||||
|
#endif
|
|
@ -289,7 +289,7 @@ xrdp_wm_pointer(struct xrdp_wm *self, char *data, char *mask, int x, int y,
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* returns error */
|
/* returns error */
|
||||||
int
|
static int
|
||||||
xrdp_wm_load_pointer(struct xrdp_wm *self, char *file_name, char *data,
|
xrdp_wm_load_pointer(struct xrdp_wm *self, char *file_name, char *data,
|
||||||
char *mask, int *x, int *y)
|
char *mask, int *x, int *y)
|
||||||
{
|
{
|
||||||
|
|
22
xup/xup.c
22
xup/xup.c
|
@ -52,7 +52,7 @@ lib_send_copy(struct mod *mod, struct stream *s)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_start(struct mod *mod, int w, int h, int bpp)
|
lib_mod_start(struct mod *mod, int w, int h, int bpp)
|
||||||
{
|
{
|
||||||
LOG_DEVEL(LOG_LEVEL_TRACE, "in lib_mod_start");
|
LOG_DEVEL(LOG_LEVEL_TRACE, "in lib_mod_start");
|
||||||
|
@ -147,7 +147,7 @@ lib_data_in(struct trans *trans)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_connect(struct mod *mod)
|
lib_mod_connect(struct mod *mod)
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
|
@ -257,7 +257,7 @@ lib_mod_connect(struct mod *mod)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_event(struct mod *mod, int msg, tbus param1, tbus param2,
|
lib_mod_event(struct mod *mod, int msg, tbus param1, tbus param2,
|
||||||
tbus param3, tbus param4)
|
tbus param3, tbus param4)
|
||||||
{
|
{
|
||||||
|
@ -1230,7 +1230,7 @@ process_server_paint_rect_shmem_ex(struct mod *amod, struct stream *s)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
process_server_egfx_shmfd(struct mod *amod, struct stream *s)
|
process_server_egfx_shmfd(struct mod *amod, struct stream *s)
|
||||||
{
|
{
|
||||||
char *data;
|
char *data;
|
||||||
|
@ -1814,7 +1814,7 @@ lib_mod_process_message(struct mod *mod, struct stream *s)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_signal(struct mod *mod)
|
lib_mod_signal(struct mod *mod)
|
||||||
{
|
{
|
||||||
// no-op
|
// no-op
|
||||||
|
@ -1823,7 +1823,7 @@ lib_mod_signal(struct mod *mod)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_end(struct mod *mod)
|
lib_mod_end(struct mod *mod)
|
||||||
{
|
{
|
||||||
if (mod->screen_shmem_pixels != 0)
|
if (mod->screen_shmem_pixels != 0)
|
||||||
|
@ -1836,7 +1836,7 @@ lib_mod_end(struct mod *mod)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_set_param(struct mod *mod, const char *name, const char *value)
|
lib_mod_set_param(struct mod *mod, const char *name, const char *value)
|
||||||
{
|
{
|
||||||
if (g_strcasecmp(name, "username") == 0)
|
if (g_strcasecmp(name, "username") == 0)
|
||||||
|
@ -1865,7 +1865,7 @@ lib_mod_set_param(struct mod *mod, const char *name, const char *value)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_get_wait_objs(struct mod *mod, tbus *read_objs, int *rcount,
|
lib_mod_get_wait_objs(struct mod *mod, tbus *read_objs, int *rcount,
|
||||||
tbus *write_objs, int *wcount, int *timeout)
|
tbus *write_objs, int *wcount, int *timeout)
|
||||||
{
|
{
|
||||||
|
@ -1882,7 +1882,7 @@ lib_mod_get_wait_objs(struct mod *mod, tbus *read_objs, int *rcount,
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_check_wait_objs(struct mod *mod)
|
lib_mod_check_wait_objs(struct mod *mod)
|
||||||
{
|
{
|
||||||
int rv;
|
int rv;
|
||||||
|
@ -1905,7 +1905,7 @@ lib_mod_check_wait_objs(struct mod *mod)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_frame_ack(struct mod *amod, int flags, int frame_id)
|
lib_mod_frame_ack(struct mod *amod, int flags, int frame_id)
|
||||||
{
|
{
|
||||||
LOG_DEVEL(LOG_LEVEL_TRACE,
|
LOG_DEVEL(LOG_LEVEL_TRACE,
|
||||||
|
@ -1916,7 +1916,7 @@ lib_mod_frame_ack(struct mod *amod, int flags, int frame_id)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* return error */
|
/* return error */
|
||||||
int
|
static int
|
||||||
lib_mod_suppress_output(struct mod *amod, int suppress,
|
lib_mod_suppress_output(struct mod *amod, int suppress,
|
||||||
int left, int top, int right, int bottom)
|
int left, int top, int right, int bottom)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue