Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f6b2ccc5
Commit
f6b2ccc5
authored
Apr 24, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use common get_fd_type implementation for both pipe end implementations.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c9549b03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
named_pipe.c
server/named_pipe.c
+4
-10
No files found.
server/named_pipe.c
View file @
f6b2ccc5
...
@@ -153,6 +153,7 @@ static const struct object_ops named_pipe_ops =
...
@@ -153,6 +153,7 @@ static const struct object_ops named_pipe_ops =
};
};
/* common server and client pipe end functions */
/* common server and client pipe end functions */
static
enum
server_fd_type
pipe_end_get_fd_type
(
struct
fd
*
fd
);
static
obj_handle_t
pipe_end_read
(
struct
fd
*
fd
,
struct
async
*
async
,
file_pos_t
pos
);
static
obj_handle_t
pipe_end_read
(
struct
fd
*
fd
,
struct
async
*
async
,
file_pos_t
pos
);
static
obj_handle_t
pipe_end_write
(
struct
fd
*
fd
,
struct
async
*
async_data
,
file_pos_t
pos
);
static
obj_handle_t
pipe_end_write
(
struct
fd
*
fd
,
struct
async
*
async_data
,
file_pos_t
pos
);
static
void
pipe_end_queue_async
(
struct
fd
*
fd
,
struct
async
*
async
,
int
type
,
int
count
);
static
void
pipe_end_queue_async
(
struct
fd
*
fd
,
struct
async
*
async
,
int
type
,
int
count
);
...
@@ -163,7 +164,6 @@ static void pipe_server_dump( struct object *obj, int verbose );
...
@@ -163,7 +164,6 @@ static void pipe_server_dump( struct object *obj, int verbose );
static
struct
fd
*
pipe_server_get_fd
(
struct
object
*
obj
);
static
struct
fd
*
pipe_server_get_fd
(
struct
object
*
obj
);
static
void
pipe_server_destroy
(
struct
object
*
obj
);
static
void
pipe_server_destroy
(
struct
object
*
obj
);
static
obj_handle_t
pipe_server_flush
(
struct
fd
*
fd
,
struct
async
*
async
);
static
obj_handle_t
pipe_server_flush
(
struct
fd
*
fd
,
struct
async
*
async
);
static
enum
server_fd_type
pipe_server_get_fd_type
(
struct
fd
*
fd
);
static
obj_handle_t
pipe_server_ioctl
(
struct
fd
*
fd
,
ioctl_code_t
code
,
struct
async
*
async
);
static
obj_handle_t
pipe_server_ioctl
(
struct
fd
*
fd
,
ioctl_code_t
code
,
struct
async
*
async
);
static
const
struct
object_ops
pipe_server_ops
=
static
const
struct
object_ops
pipe_server_ops
=
...
@@ -192,7 +192,7 @@ static const struct fd_ops pipe_server_fd_ops =
...
@@ -192,7 +192,7 @@ static const struct fd_ops pipe_server_fd_ops =
{
{
default_fd_get_poll_events
,
/* get_poll_events */
default_fd_get_poll_events
,
/* get_poll_events */
default_poll_event
,
/* poll_event */
default_poll_event
,
/* poll_event */
pipe_
server_get_fd_type
,
/* get_fd_type */
pipe_
end_get_fd_type
,
/* get_fd_type */
pipe_end_read
,
/* read */
pipe_end_read
,
/* read */
pipe_end_write
,
/* write */
pipe_end_write
,
/* write */
pipe_server_flush
,
/* flush */
pipe_server_flush
,
/* flush */
...
@@ -208,7 +208,6 @@ static struct fd *pipe_client_get_fd( struct object *obj );
...
@@ -208,7 +208,6 @@ static struct fd *pipe_client_get_fd( struct object *obj );
static
void
pipe_client_destroy
(
struct
object
*
obj
);
static
void
pipe_client_destroy
(
struct
object
*
obj
);
static
obj_handle_t
pipe_client_flush
(
struct
fd
*
fd
,
struct
async
*
async
);
static
obj_handle_t
pipe_client_flush
(
struct
fd
*
fd
,
struct
async
*
async
);
static
obj_handle_t
pipe_client_ioctl
(
struct
fd
*
fd
,
ioctl_code_t
code
,
struct
async
*
async
);
static
obj_handle_t
pipe_client_ioctl
(
struct
fd
*
fd
,
ioctl_code_t
code
,
struct
async
*
async
);
static
enum
server_fd_type
pipe_client_get_fd_type
(
struct
fd
*
fd
);
static
const
struct
object_ops
pipe_client_ops
=
static
const
struct
object_ops
pipe_client_ops
=
{
{
...
@@ -236,7 +235,7 @@ static const struct fd_ops pipe_client_fd_ops =
...
@@ -236,7 +235,7 @@ static const struct fd_ops pipe_client_fd_ops =
{
{
default_fd_get_poll_events
,
/* get_poll_events */
default_fd_get_poll_events
,
/* get_poll_events */
default_poll_event
,
/* poll_event */
default_poll_event
,
/* poll_event */
pipe_
client_get_fd_type
,
/* get_fd_type */
pipe_
end_get_fd_type
,
/* get_fd_type */
pipe_end_read
,
/* read */
pipe_end_read
,
/* read */
pipe_end_write
,
/* write */
pipe_end_write
,
/* write */
pipe_client_flush
,
/* flush */
pipe_client_flush
,
/* flush */
...
@@ -917,12 +916,7 @@ static inline int is_overlapped( unsigned int options )
...
@@ -917,12 +916,7 @@ static inline int is_overlapped( unsigned int options )
return
!
(
options
&
(
FILE_SYNCHRONOUS_IO_ALERT
|
FILE_SYNCHRONOUS_IO_NONALERT
));
return
!
(
options
&
(
FILE_SYNCHRONOUS_IO_ALERT
|
FILE_SYNCHRONOUS_IO_NONALERT
));
}
}
static
enum
server_fd_type
pipe_server_get_fd_type
(
struct
fd
*
fd
)
static
enum
server_fd_type
pipe_end_get_fd_type
(
struct
fd
*
fd
)
{
return
FD_TYPE_PIPE
;
}
static
enum
server_fd_type
pipe_client_get_fd_type
(
struct
fd
*
fd
)
{
{
return
FD_TYPE_PIPE
;
return
FD_TYPE_PIPE
;
}
}
...
...
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