mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-09 23:34:41 +01:00
Align operate arguments with latest changes: 'command' -> 'path'
This commit is contained in:
parent
e8f5876b87
commit
1e19260544
3 changed files with 5 additions and 5 deletions
|
|
@ -1106,7 +1106,7 @@ void cwmp_invoke_intf_reset(char *path)
|
|||
CWMP_MEMSET(&b, 0, sizeof(struct blob_buf));
|
||||
|
||||
blob_buf_init(&b, 0);
|
||||
bb_add_string(&b, "command", command);
|
||||
bb_add_string(&b, "path", command);
|
||||
bb_add_string(&b, "command_key", "cwmp_reset_intf");
|
||||
|
||||
icwmp_ubus_invoke(BBFDM_OBJECT_NAME, "operate", b.head, NULL, NULL);
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ static void prepare_blob_msg(struct blob_buf *b, const char *url, const char *uu
|
|||
switch (op) {
|
||||
case DU_INSTALL:
|
||||
snprintf(command, sizeof(command), "%sInstallDU()", path);
|
||||
bb_add_string(b, "command", command);
|
||||
bb_add_string(b, "path", command);
|
||||
bb_add_string(b, "command_key", "cwmp_install_du");
|
||||
tbl = blobmsg_open_table(b, "input");
|
||||
bb_add_string(b, "UUID", uuid ? uuid : "");
|
||||
|
|
@ -94,7 +94,7 @@ static void prepare_blob_msg(struct blob_buf *b, const char *url, const char *uu
|
|||
break;
|
||||
case DU_UPDATE:
|
||||
snprintf(command, sizeof(command), "%sUpdate()", path);
|
||||
bb_add_string(b, "command", command);
|
||||
bb_add_string(b, "path", command);
|
||||
bb_add_string(b, "command_key", "cwmp_update_du");
|
||||
tbl = blobmsg_open_table(b, "input");
|
||||
bb_add_string(b, "URL", url ? url : "");
|
||||
|
|
@ -104,7 +104,7 @@ static void prepare_blob_msg(struct blob_buf *b, const char *url, const char *uu
|
|||
break;
|
||||
case DU_UNINSTALL:
|
||||
snprintf(command, sizeof(command), "%sUninstall()", path);
|
||||
bb_add_string(b, "command", command);
|
||||
bb_add_string(b, "path", command);
|
||||
bb_add_string(b, "command_key", "cwmp_uninstall_du");
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ static int generate_log_archive(int instance, char *url)
|
|||
|
||||
snprintf(vlf_upload_operate, sizeof(vlf_upload_operate), "Device.DeviceInfo.VendorLogFile.%d.Upload()", instance);
|
||||
|
||||
bb_add_string(&b, "command", vlf_upload_operate);
|
||||
bb_add_string(&b, "path", vlf_upload_operate);
|
||||
bb_add_string(&b, "command_key", "vendor_log_upload");
|
||||
|
||||
void *tbl = blobmsg_open_table(&b, "input");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue