diff options
Diffstat (limited to 'sesman/chansrv/chansrv.c')
-rw-r--r-- | sesman/chansrv/chansrv.c | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c index a56b80d9..e2fd2db9 100644 --- a/sesman/chansrv/chansrv.c +++ b/sesman/chansrv/chansrv.c @@ -93,7 +93,7 @@ static struct timeout_obj *g_timeout_head = 0; static struct timeout_obj *g_timeout_tail = 0; /*****************************************************************************/ -int APP_CC +int add_timeout(int msoffset, void (*callback)(void *data), void *data) { struct timeout_obj *tobj; @@ -119,7 +119,7 @@ add_timeout(int msoffset, void (*callback)(void *data), void *data) } /*****************************************************************************/ -static int APP_CC +static int get_timeout(int *timeout) { struct timeout_obj *tobj; @@ -165,7 +165,7 @@ get_timeout(int *timeout) } /*****************************************************************************/ -static int APP_CC +static int check_timeout(void) { struct timeout_obj *tobj; @@ -219,7 +219,7 @@ check_timeout(void) } /*****************************************************************************/ -int DEFAULT_CC +int g_is_term(void) { return g_is_wait_obj_set(g_term_event); @@ -228,7 +228,7 @@ g_is_term(void) /*****************************************************************************/ /* add data to chan_item, on its way to the client */ /* returns error */ -static int APP_CC +static int add_data_to_chan_item(struct chan_item *chan_item, char *data, int size) { struct stream *s; @@ -257,7 +257,7 @@ add_data_to_chan_item(struct chan_item *chan_item, char *data, int size) /*****************************************************************************/ /* returns error */ -static int APP_CC +static int send_data_from_chan_item(struct chan_item *chan_item) { struct stream *s; @@ -327,7 +327,7 @@ send_data_from_chan_item(struct chan_item *chan_item) /*****************************************************************************/ /* returns error */ -static int APP_CC +static int check_chan_items(void) { int index; @@ -345,7 +345,7 @@ check_chan_items(void) /*****************************************************************************/ /* returns error */ -int APP_CC +int send_channel_data(int chan_id, char *data, int size) { int index; @@ -375,7 +375,7 @@ send_channel_data(int chan_id, char *data, int size) /*****************************************************************************/ /* returns error */ -int APP_CC +int send_rail_drawing_orders(char* data, int size) { LOGM((LOG_LEVEL_DEBUG, "chansrv::send_rail_drawing_orders: size %d", size)); @@ -400,7 +400,7 @@ send_rail_drawing_orders(char* data, int size) /*****************************************************************************/ /* returns error */ -static int APP_CC +static int send_init_response_message(void) { struct stream *s = (struct stream *)NULL; @@ -423,7 +423,7 @@ send_init_response_message(void) /*****************************************************************************/ /* returns error */ -static int APP_CC +static int send_channel_setup_response_message(void) { struct stream *s = (struct stream *)NULL; @@ -446,7 +446,7 @@ send_channel_setup_response_message(void) /*****************************************************************************/ /* returns error */ -static int APP_CC +static int send_channel_data_response_message(void) { struct stream *s = (struct stream *)NULL; @@ -469,7 +469,7 @@ send_channel_data_response_message(void) /*****************************************************************************/ /* returns error */ -static int APP_CC +static int process_message_init(struct stream *s) { LOGM((LOG_LEVEL_DEBUG, "process_message_init:")); @@ -478,7 +478,7 @@ process_message_init(struct stream *s) /*****************************************************************************/ /* returns error */ -static int APP_CC +static int process_message_channel_setup(struct stream *s) { int num_chans; @@ -604,7 +604,7 @@ process_message_channel_setup(struct stream *s) /*****************************************************************************/ /* returns error */ -static int APP_CC +static int process_message_channel_data(struct stream *s) { int chan_id = 0; @@ -683,7 +683,7 @@ process_message_channel_data(struct stream *s) /*****************************************************************************/ /* returns error */ -static int APP_CC +static int process_message_channel_data_response(struct stream *s) { LOG(10, ("process_message_channel_data_response:")); @@ -693,7 +693,7 @@ process_message_channel_data_response(struct stream *s) /*****************************************************************************/ /* returns error */ -static int APP_CC +static int process_message(void) { struct stream *s = (struct stream *)NULL; @@ -755,7 +755,7 @@ process_message(void) /*****************************************************************************/ /* returns error */ -int DEFAULT_CC +int my_trans_data_in(struct trans *trans) { struct stream *s = (struct stream *)NULL; @@ -791,7 +791,7 @@ my_trans_data_in(struct trans *trans) * called when WTSVirtualChannelWrite() is invoked in xrdpapi.c * ******************************************************************************/ -int DEFAULT_CC +int my_api_trans_data_in(struct trans *trans) { struct stream *s; @@ -885,7 +885,7 @@ my_api_trans_data_in(struct trans *trans) } /*****************************************************************************/ -int DEFAULT_CC +int my_trans_conn_in(struct trans *trans, struct trans *new_trans) { if (trans == 0) @@ -922,7 +922,7 @@ my_trans_conn_in(struct trans *trans, struct trans *new_trans) * called when WTSVirtualChannelOpenEx is invoked in xrdpapi.c * ******************************************************************************/ -int DEFAULT_CC +int my_api_trans_conn_in(struct trans *trans, struct trans *new_trans) { struct xrdp_api_data *ad; @@ -1016,7 +1016,7 @@ my_api_trans_conn_in(struct trans *trans, struct trans *new_trans) } /*****************************************************************************/ -static int APP_CC +static int setup_listen(void) { char port[256]; @@ -1054,7 +1054,7 @@ setup_listen(void) } /*****************************************************************************/ -static int APP_CC +static int setup_api_listen(void) { char port[256]; @@ -1235,7 +1235,7 @@ channel_thread_loop(void *in_val) } /*****************************************************************************/ -void DEFAULT_CC +void term_signal_handler(int sig) { LOGM((LOG_LEVEL_INFO, "term_signal_handler: got signal %d", sig)); @@ -1243,14 +1243,14 @@ term_signal_handler(int sig) } /*****************************************************************************/ -void DEFAULT_CC +void nil_signal_handler(int sig) { LOGM((LOG_LEVEL_INFO, "nil_signal_handler: got signal %d", sig)); } /*****************************************************************************/ -void DEFAULT_CC +void child_signal_handler(int sig) { int pid; @@ -1270,7 +1270,7 @@ child_signal_handler(int sig) } /*****************************************************************************/ -void DEFAULT_CC +void segfault_signal_handler(int sig) { LOG(0, ("segfault_signal_handler: entered.......")); @@ -1279,7 +1279,7 @@ segfault_signal_handler(int sig) } /*****************************************************************************/ -static int APP_CC +static int get_display_num_from_display(char *display_text) { int index; @@ -1338,7 +1338,7 @@ get_display_num_from_display(char *display_text) } /*****************************************************************************/ -int APP_CC +int main_cleanup(void) { g_delete_wait_obj(g_term_event); @@ -1350,7 +1350,7 @@ main_cleanup(void) } /*****************************************************************************/ -static int APP_CC +static int read_ini(void) { char filename[256]; @@ -1391,7 +1391,7 @@ read_ini(void) } /*****************************************************************************/ -static int APP_CC +static int get_log_path(char *path, int bytes) { char* log_path; @@ -1443,7 +1443,7 @@ get_log_path(char *path, int bytes) } /*****************************************************************************/ -static enum logLevels APP_CC +static enum logLevels get_log_level(const char* level_str, enum logLevels default_level) { static const char* levels[] = { @@ -1470,7 +1470,7 @@ get_log_level(const char* level_str, enum logLevels default_level) } /*****************************************************************************/ -static int APP_CC +static int run_exec(void) { int pid; @@ -1497,7 +1497,7 @@ run_exec(void) } /*****************************************************************************/ -int DEFAULT_CC +int main(int argc, char **argv) { tbus waiters[4]; @@ -1640,7 +1640,7 @@ main(int argc, char **argv) * * @return unused slot index on success, -1 on failure ******************************************************************************/ -int APP_CC +int find_empty_slot_in_dvc_channels(void) { int i; @@ -1663,7 +1663,7 @@ find_empty_slot_in_dvc_channels(void) * * @return xrdp_api_data struct containing dvc_chan_id or NULL on failure ******************************************************************************/ -struct xrdp_api_data *APP_CC +struct xrdp_api_data * struct_from_dvc_chan_id(tui32 dvc_chan_id) { int i; |