Debian Codegraph @

support/babel/tads.h

raw symbols SCIP
1 /*
2 * tads.h - Treaty of Babel common declarations for tads2 and tads3 modules
3 *
4 * This file depends on treaty_builder.h
5 *
6 * This file is public domain, but note that any changes to this file may
7 * render it noncompliant with the Treaty of Babel
8 *
9 * Modified
10 *. 04/18/2006 MJRoberts - creation
11 */
12
13 #ifndef TADS_H
14 #define TADS_H
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 /* match a TADS file signature */
20 int tads_match_sig(const void *buf, int32 len, const char *sig);
21
22 /* get the IFID for a tads story file */
23 int32 tads_get_story_file_IFID(void *story_file, int32 extent,
24 char *output, int32 output_extent);
25
26 /* get the synthesized iFiction record from a tads story file */
27 int32 tads_get_story_file_metadata(void *story_file, int32 extent,
28 char *buf, int32 bufsize);
29
30 /* get the size of the synthesized iFiction record for a tads story file */
31 int32 tads_get_story_file_metadata_extent(void *story_file, int32 extent);
32
33 /* get the cover art from a tads story file */
34 int32 tads_get_story_file_cover(void *story_file, int32 extent,
35 void *buf, int32 bufsize);
36
37 /* get the size of the cover art from a tads story file */
38 int32 tads_get_story_file_cover_extent(void *story_file, int32 extent);
39
40 /* get the image format (jpeg, png) of the covert art in a tads story file */
41 int32 tads_get_story_file_cover_format(void *story_file, int32 extent);
42 #ifdef __cplusplus
43 }
44 #endif
45
46
47 #endif /* TADS_H */