Skip to content

Commit

Permalink
Support for nested structs and < 32 bit types in s2o()
Browse files Browse the repository at this point in the history
CL: mjs: Support for nested structs and < 32 bit types in s2o()

PUBLISHED_FROM=33a6f085aae3c69a4c4061e71a3b1a6fb19b0fcf
  • Loading branch information
Deomid Ryabkov authored and cesantabot committed Dec 12, 2018
1 parent 88db9e8 commit c8008b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mgos_azure_cm.c
Expand Up @@ -103,10 +103,10 @@ bool mgos_azure_cm_init(void) {
#ifdef MGOS_HAVE_MJS
static const struct mjs_c_struct_member c2d_def[] = {
{"body", offsetof(struct mgos_azure_c2d_arg, body),
MJS_FFI_CTYPE_STRUCT_MG_STR},
MJS_STRUCT_FIELD_TYPE_MG_STR, NULL},
{"props", offsetof(struct mgos_azure_c2d_arg, props),
MJS_FFI_CTYPE_STRUCT_MG_STR},
{NULL, 0, MJS_FFI_CTYPE_NONE},
MJS_STRUCT_FIELD_TYPE_MG_STR, NULL},
{NULL, 0, MJS_STRUCT_FIELD_TYPE_INVALID, NULL},
};

const struct mjs_c_struct_member *mgos_azure_get_c2dd(void) {
Expand Down

0 comments on commit c8008b6

Please sign in to comment.