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
8cea9930
Commit
8cea9930
authored
Mar 06, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Added unlink_named_object function.
Allows to remove the name of an object while keeping around the object itself.
parent
251be542
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
object.c
server/object.c
+7
-0
object.h
server/object.h
+1
-0
No files found.
server/object.c
View file @
8cea9930
...
...
@@ -217,6 +217,13 @@ void dump_object_name( struct object *obj )
}
}
/* unlink a named object from its namespace, without freeing the object itself */
void
unlink_named_object
(
struct
object
*
obj
)
{
if
(
obj
->
name
)
free_name
(
obj
);
obj
->
name
=
NULL
;
}
/* grab an object (i.e. increment its refcount) and return the object */
struct
object
*
grab_object
(
void
*
ptr
)
{
...
...
server/object.h
View file @
8cea9930
...
...
@@ -109,6 +109,7 @@ extern void *create_object( struct namespace *namespace, const struct object_ops
const
struct
unicode_str
*
name
,
struct
object
*
parent
);
extern
void
*
create_named_object
(
struct
namespace
*
namespace
,
const
struct
object_ops
*
ops
,
const
struct
unicode_str
*
name
,
unsigned
int
attributes
);
extern
void
unlink_named_object
(
struct
object
*
obj
);
extern
struct
namespace
*
create_namespace
(
unsigned
int
hash_size
);
/* grab/release_object can take any pointer, but you better make sure */
/* that the thing pointed to starts with a struct object... */
...
...
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