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
25692223
Commit
25692223
authored
Sep 23, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Rename make_object_static() to make_object_permanent().
This makes it clear that it's the same as the OBJ_PERMANENT flag. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
82c84548
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
11 deletions
+11
-11
atom.c
server/atom.c
+1
-1
handle.c
server/handle.c
+1
-1
object.c
server/object.c
+4
-4
object.h
server/object.h
+1
-1
registry.c
server/registry.c
+2
-2
request.c
server/request.c
+1
-1
signal.c
server/signal.c
+1
-1
No files found.
server/atom.c
View file @
25692223
...
...
@@ -304,7 +304,7 @@ static struct atom_table *get_global_table( struct winstation *winstation, int c
else
{
global_table
=
table
;
make_object_
static
(
&
global_table
->
obj
);
make_object_
permanent
(
&
global_table
->
obj
);
}
}
else
set_error
(
STATUS_OBJECT_NAME_NOT_FOUND
);
...
...
server/handle.c
View file @
25692223
...
...
@@ -298,7 +298,7 @@ static obj_handle_t alloc_global_handle_no_access_check( void *obj, unsigned int
{
if
(
!
(
global_table
=
alloc_handle_table
(
NULL
,
0
)))
return
0
;
make_object_
static
(
&
global_table
->
obj
);
make_object_
permanent
(
&
global_table
->
obj
);
}
return
handle_local_to_global
(
alloc_entry
(
global_table
,
obj
,
access
));
}
...
...
server/object.c
View file @
25692223
...
...
@@ -347,7 +347,7 @@ void *create_named_object( struct object *parent, const struct object_ops *ops,
done:
if
(
attributes
&
OBJ_PERMANENT
)
{
make_object_
static
(
new_obj
);
make_object_
permanent
(
new_obj
);
grab_object
(
new_obj
);
}
return
new_obj
;
...
...
@@ -406,8 +406,8 @@ void unlink_named_object( struct object *obj )
free
(
name_ptr
);
}
/* mark an object as being
stored statically
, i.e. only released at shutdown */
void
make_object_
static
(
struct
object
*
obj
)
/* mark an object as being
permanent
, i.e. only released at shutdown */
void
make_object_
permanent
(
struct
object
*
obj
)
{
obj
->
is_permanent
=
1
;
#ifdef DEBUG_OBJECTS
...
...
@@ -416,7 +416,7 @@ void make_object_static( struct object *obj )
#endif
}
/* mark an object as no longer
static
*/
/* mark an object as no longer
permanent
*/
void
make_object_temporary
(
struct
object
*
obj
)
{
obj
->
is_permanent
=
0
;
...
...
server/object.h
View file @
25692223
...
...
@@ -145,7 +145,7 @@ extern void *create_named_object( struct object *parent, const struct object_ops
extern
void
*
open_named_object
(
struct
object
*
parent
,
const
struct
object_ops
*
ops
,
const
struct
unicode_str
*
name
,
unsigned
int
attributes
);
extern
void
unlink_named_object
(
struct
object
*
obj
);
extern
void
make_object_
static
(
struct
object
*
obj
);
extern
void
make_object_
permanent
(
struct
object
*
obj
);
extern
void
make_object_temporary
(
struct
object
*
obj
);
extern
struct
namespace
*
create_namespace
(
unsigned
int
hash_size
);
extern
void
free_kernel_objects
(
struct
object
*
obj
);
...
...
server/registry.c
View file @
25692223
...
...
@@ -1742,7 +1742,7 @@ static int load_init_registry_from_file( const char *filename, struct key *key )
save_branch_info
[
save_branch_count
].
path
=
filename
;
save_branch_info
[
save_branch_count
++
].
key
=
(
struct
key
*
)
grab_object
(
key
);
make_object_
static
(
&
key
->
obj
);
make_object_
permanent
(
&
key
->
obj
);
return
(
f
!=
NULL
);
}
...
...
@@ -1813,7 +1813,7 @@ void init_registry(void)
/* create the root key */
root_key
=
alloc_key
(
&
root_name
,
current_time
);
assert
(
root_key
);
make_object_
static
(
&
root_key
->
obj
);
make_object_
permanent
(
&
root_key
->
obj
);
/* load system.reg into Registry\Machine */
...
...
server/request.c
View file @
25692223
...
...
@@ -871,7 +871,7 @@ static void acquire_lock(void)
!
(
master_socket
->
fd
=
create_anonymous_fd
(
&
master_socket_fd_ops
,
fd
,
&
master_socket
->
obj
,
0
)))
fatal_error
(
"out of memory
\n
"
);
set_fd_events
(
master_socket
->
fd
,
POLLIN
);
make_object_
static
(
&
master_socket
->
obj
);
make_object_
permanent
(
&
master_socket
->
obj
);
}
/* open the master server socket and start waiting for new clients */
...
...
server/signal.c
View file @
25692223
...
...
@@ -127,7 +127,7 @@ static struct handler *create_handler( signal_callback callback )
return
NULL
;
}
set_fd_events
(
handler
->
fd
,
POLLIN
);
make_object_
static
(
&
handler
->
obj
);
make_object_
permanent
(
&
handler
->
obj
);
return
handler
;
}
...
...
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