1 #ifndef _OUTPUT_H
2 #define _OUTPUT_H
3 
4 #include "libnamazu.h"  /* for NmzResult */
5 
6 /*
7  * Special identifier for keyword emphasizing.
8  */
9 enum {
10     EM_START_MARK = 0x01,
11     EM_END_MARK   = 0x02
12 };
13 
14 extern enum nmz_stat print_result ( NmzResult hlist, const char *query, const char *subquery );
15 extern void print_default_page ( void );
16 extern void set_emphasis_tags(const char *start_tag, const char *end_tag);
17 extern char *get_emphasis_tag_start(void);
18 extern char *get_emphasis_tag_end(void);
19 extern void set_contenttype( const char *str );
20 extern char *get_contenttype(void);
21 extern void set_htmlmode ( int mode );
22 extern int is_htmlmode ( void );
23 extern void set_cgimode ( int mode );
24 extern void set_quietmode ( int mode );
25 extern void set_countmode ( int mode );
26 extern void set_listmode ( int mode );
27 extern void set_allresult ( int mode );
28 extern void set_pageindex ( int mode );
29 extern void set_formprint ( int mode );
30 extern int is_formprint ( void );
31 extern void set_refprint ( int mode );
32 extern void set_maxresult ( int num );
33 extern int get_maxresult ( void );
34 extern void set_listwhence ( int num );
35 extern int get_listwhence ( void );
36 extern void set_templatesuffix ( const char *tmpl );
37 extern char *get_templatesuffix ( void );
38 extern void html_print ( const char *str );
39 extern void print ( const char *str );
40 extern void die(const char *fmt, ...);
41 extern void puts_entitize( const char *str );
42 extern void putc_entitize( int c );
43 
44 #endif /* _OUTPUT_H */
45