Home
last modified time | relevance | path

Searched refs:jtf (Results 1 - 4 of 4) sorted by relevance

/third_party/libwebsockets/lib/misc/fts/
H A Dtrie-fd.c85 lws_fts_filepath(struct lws_fts_file *jtf, int filepath_index, char *result, in lws_fts_filepath() argument
94 if (filepath_index > jtf->filepaths) in lws_fts_filepath()
97 if (lseek(jtf->fd, (off_t)(jtf->filepath_table + (4 * (unsigned int)filepath_index)), in lws_fts_filepath()
104 ra = (int)read(jtf->fd, buf, 4); in lws_fts_filepath()
109 if (lseek(jtf->fd, o, SEEK_SET) < 0) { in lws_fts_filepath()
115 ra = (int)read(jtf->fd, buf, sizeof(buf)); in lws_fts_filepath()
148 lws_fts_adopt(struct lws_fts_file *jtf) in lws_fts_adopt() argument
153 if (read(jtf->fd, buf, TRIE_FILE_HDR_SIZE) != TRIE_FILE_HDR_SIZE) { in lws_fts_adopt()
165 jtf in lws_fts_adopt()
193 struct lws_fts_file *jtf; lws_fts_open() local
219 lws_fts_close(struct lws_fts_file *jtf) lws_fts_close() argument
239 lws_fts_cache_chunktable(struct lws_fts_file *jtf, uint32_t ofs_linetable, struct lwsac **linetable_head) lws_fts_cache_chunktable() argument
284 lws_fts_getfileoffset(struct lws_fts_file *jtf, struct linetable *ltstart, int line, off_t *_ofs) lws_fts_getfileoffset() argument
334 ac_record(struct lws_fts_file *jtf, struct lwsac **results_head, const char *needle, int pos, struct wac *s, int sp, uint32_t instances, uint32_t agg_instances, uint32_t children, struct lws_fts_result_autocomplete ***ppac) ac_record() argument
391 lws_fts_search(struct lws_fts_file *jtf, struct lws_fts_search_params *ftsp) lws_fts_search() argument
[all...]
/third_party/libwebsockets/minimal-examples/api-tests/api-test-fts/
H A Dmain.c37 struct lws_fts_file *jtf; in main() local
160 jtf = lws_fts_open(index_filepath); in main()
161 if (!jtf) in main()
177 result = lws_fts_search(jtf, &params); in main()
181 lws_fts_close(jtf); in main()
220 lws_fts_close(jtf); in main()
/third_party/libwebsockets/plugins/
H A Dprotocol_fulltext_demo.c72 struct lws_fts_file *jtf; in callback_fts() local
115 jtf = lws_fts_open(vhd->indexpath); in callback_fts()
116 if (!jtf) { in callback_fts()
122 result = lws_fts_search(jtf, &params); in callback_fts()
123 lws_fts_close(jtf); in callback_fts()
/third_party/libwebsockets/include/libwebsockets/
H A Dlws-fts.h186 * \param jtf: The index file struct returned by lws_fts_open
203 lws_fts_search(struct lws_fts_file *jtf, struct lws_fts_search_params *ftsp);
208 * \param jtf: The pointer returned from the open
213 lws_fts_close(struct lws_fts_file *jtf);

Completed in 4 milliseconds