File wfm_keywords.h¶
File List > inc > wfm > wfm_keywords.h
Go to the documentation of this file
#ifndef DP_WFM_KEYWORDS_H
#define DP_WFM_KEYWORDS_H
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif
#define WFM_KW_MAX_TAG 255
typedef struct
{
char tag[WFM_KW_MAX_TAG + 1];
char type;
size_t elem_size;
size_t count;
uint8_t *value;
} wfm_keyword_t;
size_t wfm_kw_elem_size (char type);
int wfm_kw_check_standard(const char *tag, char type, const void *value,
size_t count);
size_t wfm_kw_entry_size (size_t ltag, size_t vbytes);
size_t wfm_kw_encode (uint8_t *out, size_t cap, const char *tag, char type,
const void *value, size_t count, int be);
int wfm_kw_decode (const uint8_t *p, size_t avail, int be,
wfm_keyword_t *out, size_t *consumed);
#ifdef __cplusplus
}
#endif
#endif /* DP_WFM_KEYWORDS_H */