Debian Codegraph @

support/babel/babel_handler.h

raw symbols SCIP
1 /* babel_handler.h declarations for the babel handler API
2 * (c) 2006 By L. Ross Raszewski
3 *
4 * This code is freely usable for all purposes.
5 *
6 * This work is licensed under the Creative Commons Attribution 4.0 License.
7 * To view a copy of this license, visit
8 * https://creativecommons.org/licenses/by/4.0/ or send a letter to
9 * Creative Commons,
10 * PO Box 1866,
11 * Mountain View, CA 94042, USA.
12 *
13 */
14
15 #ifndef BABEL_HANDLER_H
16 #define BABEL_HANDLER_H
17
18 #include "treaty.h"
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 /* Functions from babel_handler.c */
25 char *babel_init(char *filename);
26 /* initialize the babel handler */
27 char *babel_init_raw(void *sf, int32 extent);
28 /* Initialize from loaded data */
29 int32 babel_treaty(int32 selector, void *output, int32 output_extent);
30 /* Dispatch treaty calls */
31 void babel_release(void);
32 /* Release babel_handler resources */
33 char *babel_get_format(void);
34 /* return the format of the loaded file */
35 int32 babel_md5_ifid(char *buffer, int32 extent);
36 /* IFID generator of last resort */
37 uint32 babel_get_length(void);
38 /* Fetch file length */
39 uint32 babel_get_story_length(void);
40 /* Fetch file length */
41 int32 babel_get_authoritative(void);
42 /* Determine if babel handler has a good grasp on the format */
43 void *babel_get_file(void);
44 /* Get loaded story file */
45 void *babel_get_story_file(void);
46 /* Get loaded story file */
47
48 /* threadsafe versions of above */
49 char *babel_init_ctx(char *filename, void *);
50 /* initialize the babel handler */
51 int32 babel_treaty_ctx(int32 selector, void *output, int32 output_extent, void *);
52 /* Dispatch treaty calls */
53 void babel_release_ctx(void *);
54 /* Release babel_handler resources */
55 char *babel_get_format_ctx(void *);
56 /* return the format of the loaded file */
57 int32 babel_md5_ifid_ctx(char *buffer, int extent, void *);
58 /* IFID generator of last resort */
59 uint32 babel_get_length_ctx(void *);
60 uint32 babel_get_story_length_ctx(void *);
61 void *babel_get_file_ctx(void *bhp);
62 void *babel_get_story_ctx(void *bhp);
63 int32 babel_get_authoritative_ctx(void *bhp);
64 char *babel_init_raw_ctx(void *sf, int32 extent, void *bhp);
65 void *get_babel_ctx(void);
66 void release_babel_ctx(void *);
67 /* get and release babel contexts */
68
69 #ifdef __cplusplus
70 }
71 #endif
72
73 #endif