libwebsockets
Lightweight C library for HTML5 websockets
lws-fts.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lws_fts_result_filepath
 
struct  lws_fts_result_autocomplete
 
struct  lws_fts_result
 
struct  lws_fts_search_params
 

Macros

#define LWSFTS_F_QUERY_AUTOCOMPLETE   (1 << 0)
 
#define LWSFTS_F_QUERY_FILES   (1 << 1)
 
#define LWSFTS_F_QUERY_FILE_LINES   (1 << 2)
 
#define LWSFTS_F_QUERY_QUOTE_LINE   (1 << 3)
 

Functions

LWS_VISIBLE LWS_EXTERN struct lws_fts * lws_fts_create (int fd)
 
LWS_VISIBLE LWS_EXTERN void lws_fts_destroy (struct lws_fts **trie)
 
LWS_VISIBLE LWS_EXTERN int lws_fts_file_index (struct lws_fts *t, const char *filepath, int filepath_len, int priority)
 
LWS_VISIBLE LWS_EXTERN int lws_fts_fill (struct lws_fts *t, uint32_t file_index, const char *buf, size_t len)
 
LWS_VISIBLE LWS_EXTERN int lws_fts_serialize (struct lws_fts *t)
 
LWS_VISIBLE LWS_EXTERN struct lws_fts_file * lws_fts_open (const char *filepath)
 
LWS_VISIBLE LWS_EXTERN struct lws_fts_resultlws_fts_search (struct lws_fts_file *jtf, struct lws_fts_search_params *ftsp)
 
LWS_VISIBLE LWS_EXTERN void lws_fts_close (struct lws_fts_file *jtf)