private-lib-misc-fts.h 404 B

1234567891011121314151617181920212223
  1. #include <libwebsockets.h>
  2. /* if you need > 2GB trie files */
  3. //typedef off_t jg2_file_offset;
  4. typedef uint32_t jg2_file_offset;
  5. struct lws_fts_file {
  6. int fd;
  7. jg2_file_offset root, flen, filepath_table;
  8. int max_direct_hits;
  9. int max_completion_hits;
  10. int filepaths;
  11. };
  12. #define TRIE_FILE_HDR_SIZE 20
  13. #define MAX_VLI 5
  14. #define LWS_FTS_LINES_PER_CHUNK 200
  15. int
  16. rq32(unsigned char *b, uint32_t *d);