Fix License in spec
[platform/upstream/libwebsockets.git] / lib / misc / fts / private-lib-misc-fts.h
1 #include <libwebsockets.h>
2
3 /* if you need > 2GB trie files */
4 //typedef off_t jg2_file_offset;
5 typedef uint32_t jg2_file_offset;
6
7 struct lws_fts_file {
8         int fd;
9         jg2_file_offset root, flen, filepath_table;
10         int max_direct_hits;
11         int max_completion_hits;
12         int filepaths;
13 };
14
15
16
17 #define TRIE_FILE_HDR_SIZE 20
18 #define MAX_VLI 5
19
20 #define LWS_FTS_LINES_PER_CHUNK 200
21
22 int
23 rq32(unsigned char *b, uint32_t *d);