diff options
Diffstat (limited to 'amiga_lib/include/interfaces/hubbub.h')
-rwxr-xr-x | amiga_lib/include/interfaces/hubbub.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/amiga_lib/include/interfaces/hubbub.h b/amiga_lib/include/interfaces/hubbub.h new file mode 100755 index 0000000..efd4227 --- /dev/null +++ b/amiga_lib/include/interfaces/hubbub.h @@ -0,0 +1,72 @@ +#ifndef HUBBUB_INTERFACE_DEF_H +#define HUBBUB_INTERFACE_DEF_H + +/* +** This file was machine generated by idltool 53.1. +** Do not edit +*/ + +#ifndef EXEC_TYPES_H +#include <exec/types.h> +#endif +#ifndef EXEC_EXEC_H +#include <exec/exec.h> +#endif +#ifndef EXEC_INTERFACES_H +#include <exec/interfaces.h> +#endif + +#include "hubbub/parser.h" + +#ifdef __cplusplus +#ifdef __USE_AMIGAOS_NAMESPACE__ +namespace AmigaOS { +#endif +extern "C" { +#endif + +struct HubbubIFace +{ + struct InterfaceData Data; + + uint32 APICALL (*HubbubObtain)(struct HubbubIFace *Self); + uint32 APICALL (*HubbubRelease)(struct HubbubIFace *Self); + void APICALL (*HubbubExpunge)(struct HubbubIFace *Self); + struct Interface * APICALL (*HubbubClone)(struct HubbubIFace *Self); + + /* hubbub/errors.h */ + const char *(*hubbub_error_to_string)(hubbub_error error); + + /* hubbub/hubbub.h */ + /* lib private + hubbub_error (*hubbub_initialise)(const char *aliases_file, + hubbub_allocator_fn alloc, void *pw); + + hubbub_error (*hubbub_finalise)(hubbub_allocator_fn alloc, void *pw); + */ + + /* hubbub/parser.h */ + hubbub_error (*hubbub_parser_create)(const char *enc, bool fix_enc, + hubbub_allocator_fn alloc, void *pw, hubbub_parser **parser); + hubbub_error (*hubbub_parser_destroy)(hubbub_parser *parser); + hubbub_error (*hubbub_parser_setopt)(hubbub_parser *parser, + hubbub_parser_opttype type, hubbub_parser_optparams *params); + hubbub_error (*hubbub_parser_parse_chunk)(hubbub_parser *parser, + const uint8_t *data, size_t len); + hubbub_error (*hubbub_parser_completed)(hubbub_parser *parser); + const char *(*hubbub_parser_read_charset)(hubbub_parser *parser, + hubbub_charset_source *source); + + /* v2 */ + hubbub_error (*hubbub_parser_insert_chunk)(hubbub_parser *parser, + const uint8_t *data, size_t len); +}; + +#ifdef __cplusplus +} +#ifdef __USE_AMIGAOS_NAMESPACE__ +} +#endif +#endif + +#endif /* HUBBUB_INTERFACE_DEF_H */ |