diff options
author | Andreas Rottmann <a.rottmann@gmx.at> | 2009-03-23 22:19:24 (GMT) |
---|---|---|
committer | Andreas Rottmann <a.rottmann@gmx.at> | 2009-03-23 22:19:24 (GMT) |
commit | cf7621f31c6b3eaf29e1da82631a9404f8b1c036 (patch) | |
tree | 21501ed5345aa84b289046927632531d23135f6f /tests/scanner/annotation.c | |
parent | bec176d20df2f0e25a0f3dc84a3dbe3edeecd65f (diff) |
Bug 574284 - Add support for a 'closure' and 'destroy' annotations
This allows to annotate cases where the heuristics don't work.
TODO: According to Juerbi, there are cases where two callbacks refer
to the same user_data, which is prohibited by the current
implementation.
Signed-off-by: Andreas Rottmann <a.rottmann@gmx.at>
Diffstat (limited to 'tests/scanner/annotation.c')
-rw-r--r-- | tests/scanner/annotation.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/scanner/annotation.c b/tests/scanner/annotation.c index cbc9244..5c5d46d 100644 --- a/tests/scanner/annotation.c +++ b/tests/scanner/annotation.c @@ -611,6 +611,21 @@ annotation_object_extra_annos (AnnotationObject *object) } /** + * annotation_custom_destroy: + * + * @callback: (destroy destroy) (closure data): Destroy notification + * + * Test messing up the heuristic of closure/destroy-notification + * detection, and fixing it via annotations. + */ +void +annotation_custom_destroy (AnnotationCallback callback, + AnnotationNotifyFunc destroy, + gpointer data) +{ +} + +/** * annotation_get_source_file: * * Return value: (type filename): Source file |