X-Git-Url: https://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=blobmsg.h;fp=blobmsg.h;h=3eeec9b035ea63aca99b2a7f9e609d7b9d6df958;hp=c4bf10d404abb231fa34a88aa994e3a3e2a1eeab;hb=af2f52a37bdbb34835da08b518a5f5a950d87a77;hpb=bd47d85d38ee5fb1fb8a37d006f51443f67a2061 diff --git a/blobmsg.h b/blobmsg.h index c4bf10d..3eeec9b 100644 --- a/blobmsg.h +++ b/blobmsg.h @@ -16,6 +16,7 @@ #ifndef __BLOBMSG_H #define __BLOBMSG_H +#include #include "blob.h" #define BLOBMSG_ALIGN 2 @@ -195,6 +196,11 @@ void *blobmsg_alloc_string_buffer(struct blob_buf *buf, const char *name, int ma void *blobmsg_realloc_string_buffer(struct blob_buf *buf, int maxlen); void blobmsg_add_string_buffer(struct blob_buf *buf); +void blobmsg_vprintf(struct blob_buf *buf, const char *name, const char *format, va_list arg); +void blobmsg_printf(struct blob_buf *buf, const char *name, const char *format, ...) + __attribute__((format(printf, 3, 4))); + + /* blobmsg to json formatting */ #define blobmsg_for_each_attr(pos, attr, rem) \