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
6f6f6e59
Commit
6f6f6e59
authored
6 years ago
by
Jacek Caban
Committed by
Alexandre Julliard
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use common implementation for client and server get_file_info.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c0905e08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
18 deletions
+13
-18
named_pipe.c
server/named_pipe.c
+13
-18
No files found.
server/named_pipe.c
View file @
6f6f6e59
...
...
@@ -155,12 +155,12 @@ static int pipe_end_write( struct fd *fd, struct async *async_data, file_pos_t p
static
int
pipe_end_flush
(
struct
fd
*
fd
,
struct
async
*
async
);
static
void
pipe_end_get_volume_info
(
struct
fd
*
fd
,
unsigned
int
info_class
);
static
void
pipe_end_reselect_async
(
struct
fd
*
fd
,
struct
async_queue
*
queue
);
static
void
pipe_end_get_file_info
(
struct
fd
*
fd
,
unsigned
int
info_class
);
/* server end functions */
static
void
pipe_server_dump
(
struct
object
*
obj
,
int
verbose
);
static
void
pipe_server_destroy
(
struct
object
*
obj
);
static
int
pipe_server_ioctl
(
struct
fd
*
fd
,
ioctl_code_t
code
,
struct
async
*
async
);
static
void
pipe_server_get_file_info
(
struct
fd
*
fd
,
unsigned
int
info_class
);
static
const
struct
object_ops
pipe_server_ops
=
{
...
...
@@ -192,7 +192,7 @@ static const struct fd_ops pipe_server_fd_ops =
pipe_end_read
,
/* read */
pipe_end_write
,
/* write */
pipe_end_flush
,
/* flush */
pipe_
server_get_file_info
,
/* get_file_info */
pipe_
end_get_file_info
,
/* get_file_info */
pipe_end_get_volume_info
,
/* get_volume_info */
pipe_server_ioctl
,
/* ioctl */
no_fd_queue_async
,
/* queue_async */
...
...
@@ -203,7 +203,6 @@ static const struct fd_ops pipe_server_fd_ops =
static
void
pipe_client_dump
(
struct
object
*
obj
,
int
verbose
);
static
void
pipe_client_destroy
(
struct
object
*
obj
);
static
int
pipe_client_ioctl
(
struct
fd
*
fd
,
ioctl_code_t
code
,
struct
async
*
async
);
static
void
pipe_client_get_file_info
(
struct
fd
*
fd
,
unsigned
int
info_class
);
static
const
struct
object_ops
pipe_client_ops
=
{
...
...
@@ -235,7 +234,7 @@ static const struct fd_ops pipe_client_fd_ops =
pipe_end_read
,
/* read */
pipe_end_write
,
/* write */
pipe_end_flush
,
/* flush */
pipe_
client_get_file_info
,
/* get_file_info */
pipe_
end_get_file_info
,
/* get_file_info */
pipe_end_get_volume_info
,
/* get_volume_info */
pipe_client_ioctl
,
/* ioctl */
no_fd_queue_async
,
/* queue_async */
...
...
@@ -556,8 +555,17 @@ static int pipe_end_flush( struct fd *fd, struct async *async )
return
1
;
}
static
void
pipe_end_get_file_info
(
struct
fd
*
fd
,
struct
named_pipe
*
pipe
,
unsigned
int
info_class
)
static
void
pipe_end_get_file_info
(
struct
fd
*
fd
,
unsigned
int
info_class
)
{
struct
pipe_end
*
pipe_end
=
get_fd_user
(
fd
);
struct
named_pipe
*
pipe
=
pipe_end
->
pipe
;
if
(
!
pipe
)
{
set_error
(
STATUS_PIPE_DISCONNECTED
);
return
;
}
switch
(
info_class
)
{
case
FileNameInformation
:
...
...
@@ -615,19 +623,6 @@ static int pipe_end_set_sd( struct object *obj, const struct security_descriptor
return
0
;
}
static
void
pipe_server_get_file_info
(
struct
fd
*
fd
,
unsigned
int
info_class
)
{
struct
pipe_server
*
server
=
get_fd_user
(
fd
);
pipe_end_get_file_info
(
fd
,
server
->
pipe
,
info_class
);
}
static
void
pipe_client_get_file_info
(
struct
fd
*
fd
,
unsigned
int
info_class
)
{
struct
pipe_client
*
client
=
get_fd_user
(
fd
);
if
(
client
->
server
)
pipe_end_get_file_info
(
fd
,
client
->
server
->
pipe
,
info_class
);
else
set_error
(
STATUS_PIPE_DISCONNECTED
);
}
static
void
pipe_end_get_volume_info
(
struct
fd
*
fd
,
unsigned
int
info_class
)
{
switch
(
info_class
)
...
...
This diff is collapsed.
Click to expand it.
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