- static const struct blobmsg_policy policy = {
- .name = "content-range",
- .type = BLOBMSG_TYPE_STRING
+ enum {
+ H_RANGE,
+ H_LEN,
+ __H_MAX
+ };
+ static const struct blobmsg_policy policy[__H_MAX] = {
+ [H_RANGE] = { .name = "content-range", .type = BLOBMSG_TYPE_STRING },
+ [H_LEN] = { .name = "content-length", .type = BLOBMSG_TYPE_STRING },