Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
6294c0cb
Unverified
Commit
6294c0cb
authored
Jun 09, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
object/stevedore: document required vs. optional callbacks
parent
20d25798
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
cache_obj.h
bin/varnishd/cache/cache_obj.h
+4
-2
storage.h
bin/varnishd/storage/storage.h
+3
-1
No files found.
bin/varnishd/cache/cache_obj.h
View file @
6294c0cb
...
...
@@ -51,15 +51,17 @@ typedef void *objsetattr_f(struct worker *, struct objcore *,
typedef
void
objtouch_f
(
struct
worker
*
,
struct
objcore
*
,
vtim_real
now
);
struct
obj_methods
{
/* required */
objfree_f
*
objfree
;
objiterator_f
*
objiterator
;
objgetspace_f
*
objgetspace
;
objextend_f
*
objextend
;
objgetattr_f
*
objgetattr
;
objsetattr_f
*
objsetattr
;
/* optional */
objtrimstore_f
*
objtrimstore
;
objbocdone_f
*
objbocdone
;
objslim_f
*
objslim
;
objgetattr_f
*
objgetattr
;
objsetattr_f
*
objsetattr
;
objtouch_f
*
objtouch
;
objsetstate_f
*
objsetstate
;
};
...
...
bin/varnishd/storage/storage.h
View file @
6294c0cb
...
...
@@ -95,7 +95,9 @@ struct stevedore {
/* Called in MGT process */
storage_init_f
*
init
;
/* Called in cache process */
/* Called in cache process
* only allocobj is required, other callbacks are optional
*/
storage_open_f
*
open
;
storage_close_f
*
close
;
storage_allocobj_f
*
allocobj
;
...
...
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