Go to the source code of this file.
|
LWS_VISIBLE LWS_EXTERN int | lws_settings_plat_get (lws_settings_instance_t *si, const char *name, uint8_t *dest, size_t *max_actual) |
|
LWS_VISIBLE LWS_EXTERN int | lws_settings_plat_set (lws_settings_instance_t *si, const char *name, const uint8_t *src, size_t len) |
|
LWS_VISIBLE LWS_EXTERN int | lws_settings_plat_printf (lws_settings_instance_t *si, const char *name, const char *format,...) LWS_FORMAT(3) |
|
LWS_VISIBLE LWS_EXTERN lws_settings_instance_t * | lws_settings_init (const lws_settings_ops_t *so, void *opaque_plat) |
|
LWS_VISIBLE LWS_EXTERN void | lws_settings_deinit (lws_settings_instance_t **si) |
|
◆ lws_settings_instance_t
struct lws_settings_instance_t |
◆ LSOOPEN_FLAG_WRITEABLE
#define LSOOPEN_FLAG_WRITEABLE (1 << 0) |
◆ lws_settings_ops_plat
#define lws_settings_ops_plat |
Value:
LWS_VISIBLE LWS_EXTERN int lws_settings_plat_get(lws_settings_instance_t *si, const char *name, uint8_t *dest, size_t *max_actual)
LWS_VISIBLE LWS_EXTERN int lws_settings_plat_set(lws_settings_instance_t *si, const char *name, const uint8_t *src, size_t len)
Definition at line 104 of file lws-settings.h.
◆ lws_settings_ops_t
◆ lws_settings_plat_get()
lws_settings_plat_get() - read a named blob from a settings instance
- Parameters
-
si | the settings instance |
name | the name of the setting blob in the instance |
dest | NULL, or the buffer to copy the setting blob info |
max_actual | point to size of dest, or zero; actual blob size on exit |
If the named blob doesn't exist in the si, or can't read, returns nonzero. Otherwise, returns 0 and sets *max_actual to the true blob size. If dest is non-NULL, as much of the blob as will fit in the amount specified by *max_actual on entry is copied to dest.
◆ lws_settings_plat_set()
lws_settings_plat_get() - read a named blob from a settings instance
- Parameters
-
si | the settings instance |
name | the name of the setting blob in the instance |
src | blob to copy to settings instance |
len | length of blob to copy |
Creates or replaces a settings blob of the given name made up of the len
bytes of data from src
.
◆ lws_settings_plat_printf()
lws_settings_plat_printf() - read a named blob from a settings instance
- Parameters
-
si | the settings instance |
name | the name of the setting blob in the instance |
format | printf-style format string |
Creates or replaces a settings blob of the given name from the printf-style format string and arguments provided. There's no specific limit to the size, the size is computed and then a temp heap buffer used.
◆ lws_settings_init()
◆ lws_settings_deinit()