Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
946da4f3
Commit
946da4f3
authored
Nov 27, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Rename unbound devices to console_input and console_output.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b2e1c373
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
+32
-32
console.c
server/console.c
+32
-32
No files found.
server/console.c
View file @
946da4f3
...
@@ -290,23 +290,23 @@ static const struct object_ops console_device_ops =
...
@@ -290,23 +290,23 @@ static const struct object_ops console_device_ops =
no_destroy
/* destroy */
no_destroy
/* destroy */
};
};
static
void
input_device
_dump
(
struct
object
*
obj
,
int
verbose
);
static
void
console_input
_dump
(
struct
object
*
obj
,
int
verbose
);
static
struct
object
*
input_device
_open_file
(
struct
object
*
obj
,
unsigned
int
access
,
static
struct
object
*
console_input
_open_file
(
struct
object
*
obj
,
unsigned
int
access
,
unsigned
int
sharing
,
unsigned
int
options
);
unsigned
int
sharing
,
unsigned
int
options
);
static
int
input_device
_add_queue
(
struct
object
*
obj
,
struct
wait_queue_entry
*
entry
);
static
int
console_input
_add_queue
(
struct
object
*
obj
,
struct
wait_queue_entry
*
entry
);
static
struct
fd
*
input_device
_get_fd
(
struct
object
*
obj
);
static
struct
fd
*
console_input
_get_fd
(
struct
object
*
obj
);
static
const
struct
object_ops
input_device
_ops
=
static
const
struct
object_ops
console_input
_ops
=
{
{
sizeof
(
struct
object
),
/* size */
sizeof
(
struct
object
),
/* size */
input_device_dump
,
/* dump */
console_input_dump
,
/* dump */
console_device_get_type
,
/* get_type */
console_device_get_type
,
/* get_type */
input_device_add_queue
,
/* add_queue */
console_input_add_queue
,
/* add_queue */
NULL
,
/* remove_queue */
NULL
,
/* remove_queue */
NULL
,
/* signaled */
NULL
,
/* signaled */
no_satisfied
,
/* satisfied */
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
no_signal
,
/* signal */
input_device_get_fd
,
/* get_fd */
console_input_get_fd
,
/* get_fd */
no_map_access
,
/* map_access */
no_map_access
,
/* map_access */
default_get_sd
,
/* get_sd */
default_get_sd
,
/* get_sd */
default_set_sd
,
/* set_sd */
default_set_sd
,
/* set_sd */
...
@@ -314,29 +314,29 @@ static const struct object_ops input_device_ops =
...
@@ -314,29 +314,29 @@ static const struct object_ops input_device_ops =
no_lookup_name
,
/* lookup_name */
no_lookup_name
,
/* lookup_name */
directory_link_name
,
/* link_name */
directory_link_name
,
/* link_name */
default_unlink_name
,
/* unlink_name */
default_unlink_name
,
/* unlink_name */
input_device_open_file
,
/* open_file */
console_input_open_file
,
/* open_file */
no_kernel_obj_list
,
/* get_kernel_obj_list */
no_kernel_obj_list
,
/* get_kernel_obj_list */
no_close_handle
,
/* close_handle */
no_close_handle
,
/* close_handle */
no_destroy
/* destroy */
no_destroy
/* destroy */
};
};
static
void
output_device
_dump
(
struct
object
*
obj
,
int
verbose
);
static
void
console_output
_dump
(
struct
object
*
obj
,
int
verbose
);
static
int
output_device
_add_queue
(
struct
object
*
obj
,
struct
wait_queue_entry
*
entry
);
static
int
console_output
_add_queue
(
struct
object
*
obj
,
struct
wait_queue_entry
*
entry
);
static
struct
fd
*
output_device
_get_fd
(
struct
object
*
obj
);
static
struct
fd
*
console_output
_get_fd
(
struct
object
*
obj
);
static
struct
object
*
output_device
_open_file
(
struct
object
*
obj
,
unsigned
int
access
,
static
struct
object
*
console_output
_open_file
(
struct
object
*
obj
,
unsigned
int
access
,
unsigned
int
sharing
,
unsigned
int
options
);
unsigned
int
sharing
,
unsigned
int
options
);
static
const
struct
object_ops
output_device
_ops
=
static
const
struct
object_ops
console_output
_ops
=
{
{
sizeof
(
struct
object
),
/* size */
sizeof
(
struct
object
),
/* size */
output_device_dump
,
/* dump */
console_output_dump
,
/* dump */
console_device_get_type
,
/* get_type */
console_device_get_type
,
/* get_type */
output_device_add_queue
,
/* add_queue */
console_output_add_queue
,
/* add_queue */
NULL
,
/* remove_queue */
NULL
,
/* remove_queue */
NULL
,
/* signaled */
NULL
,
/* signaled */
no_satisfied
,
/* satisfied */
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
no_signal
,
/* signal */
output_device_get_fd
,
/* get_fd */
console_output_get_fd
,
/* get_fd */
no_map_access
,
/* map_access */
no_map_access
,
/* map_access */
default_get_sd
,
/* get_sd */
default_get_sd
,
/* get_sd */
default_set_sd
,
/* set_sd */
default_set_sd
,
/* set_sd */
...
@@ -344,7 +344,7 @@ static const struct object_ops output_device_ops =
...
@@ -344,7 +344,7 @@ static const struct object_ops output_device_ops =
no_lookup_name
,
/* lookup_name */
no_lookup_name
,
/* lookup_name */
directory_link_name
,
/* link_name */
directory_link_name
,
/* link_name */
default_unlink_name
,
/* unlink_name */
default_unlink_name
,
/* unlink_name */
output_device_open_file
,
/* open_file */
console_output_open_file
,
/* open_file */
no_kernel_obj_list
,
/* get_kernel_obj_list */
no_kernel_obj_list
,
/* get_kernel_obj_list */
no_close_handle
,
/* close_handle */
no_close_handle
,
/* close_handle */
no_destroy
/* destroy */
no_destroy
/* destroy */
...
@@ -1214,13 +1214,13 @@ static struct object *console_device_lookup_name( struct object *obj, struct uni
...
@@ -1214,13 +1214,13 @@ static struct object *console_device_lookup_name( struct object *obj, struct uni
if
(
name
->
len
==
sizeof
(
inputW
)
&&
!
memcmp
(
name
->
str
,
inputW
,
name
->
len
))
if
(
name
->
len
==
sizeof
(
inputW
)
&&
!
memcmp
(
name
->
str
,
inputW
,
name
->
len
))
{
{
name
->
len
=
0
;
name
->
len
=
0
;
return
alloc_object
(
&
input_device
_ops
);
return
alloc_object
(
&
console_input
_ops
);
}
}
if
(
name
->
len
==
sizeof
(
outputW
)
&&
!
memcmp
(
name
->
str
,
outputW
,
name
->
len
))
if
(
name
->
len
==
sizeof
(
outputW
)
&&
!
memcmp
(
name
->
str
,
outputW
,
name
->
len
))
{
{
name
->
len
=
0
;
name
->
len
=
0
;
return
alloc_object
(
&
output_device
_ops
);
return
alloc_object
(
&
console_output
_ops
);
}
}
if
(
name
->
len
==
sizeof
(
screen_bufferW
)
&&
!
memcmp
(
name
->
str
,
screen_bufferW
,
name
->
len
))
if
(
name
->
len
==
sizeof
(
screen_bufferW
)
&&
!
memcmp
(
name
->
str
,
screen_bufferW
,
name
->
len
))
...
@@ -1268,12 +1268,12 @@ static struct object *console_device_open_file( struct object *obj, unsigned int
...
@@ -1268,12 +1268,12 @@ static struct object *console_device_open_file( struct object *obj, unsigned int
return
is_output
?
grab_object
(
current
->
process
->
console
->
active
)
:
grab_object
(
current
->
process
->
console
);
return
is_output
?
grab_object
(
current
->
process
->
console
->
active
)
:
grab_object
(
current
->
process
->
console
);
}
}
static
void
input_device
_dump
(
struct
object
*
obj
,
int
verbose
)
static
void
console_input
_dump
(
struct
object
*
obj
,
int
verbose
)
{
{
fputs
(
"console Input device
\n
"
,
stderr
);
fputs
(
"console Input device
\n
"
,
stderr
);
}
}
static
int
input_device
_add_queue
(
struct
object
*
obj
,
struct
wait_queue_entry
*
entry
)
static
int
console_input
_add_queue
(
struct
object
*
obj
,
struct
wait_queue_entry
*
entry
)
{
{
if
(
!
current
->
process
->
console
)
if
(
!
current
->
process
->
console
)
{
{
...
@@ -1283,7 +1283,7 @@ static int input_device_add_queue( struct object *obj, struct wait_queue_entry *
...
@@ -1283,7 +1283,7 @@ static int input_device_add_queue( struct object *obj, struct wait_queue_entry *
return
add_queue
(
&
current
->
process
->
console
->
obj
,
entry
);
return
add_queue
(
&
current
->
process
->
console
->
obj
,
entry
);
}
}
static
struct
fd
*
input_device
_get_fd
(
struct
object
*
obj
)
static
struct
fd
*
console_input
_get_fd
(
struct
object
*
obj
)
{
{
if
(
!
current
->
process
->
console
)
if
(
!
current
->
process
->
console
)
{
{
...
@@ -1293,18 +1293,18 @@ static struct fd *input_device_get_fd( struct object *obj )
...
@@ -1293,18 +1293,18 @@ static struct fd *input_device_get_fd( struct object *obj )
return
get_obj_fd
(
&
current
->
process
->
console
->
obj
);
return
get_obj_fd
(
&
current
->
process
->
console
->
obj
);
}
}
static
struct
object
*
input_device
_open_file
(
struct
object
*
obj
,
unsigned
int
access
,
static
struct
object
*
console_input
_open_file
(
struct
object
*
obj
,
unsigned
int
access
,
unsigned
int
sharing
,
unsigned
int
options
)
unsigned
int
sharing
,
unsigned
int
options
)
{
{
return
grab_object
(
obj
);
return
grab_object
(
obj
);
}
}
static
void
output_device
_dump
(
struct
object
*
obj
,
int
verbose
)
static
void
console_output
_dump
(
struct
object
*
obj
,
int
verbose
)
{
{
fputs
(
"console Output device
\n
"
,
stderr
);
fputs
(
"console Output device
\n
"
,
stderr
);
}
}
static
int
output_device
_add_queue
(
struct
object
*
obj
,
struct
wait_queue_entry
*
entry
)
static
int
console_output
_add_queue
(
struct
object
*
obj
,
struct
wait_queue_entry
*
entry
)
{
{
if
(
!
current
->
process
->
console
||
!
current
->
process
->
console
->
active
)
if
(
!
current
->
process
->
console
||
!
current
->
process
->
console
->
active
)
{
{
...
@@ -1314,7 +1314,7 @@ static int output_device_add_queue( struct object *obj, struct wait_queue_entry
...
@@ -1314,7 +1314,7 @@ static int output_device_add_queue( struct object *obj, struct wait_queue_entry
return
add_queue
(
&
current
->
process
->
console
->
obj
,
entry
);
return
add_queue
(
&
current
->
process
->
console
->
obj
,
entry
);
}
}
static
struct
fd
*
output_device
_get_fd
(
struct
object
*
obj
)
static
struct
fd
*
console_output
_get_fd
(
struct
object
*
obj
)
{
{
if
(
!
current
->
process
->
console
||
!
current
->
process
->
console
->
active
)
if
(
!
current
->
process
->
console
||
!
current
->
process
->
console
->
active
)
{
{
...
@@ -1325,8 +1325,8 @@ static struct fd *output_device_get_fd( struct object *obj )
...
@@ -1325,8 +1325,8 @@ static struct fd *output_device_get_fd( struct object *obj )
return
get_obj_fd
(
&
current
->
process
->
console
->
active
->
obj
);
return
get_obj_fd
(
&
current
->
process
->
console
->
active
->
obj
);
}
}
static
struct
object
*
output_device
_open_file
(
struct
object
*
obj
,
unsigned
int
access
,
static
struct
object
*
console_output
_open_file
(
struct
object
*
obj
,
unsigned
int
access
,
unsigned
int
sharing
,
unsigned
int
options
)
unsigned
int
sharing
,
unsigned
int
options
)
{
{
return
grab_object
(
obj
);
return
grab_object
(
obj
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment