可以使用blobmsg_open_table和blobmsg_close_table函数来创建一个嵌套的表格结构。在表格中可以添加其他类型的字段,包括字符串、整数等。通过嵌套结构,可以组织复杂的数据。 3. 传递参数 在OpenWRT中,blobmsg常用于内核模块和用户空间程序之间传递参数。内核模块可以将参数封装成blobmsg,并通
rem-= blob_pad_len(pos), pos = blob_next(pos)) 8. 嵌套 staticinlinevoid* blobmsg_open_array(structblob_buf *buf,constchar*name)staticinlinevoidblobmsg_close_array(structblob_buf *buf,void*cookie)staticinlinevoid*blobmsg_open_table(structblob_buf *buf,constchar*name)staticinlinevoidblobmsg_c...
84:嵌套 85: 86:staticinlinevoid* blobmsg_open_array(structblob_buf *buf,constchar*name) 87:staticinlinevoidblobmsg_close_array(structblob_buf *buf,void*cookie) 88: 89:staticinlinevoid*blobmsg_open_table(structblob_buf *buf,constchar*name) 90:staticinlinevoidblobmsg_close_table(structblob_buf ...
84:嵌套 85: 86:staticinlinevoid* blobmsg_open_array(structblob_buf *buf,constchar*name) 87:staticinlinevoidblobmsg_close_array(structblob_buf *buf,void*cookie) 88: 89:staticinlinevoid*blobmsg_open_table(structblob_buf *buf,constchar*name) 90:staticinlinevoidblobmsg_close_table(structblob_buf ...