Interface for mapping JSON configuration objects to C structures.

This commit is contained in:
Valentin Bartenev
2017-06-26 21:41:58 +03:00
parent 01517e37c1
commit f86c803098
3 changed files with 148 additions and 3 deletions

View File

@@ -173,6 +173,10 @@ nxt_container_of(p, type, field) \
(type *) ((u_char *) (p) - offsetof(type, field))
#define nxt_pointer_to(p, offset) \
((void *) ((char *) (p) + (offset)))
#define nxt_value_at(type, p, offset) \
*(type *) ((u_char *) p + offset)