Home
last modified time | relevance | path

Searched refs:extPart (Results 1 – 4 of 4) sorted by relevance

/base/security/device_auth/test/unittest/deviceauth/source/
Ddevice_auth_ext_mock.c84 int32_t InitExtPart(const cJSON *params, ExtPart *extPart) in InitExtPart() argument
88 if (extPart == NULL) { in InitExtPart()
91 extPart->instance = (ExtPart *)HcMalloc(sizeof(ExtPart), 0); in InitExtPart()
92 if (extPart->instance == NULL) { in InitExtPart()
98 ExtPluginList GetExtPlugins(ExtPart *extPart) in GetExtPlugins() argument
101 (void)extPart; in GetExtPlugins()
106 void DestroyExtPart(ExtPart *extPart) in DestroyExtPart() argument
109 if (extPart != NULL) { in DestroyExtPart()
110 HcFree(extPart->instance); in DestroyExtPart()
111 extPart->instance = NULL; in DestroyExtPart()
Ddeviceauth_standard_test.cpp3632 ExtPart *extPart; member in __anon61fa367a0111::ExtPartTest
3642 extPart = reinterpret_cast<ExtPart *>(HcMalloc(sizeof(ExtPart), 0)); in SetUp()
3643 ASSERT_NE(extPart, nullptr); in SetUp()
3649 HcFree(extPart); in TearDown()
3654 int ret = InitExtPart(nullptr, extPart);
3660 ExtPluginList list = GetExtPlugins(extPart);
3666 DestroyExtPart(extPart);
3667 ASSERT_TRUE(extPart->instance == nullptr);
/base/security/device_auth/services/frameworks/inc/plugin_adapter/
Dext_part_proxy.h23 int32_t (*initExtPartFunc)(const cJSON *params, ExtPart *extPart);
24 ExtPluginList (*getPluginListFunc)(ExtPart *extPart);
25 void (*destroyExtPartFunc)(ExtPart *extPart);
/base/security/device_auth/interfaces/inner_api/
Ddevice_auth_ext.h145 int32_t InitExtPart(const cJSON *params, ExtPart *extPart);
155 ExtPluginList GetExtPlugins(ExtPart *extPart);
164 void DestroyExtPart(ExtPart *extPart);