Mercurial > dovecot > core-2.2
annotate src/lib/hook-build.h @ 23007:36e01285b5b8
lib: buffer - Improve header comment for buffer_insert() and buffer_delete().
author | Stephan Bosch <stephan.bosch@dovecot.fi> |
---|---|
date | Mon, 18 Mar 2019 00:52:37 +0100 |
parents | cb108f786fb4 |
children |
rev | line source |
---|---|
22713
cb108f786fb4
Updated copyright notices to include the year 2018.
Stephan Bosch <stephan.bosch@dovecot.fi>
parents:
21656
diff
changeset
|
1 /* Copyright (c) 2017-2018 Dovecot authors, see the included COPYING file */ |
21656
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
2 #ifndef HOOK_BUILD_H |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
3 #define HOOK_BUILD_H 1 |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
4 |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
5 struct hook_build_context; |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
6 struct hook_stack; |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
7 |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
8 /* Initialize new hook building context, vfuncs should point to |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
9 the functions table that is being manipulated, and size should be |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
10 the size of this table. */ |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
11 struct hook_build_context *hook_build_init(void (**vfuncs)(), size_t size); |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
12 |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
13 /* This is called after a hook may have updated vfuncs */ |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
14 void hook_build_update(struct hook_build_context *ctx, void *_vlast); |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
15 |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
16 /* Free memory used by build context */ |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
17 void hook_build_deinit(struct hook_build_context **_ctx); |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
18 |
538853d82926
lib,lib-storage: Move hook building code to lib
Aki Tuomi <aki.tuomi@dovecot.fi>
parents:
diff
changeset
|
19 #endif |