summaryrefslogtreecommitdiffstats
path: root/libass/ass_library.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-07-12 08:01:23 +0200
committerGrigori Goronzy <greg@blackbox>2009-07-12 08:02:52 +0200
commit71fc0fbbf34110050bda200d25eb230b8b044324 (patch)
tree15cc23637cf7a1c461244cfcc3f2c4bf98ab31ca /libass/ass_library.h
parentd3cd5b0148d64ae0f6e288e69b09acfe639fdcce (diff)
downloadlibass-71fc0fbbf34110050bda200d25eb230b8b044324.tar.bz2
libass-71fc0fbbf34110050bda200d25eb230b8b044324.tar.xz
Allow passing user data to callback
It is often useful or necessary to pass custom data to a callback. Add an argument to the callback registering function to pass a void pointer object to the callback each time it is called.
Diffstat (limited to 'libass/ass_library.h')
-rw-r--r--libass/ass_library.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libass/ass_library.h b/libass/ass_library.h
index a73dd6c..85b0842 100644
--- a/libass/ass_library.h
+++ b/libass/ass_library.h
@@ -36,7 +36,8 @@ struct ass_library_s {
ass_fontdata_t *fontdata;
int num_fontdata;
- void (*msg_callback)(int, char *, va_list *);
+ void (*msg_callback)(int, char *, va_list *, void *);
+ void *msg_callback_data;
};
#endif /* LIBASS_LIBRARY_H */