libwebsockets
Lightweight C library for HTML5 websockets
lws-spa.h File Reference

Go to the source code of this file.

Data Structures

struct  lws_spa_create_info
 

Typedefs

typedef int(* lws_spa_fileupload_cb) (void *data, const char *name, const char *filename, char *buf, int len, enum lws_spa_fileupload_states state)
 
typedef struct lws_spa_create_info lws_spa_create_info_t
 

Enumerations

enum  lws_spa_fileupload_states { LWS_UFS_CONTENT , LWS_UFS_FINAL_CONTENT , LWS_UFS_OPEN , LWS_UFS_CLOSE }
 

Functions

LWS_VISIBLE LWS_EXTERN struct lws_spa * lws_spa_create (struct lws *wsi, const char *const *param_names, int count_params, int max_storage, lws_spa_fileupload_cb opt_cb, void *opt_data)
 
LWS_VISIBLE LWS_EXTERN struct lws_spa * lws_spa_create_via_info (struct lws *wsi, const lws_spa_create_info_t *info)
 
LWS_VISIBLE LWS_EXTERN int lws_spa_process (struct lws_spa *spa, const char *in, int len)
 
LWS_VISIBLE LWS_EXTERN int lws_spa_finalize (struct lws_spa *spa)
 
LWS_VISIBLE LWS_EXTERN int lws_spa_get_length (struct lws_spa *spa, int n)
 
LWS_VISIBLE LWS_EXTERN const char * lws_spa_get_string (struct lws_spa *spa, int n)
 
LWS_VISIBLE LWS_EXTERN int lws_spa_destroy (struct lws_spa *spa)