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
baffcb95
Commit
baffcb95
authored
Nov 22, 2005
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Nov 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add name_lookup function in object_ops.
parent
80f3e66d
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
55 additions
and
6 deletions
+55
-6
atom.c
server/atom.c
+1
-0
change.c
server/change.c
+1
-0
clipboard.c
server/clipboard.c
+1
-0
console.c
server/console.c
+3
-0
debugger.c
server/debugger.c
+2
-0
event.c
server/event.c
+1
-0
fd.c
server/fd.c
+4
-0
file.c
server/file.c
+1
-0
handle.c
server/handle.c
+1
-0
hook.c
server/hook.c
+1
-0
mailslot.c
server/mailslot.c
+2
-0
mapping.c
server/mapping.c
+1
-0
mutex.c
server/mutex.c
+1
-0
named_pipe.c
server/named_pipe.c
+3
-0
object.c
server/object.c
+6
-0
object.h
server/object.h
+10
-6
process.c
server/process.c
+2
-0
queue.c
server/queue.c
+2
-0
registry.c
server/registry.c
+1
-0
request.c
server/request.c
+1
-0
semaphore.c
server/semaphore.c
+1
-0
serial.c
server/serial.c
+1
-0
signal.c
server/signal.c
+1
-0
snapshot.c
server/snapshot.c
+1
-0
sock.c
server/sock.c
+1
-0
thread.c
server/thread.c
+1
-0
timer.c
server/timer.c
+1
-0
token.c
server/token.c
+1
-0
winstation.c
server/winstation.c
+2
-0
No files found.
server/atom.c
View file @
baffcb95
...
...
@@ -78,6 +78,7 @@ static const struct object_ops atom_table_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
atom_table_destroy
/* destroy */
};
...
...
server/change.c
View file @
baffcb95
...
...
@@ -73,6 +73,7 @@ static const struct object_ops change_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
change_destroy
/* destroy */
};
...
...
server/clipboard.c
View file @
baffcb95
...
...
@@ -55,6 +55,7 @@ static const struct object_ops clipboard_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
no_destroy
/* destroy */
};
...
...
server/console.c
View file @
baffcb95
...
...
@@ -48,6 +48,7 @@ static const struct object_ops console_input_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
console_input_destroy
/* destroy */
};
...
...
@@ -74,6 +75,7 @@ static const struct object_ops console_input_events_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
console_input_events_destroy
/* destroy */
};
...
...
@@ -111,6 +113,7 @@ static const struct object_ops screen_buffer_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
screen_buffer_destroy
/* destroy */
};
...
...
server/debugger.c
View file @
baffcb95
...
...
@@ -73,6 +73,7 @@ static const struct object_ops debug_event_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
debug_event_destroy
/* destroy */
};
...
...
@@ -91,6 +92,7 @@ static const struct object_ops debug_ctx_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
debug_ctx_destroy
/* destroy */
};
...
...
server/event.c
View file @
baffcb95
...
...
@@ -55,6 +55,7 @@ static const struct object_ops event_ops =
event_satisfied
,
/* satisfied */
event_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
no_destroy
/* destroy */
};
...
...
server/fd.c
View file @
baffcb95
...
...
@@ -162,6 +162,7 @@ static const struct object_ops fd_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
fd_destroy
/* destroy */
};
...
...
@@ -193,6 +194,7 @@ static const struct object_ops device_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
device_destroy
/* destroy */
};
...
...
@@ -223,6 +225,7 @@ static const struct object_ops inode_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
inode_destroy
/* destroy */
};
...
...
@@ -255,6 +258,7 @@ static const struct object_ops file_lock_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
no_destroy
/* destroy */
};
...
...
server/file.c
View file @
baffcb95
...
...
@@ -77,6 +77,7 @@ static const struct object_ops file_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
file_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
file_destroy
/* destroy */
};
...
...
server/handle.c
View file @
baffcb95
...
...
@@ -108,6 +108,7 @@ static const struct object_ops handle_table_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
handle_table_destroy
/* destroy */
};
...
...
server/hook.c
View file @
baffcb95
...
...
@@ -80,6 +80,7 @@ static const struct object_ops hook_table_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
hook_table_destroy
/* destroy */
};
...
...
server/mailslot.c
View file @
baffcb95
...
...
@@ -75,6 +75,7 @@ static const struct object_ops mailslot_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
mailslot_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
mailslot_destroy
/* destroy */
};
...
...
@@ -115,6 +116,7 @@ static const struct object_ops mail_writer_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
mail_writer_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
mail_writer_destroy
/* destroy */
};
...
...
server/mapping.c
View file @
baffcb95
...
...
@@ -63,6 +63,7 @@ static const struct object_ops mapping_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
mapping_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
mapping_destroy
/* destroy */
};
...
...
server/mutex.c
View file @
baffcb95
...
...
@@ -58,6 +58,7 @@ static const struct object_ops mutex_ops =
mutex_satisfied
,
/* satisfied */
mutex_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
mutex_destroy
/* destroy */
};
...
...
server/named_pipe.c
View file @
baffcb95
...
...
@@ -110,6 +110,7 @@ static const struct object_ops named_pipe_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
named_pipe_destroy
/* destroy */
};
...
...
@@ -131,6 +132,7 @@ static const struct object_ops pipe_server_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
pipe_server_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
pipe_server_destroy
/* destroy */
};
...
...
@@ -162,6 +164,7 @@ static const struct object_ops pipe_client_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
pipe_client_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
pipe_client_destroy
/* destroy */
};
...
...
server/object.c
View file @
baffcb95
...
...
@@ -297,6 +297,12 @@ struct fd *no_get_fd( struct object *obj )
return
NULL
;
}
struct
object
*
no_lookup_name
(
struct
object
*
obj
,
struct
unicode_str
*
name
,
unsigned
int
attr
)
{
return
NULL
;
}
int
no_close_handle
(
struct
object
*
obj
,
struct
process
*
process
,
obj_handle_t
handle
)
{
return
1
;
/* ok to close */
...
...
server/object.h
View file @
baffcb95
...
...
@@ -45,6 +45,13 @@ struct async;
struct
async_queue
;
struct
winstation
;
struct
unicode_str
{
const
WCHAR
*
str
;
size_t
len
;
};
/* operations valid on all objects */
struct
object_ops
{
...
...
@@ -64,6 +71,8 @@ struct object_ops
int
(
*
signal
)(
struct
object
*
,
unsigned
int
);
/* return an fd object that can be used to read/write from the object */
struct
fd
*
(
*
get_fd
)(
struct
object
*
);
/* lookup a name if an object has a namespace */
struct
object
*
(
*
lookup_name
)(
struct
object
*
,
struct
unicode_str
*
,
unsigned
int
);
/* close a handle to this object */
int
(
*
close_handle
)(
struct
object
*
,
struct
process
*
,
obj_handle_t
);
/* destroy on refcount == 0 */
...
...
@@ -88,12 +97,6 @@ struct wait_queue_entry
struct
thread
*
thread
;
};
struct
unicode_str
{
const
WCHAR
*
str
;
size_t
len
;
};
extern
void
*
mem_alloc
(
size_t
size
);
/* malloc wrapper */
extern
void
*
memdup
(
const
void
*
data
,
size_t
len
);
extern
void
*
alloc_object
(
const
struct
object_ops
*
ops
);
...
...
@@ -112,6 +115,7 @@ extern int no_add_queue( struct object *obj, struct wait_queue_entry *entry );
extern
int
no_satisfied
(
struct
object
*
obj
,
struct
thread
*
thread
);
extern
int
no_signal
(
struct
object
*
obj
,
unsigned
int
access
);
extern
struct
fd
*
no_get_fd
(
struct
object
*
obj
);
extern
struct
object
*
no_lookup_name
(
struct
object
*
obj
,
struct
unicode_str
*
name
,
unsigned
int
attributes
);
extern
int
no_close_handle
(
struct
object
*
obj
,
struct
process
*
process
,
obj_handle_t
handle
);
extern
void
no_destroy
(
struct
object
*
obj
);
#ifdef DEBUG_OBJECTS
...
...
server/process.c
View file @
baffcb95
...
...
@@ -70,6 +70,7 @@ static const struct object_ops process_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
process_destroy
/* destroy */
};
...
...
@@ -118,6 +119,7 @@ static const struct object_ops startup_info_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
startup_info_destroy
/* destroy */
};
...
...
server/queue.c
View file @
baffcb95
...
...
@@ -150,6 +150,7 @@ static const struct object_ops msg_queue_ops =
msg_queue_satisfied
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
msg_queue_destroy
/* destroy */
};
...
...
@@ -165,6 +166,7 @@ static const struct object_ops thread_input_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
thread_input_destroy
/* destroy */
};
...
...
server/registry.c
View file @
baffcb95
...
...
@@ -145,6 +145,7 @@ static const struct object_ops key_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
key_close_handle
,
/* close_handle */
key_destroy
/* destroy */
};
...
...
server/request.c
View file @
baffcb95
...
...
@@ -95,6 +95,7 @@ static const struct object_ops master_socket_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
master_socket_destroy
/* destroy */
};
...
...
server/semaphore.c
View file @
baffcb95
...
...
@@ -55,6 +55,7 @@ static const struct object_ops semaphore_ops =
semaphore_satisfied
,
/* satisfied */
semaphore_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
no_destroy
/* destroy */
};
...
...
server/serial.c
View file @
baffcb95
...
...
@@ -100,6 +100,7 @@ static const struct object_ops serial_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
serial_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
serial_destroy
/* destroy */
};
...
...
server/signal.c
View file @
baffcb95
...
...
@@ -64,6 +64,7 @@ static const struct object_ops handler_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
handler_destroy
/* destroy */
};
...
...
server/snapshot.c
View file @
baffcb95
...
...
@@ -63,6 +63,7 @@ static const struct object_ops snapshot_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
snapshot_destroy
/* destroy */
};
...
...
server/sock.c
View file @
baffcb95
...
...
@@ -108,6 +108,7 @@ static const struct object_ops sock_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
sock_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
sock_destroy
/* destroy */
};
...
...
server/thread.c
View file @
baffcb95
...
...
@@ -94,6 +94,7 @@ static const struct object_ops thread_ops =
no_satisfied
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
destroy_thread
/* destroy */
};
...
...
server/timer.c
View file @
baffcb95
...
...
@@ -63,6 +63,7 @@ static const struct object_ops timer_ops =
timer_satisfied
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
timer_destroy
/* destroy */
};
...
...
server/token.c
View file @
baffcb95
...
...
@@ -114,6 +114,7 @@ static const struct object_ops token_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
token_destroy
/* destroy */
};
...
...
server/winstation.c
View file @
baffcb95
...
...
@@ -58,6 +58,7 @@ static const struct object_ops winstation_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
winstation_close_handle
,
/* close_handle */
winstation_destroy
/* destroy */
};
...
...
@@ -73,6 +74,7 @@ static const struct object_ops desktop_ops =
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_lookup_name
,
/* lookup_name */
desktop_close_handle
,
/* close_handle */
desktop_destroy
/* destroy */
};
...
...
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