0563 nwnss: import COMN LSS feature registry runtime
This commit is contained in:
@@ -115,6 +115,35 @@ int main(void)
|
||||
CHECK(CACHE_Startup == CACHE_Startup);
|
||||
CHECK(BEASTHASH_Remove == BEASTHASH_Remove);
|
||||
CHECK(COMN_RegisterRootVariableDataType == COMN_RegisterRootVariableDataType);
|
||||
|
||||
{
|
||||
GeneralMsg_s gen_msg;
|
||||
LSSInfo_s in_info;
|
||||
LSSInfo_s out_info;
|
||||
NINT number_of_lsss = 0;
|
||||
|
||||
memset(&gen_msg, 0, sizeof(gen_msg));
|
||||
memset(&in_info, 0, sizeof(in_info));
|
||||
memset(&out_info, 0, sizeof(out_info));
|
||||
in_info.lssID = 0x4242;
|
||||
in_info.canCreateNew = 1;
|
||||
in_info.poolSupportedFeatures = 0x10;
|
||||
in_info.poolDefaultEnabledFeatures = 0x20;
|
||||
in_info.poolChangableFeatures = 0x30;
|
||||
in_info.volSupportedFeatures = 0x40;
|
||||
in_info.volDefaultEnabledFeatures = 0x50;
|
||||
in_info.volChangableFeatures = 0x60;
|
||||
|
||||
COMN_UnregisterLSSFeatures(in_info.lssID);
|
||||
CHECK(COMN_RegisterLSSFeatures(&gen_msg, &in_info) == zOK);
|
||||
CHECK(COMN_GetRegisteredLSSFeatures(&gen_msg, &number_of_lsss,
|
||||
(BYTE *)&out_info, sizeof(out_info)) == zOK);
|
||||
CHECK(number_of_lsss >= 1);
|
||||
CHECK(out_info.lssID == in_info.lssID);
|
||||
CHECK(out_info.volChangableFeatures == in_info.volChangableFeatures);
|
||||
CHECK(COMN_RegisterLSSFeatures(&gen_msg, &in_info) == zFAILURE);
|
||||
COMN_UnregisterLSSFeatures(in_info.lssID);
|
||||
}
|
||||
CHECK(sizeof(NSSConnection_s) >= sizeof(AuthCtrl_s));
|
||||
CHECK(sizeof(ContextHandleCtrl_s) >= sizeof(Latch_s));
|
||||
CHECK(sizeof(SAgentHandleCtrl_s) >= sizeof(Latch_s));
|
||||
|
||||
Reference in New Issue
Block a user