server: Remove no longer used attach_console request.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-09-16 20:39:54 +02:00 committed by Alexandre Julliard
parent ca95afd37f
commit 3d31e52fe7
5 changed files with 1 additions and 63 deletions

View File

@ -1850,18 +1850,6 @@ struct free_console_reply
struct attach_console_request
{
struct request_header __header;
process_id_t pid;
};
struct attach_console_reply
{
struct reply_header __header;
};
struct get_console_wait_event_request struct get_console_wait_event_request
{ {
struct request_header __header; struct request_header __header;
@ -5522,7 +5510,6 @@ enum request
REQ_set_socket_deferred, REQ_set_socket_deferred,
REQ_alloc_console, REQ_alloc_console,
REQ_free_console, REQ_free_console,
REQ_attach_console,
REQ_get_console_wait_event, REQ_get_console_wait_event,
REQ_append_console_input_history, REQ_append_console_input_history,
REQ_get_console_input_history, REQ_get_console_input_history,
@ -5811,7 +5798,6 @@ union generic_request
struct set_socket_deferred_request set_socket_deferred_request; struct set_socket_deferred_request set_socket_deferred_request;
struct alloc_console_request alloc_console_request; struct alloc_console_request alloc_console_request;
struct free_console_request free_console_request; struct free_console_request free_console_request;
struct attach_console_request attach_console_request;
struct get_console_wait_event_request get_console_wait_event_request; struct get_console_wait_event_request get_console_wait_event_request;
struct append_console_input_history_request append_console_input_history_request; struct append_console_input_history_request append_console_input_history_request;
struct get_console_input_history_request get_console_input_history_request; struct get_console_input_history_request get_console_input_history_request;
@ -6098,7 +6084,6 @@ union generic_reply
struct set_socket_deferred_reply set_socket_deferred_reply; struct set_socket_deferred_reply set_socket_deferred_reply;
struct alloc_console_reply alloc_console_reply; struct alloc_console_reply alloc_console_reply;
struct free_console_reply free_console_reply; struct free_console_reply free_console_reply;
struct attach_console_reply attach_console_reply;
struct get_console_wait_event_reply get_console_wait_event_reply; struct get_console_wait_event_reply get_console_wait_event_reply;
struct append_console_input_history_reply append_console_input_history_reply; struct append_console_input_history_reply append_console_input_history_reply;
struct get_console_input_history_reply get_console_input_history_reply; struct get_console_input_history_reply get_console_input_history_reply;
@ -6320,7 +6305,7 @@ union generic_reply
/* ### protocol_version begin ### */ /* ### protocol_version begin ### */
#define SERVER_PROTOCOL_VERSION 641 #define SERVER_PROTOCOL_VERSION 642
/* ### protocol_version end ### */ /* ### protocol_version end ### */

View File

@ -2565,35 +2565,6 @@ DECL_HANDLER(free_console)
free_console( current->process ); free_console( current->process );
} }
/* attach to a other process's console */
DECL_HANDLER(attach_console)
{
struct process *process;
if (current->process->console)
{
set_error( STATUS_ACCESS_DENIED );
return;
}
process = get_process_from_id( req->pid == ATTACH_PARENT_PROCESS
? current->process->parent_id : req->pid );
if (!process) return;
if (process->console && process->console->active)
{
current->process->console = (struct console_input *)grab_object( process->console );
current->process->console->num_proc++;
}
else
{
set_error( STATUS_INVALID_HANDLE );
}
release_object( process );
return;
}
/* appends a string to console's history */ /* appends a string to console's history */
DECL_HANDLER(append_console_input_history) DECL_HANDLER(append_console_input_history)
{ {

View File

@ -1472,12 +1472,6 @@ enum server_fd_type
@END @END
/* Attach to a other process's console */
@REQ(attach_console)
process_id_t pid; /* pid of attached console process */
@END
/* Get the input queue wait event */ /* Get the input queue wait event */
@REQ(get_console_wait_event) @REQ(get_console_wait_event)
obj_handle_t handle; /* handle to the console */ obj_handle_t handle; /* handle to the console */

View File

@ -183,7 +183,6 @@ DECL_HANDLER(enable_socket_event);
DECL_HANDLER(set_socket_deferred); DECL_HANDLER(set_socket_deferred);
DECL_HANDLER(alloc_console); DECL_HANDLER(alloc_console);
DECL_HANDLER(free_console); DECL_HANDLER(free_console);
DECL_HANDLER(attach_console);
DECL_HANDLER(get_console_wait_event); DECL_HANDLER(get_console_wait_event);
DECL_HANDLER(append_console_input_history); DECL_HANDLER(append_console_input_history);
DECL_HANDLER(get_console_input_history); DECL_HANDLER(get_console_input_history);
@ -471,7 +470,6 @@ static const req_handler req_handlers[REQ_NB_REQUESTS] =
(req_handler)req_set_socket_deferred, (req_handler)req_set_socket_deferred,
(req_handler)req_alloc_console, (req_handler)req_alloc_console,
(req_handler)req_free_console, (req_handler)req_free_console,
(req_handler)req_attach_console,
(req_handler)req_get_console_wait_event, (req_handler)req_get_console_wait_event,
(req_handler)req_append_console_input_history, (req_handler)req_append_console_input_history,
(req_handler)req_get_console_input_history, (req_handler)req_get_console_input_history,
@ -1108,8 +1106,6 @@ C_ASSERT( sizeof(struct alloc_console_request) == 32 );
C_ASSERT( FIELD_OFFSET(struct alloc_console_reply, handle_in) == 8 ); C_ASSERT( FIELD_OFFSET(struct alloc_console_reply, handle_in) == 8 );
C_ASSERT( sizeof(struct alloc_console_reply) == 16 ); C_ASSERT( sizeof(struct alloc_console_reply) == 16 );
C_ASSERT( sizeof(struct free_console_request) == 16 ); C_ASSERT( sizeof(struct free_console_request) == 16 );
C_ASSERT( FIELD_OFFSET(struct attach_console_request, pid) == 12 );
C_ASSERT( sizeof(struct attach_console_request) == 16 );
C_ASSERT( FIELD_OFFSET(struct get_console_wait_event_request, handle) == 12 ); C_ASSERT( FIELD_OFFSET(struct get_console_wait_event_request, handle) == 12 );
C_ASSERT( sizeof(struct get_console_wait_event_request) == 16 ); C_ASSERT( sizeof(struct get_console_wait_event_request) == 16 );
C_ASSERT( FIELD_OFFSET(struct get_console_wait_event_reply, event) == 8 ); C_ASSERT( FIELD_OFFSET(struct get_console_wait_event_reply, event) == 8 );

View File

@ -2044,11 +2044,6 @@ static void dump_free_console_request( const struct free_console_request *req )
{ {
} }
static void dump_attach_console_request( const struct attach_console_request *req )
{
fprintf( stderr, " pid=%04x", req->pid );
}
static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req ) static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
{ {
fprintf( stderr, " handle=%04x", req->handle ); fprintf( stderr, " handle=%04x", req->handle );
@ -4493,7 +4488,6 @@ static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
(dump_func)dump_set_socket_deferred_request, (dump_func)dump_set_socket_deferred_request,
(dump_func)dump_alloc_console_request, (dump_func)dump_alloc_console_request,
(dump_func)dump_free_console_request, (dump_func)dump_free_console_request,
(dump_func)dump_attach_console_request,
(dump_func)dump_get_console_wait_event_request, (dump_func)dump_get_console_wait_event_request,
(dump_func)dump_append_console_input_history_request, (dump_func)dump_append_console_input_history_request,
(dump_func)dump_get_console_input_history_request, (dump_func)dump_get_console_input_history_request,
@ -4778,7 +4772,6 @@ static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
NULL, NULL,
(dump_func)dump_alloc_console_reply, (dump_func)dump_alloc_console_reply,
NULL, NULL,
NULL,
(dump_func)dump_get_console_wait_event_reply, (dump_func)dump_get_console_wait_event_reply,
NULL, NULL,
(dump_func)dump_get_console_input_history_reply, (dump_func)dump_get_console_input_history_reply,
@ -5063,7 +5056,6 @@ static const char * const req_names[REQ_NB_REQUESTS] = {
"set_socket_deferred", "set_socket_deferred",
"alloc_console", "alloc_console",
"free_console", "free_console",
"attach_console",
"get_console_wait_event", "get_console_wait_event",
"append_console_input_history", "append_console_input_history",
"get_console_input_history", "get_console_input_history",