File: namazu.h

package info (click to toggle)
namazu2 2.0.21-22
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 7,032 kB
  • sloc: ansic: 14,161; perl: 10,789; sh: 9,355; lisp: 1,147; makefile: 914
file content (25 lines) | stat: -rw-r--r-- 887 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _NAMAZU_H
#define _NAMAZU_H

#include "libnamazu.h" /* for enum nmz_stat */

enum {
    PAGE_MAX            = 20,  /* Max number of result pages */
    RESULT_MAX          = 100, /* Max number of result displays at once */
    CGI_QUERY_MAX       = 512, /* Max length of a CGI query */
				/* If you want to customize the paramater, */
				/* it MUST be smaller than BUFSIZE. */
				/* BUFSIZE is defined in libnamazu.h */
    CGI_INDEX_NAME_MAX  = 64,  /* Max length of an index name in a CGI query */
    CGI_RESULT_NAME_MAX = 64,  /* Max length of a result name in a CGI query */

    SUICIDE_TIME = 60      /* namazu.cgi will suicide when its
			      processing time exceeds this */
};

extern enum nmz_stat namazu_core ( char * query, char *subquery );
extern void exit_nmz(int status);
void set_templatedir(char *dir);
char *get_templatedir(void);

#endif /* _NAMAZU_H */