mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-09-25 20:59:20 +03:00
Implementation of the JSON-RPC API and the Web Admin interface. (dnobori's internal note: 7579 - 7682)
This commit is contained in:
@ -558,6 +558,7 @@ void OutRpcEnumDevice(PACK *p, RPC_ENUM_DEVICE *t)
|
||||
|
||||
PackAddInt(p, "NumItem", t->NumItem);
|
||||
|
||||
PackSetCurrentJsonGroupName(p, "DeviceList");
|
||||
for (i = 0;i < t->NumItem;i++)
|
||||
{
|
||||
RPC_ENUM_DEVICE_ITEM *d = &t->Items[i];
|
||||
@ -565,6 +566,7 @@ void OutRpcEnumDevice(PACK *p, RPC_ENUM_DEVICE *t)
|
||||
PackAddStrEx(p, "DeviceName", d->DeviceName, i, t->NumItem);
|
||||
PackAddBoolEx(p, "Active", d->Active, i, t->NumItem);
|
||||
}
|
||||
PackSetCurrentJsonGroupName(p, NULL);
|
||||
|
||||
PackAddBool(p, "IsLicenseSupported", t->IsLicenseSupported);
|
||||
}
|
||||
@ -605,7 +607,7 @@ void OutRpcElLicenseStatus(PACK *p, RPC_EL_LICENSE_STATUS *t)
|
||||
|
||||
PackAddBool(p, "Valid", t->Valid);
|
||||
PackAddInt64(p, "SystemId", t->SystemId);
|
||||
PackAddInt64(p, "SystemExpires", t->SystemExpires);
|
||||
PackAddTime64(p, "SystemExpires", t->SystemExpires);
|
||||
}
|
||||
|
||||
// Listener thread
|
||||
|
Reference in New Issue
Block a user