Yes, that is what I believe to understand, too
What confuses me, is that there are many more functions, e.g.
“marshalling”. How are hooks related to marshalling?
Also, GHook seems to be more advanced than a simple list of hook
functions, e.g. hooks can be invalidated somehow and there are
All that might be self-explanitory, but not to me…
I wonder, whether I can use (abuse?) GHook for what I need:
- always a pair of hooks, one for setup, one for freeing
- the pair of hooks need to share some data, e.g. a resource
id, but that depends on the hook
- the hooks should work in reverse order, like a stack
I probably will just create two GHookLists and write a wrapper,
that always adds hooks to both lists, one append, one prepend.
I don’t know yet, how both hooks can share data, though.