libwebsockets
Lightweight C library for HTML5 websockets
Loading...
Searching...
No Matches
lws-region.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_region_claim
struct  lws_region

Macros

#define LWS_REGION_F_ABORT   (1 << 0) /* abort() on violation */

Typedefs

typedef struct lws_region_claim lws_region_claim_t
typedef struct lws_region lws_region_t

Enumerations

enum  { LWS_REGION_NOT_TRACKED = -1 , LWS_REGION_E_OVERRUN = -2 , LWS_REGION_E_OVERLAP = -3 , LWS_REGION_E_FULL = -4 }

Functions

LWS_VISIBLE LWS_EXTERN int lws_region_init (lws_region_t *r, const char *name, const void *base, size_t len, lws_region_claim_t *claims, size_t count_claims, unsigned int flags)
LWS_VISIBLE LWS_EXTERN int lws_region_claim (lws_region_t *r, const void *p, size_t len, const char *who)
LWS_VISIBLE LWS_EXTERN void lws_region_release (lws_region_t *r, int handle)
LWS_VISIBLE LWS_EXTERN void lws_region_release_containing (lws_region_t *r, const void *p)
LWS_VISIBLE LWS_EXTERN void lws_region_trim (lws_region_t *r, const void *p)
LWS_VISIBLE LWS_EXTERN int lws_region_idle (const lws_region_t *r, const char *where)