#include <sicstus/sicstus.h> typedef SP_stream * SP_UserStreamPostHook(void *user_data, int which, SP_stream *str); SP_UserStreamPostHook * SP_set_user_stream_post_hook(SP_UserStreamPostHook *hook, void *user_data);
Sets the user-stream post-hook to
Must be called before
void user_stream_post_hook(void *user_data, int which, SP_stream *str)
user_data is the value passed to
str is a pointer to the corresponding
structure. There are no requirements as to what this hook must do;
the default behavior is to do nothing at all.
The post-hook is intended to be used to do things that may require
that all streams have been created.
Hookable Standard Streams.