27 #ifndef SQUASH_CONTEXT_H
28 #define SQUASH_CONTEXT_H
30 #if !defined (SQUASH_H_INSIDE) && !defined (SQUASH_COMPILATION)
31 #error "Only <squash/squash.h> can be included directly."
SQUASH_API SquashPlugin * squash_context_get_plugin(SquashContext *context, const char *plugin)
Retrieve a SquashPlugin from a SquashContext.
SQUASH_API SquashCodec * squash_get_codec(const char *codec)
Retrieve a SquashCodec.
void(* SquashPluginForeachFunc)(SquashPlugin *plugin, void *data)
Squashlback to be invoked on each SquashPlugin in a set.
SQUASH_API SquashCodec * squash_get_codec_from_extension(const char *extension)
Retrieve a codec based on an extension.
SQUASH_BEGIN_DECLS SQUASH_API SquashContext * squash_context_get_default(void)
Retrieve the default SquashContext.
SQUASH_API SquashPlugin * squash_get_plugin(const char *plugin)
Retrieve a SquashPlugin.
SQUASH_API void squash_context_foreach_codec(SquashContext *context, SquashCodecForeachFunc func, void *data)
Execute a callback for every loaded codec.
SQUASH_API SquashCodec * squash_context_get_codec(SquashContext *context, const char *codec)
Retrieve a SquashCodec from a SquashContext.
void(* SquashCodecForeachFunc)(SquashCodec *codec, void *data)
Squashlback to be invoked on each SquashCodec in a set.
SQUASH_API SquashCodec * squash_context_get_codec_from_extension(SquashContext *context, const char *extension)
Retrieve a codec from a context based on an extension.
SQUASH_API void squash_foreach_codec(SquashCodecForeachFunc func, void *data)
Execute a callback for every loaded codec in the default context.
SQUASH_API void squash_context_foreach_plugin(SquashContext *context, SquashPluginForeachFunc func, void *data)
Execute a callback for every loaded plugin.
SQUASH_API void squash_foreach_plugin(SquashPluginForeachFunc func, void *data)
Execute a callback for every loaded plugin in the default context.