Home
last modified time | relevance | path

Searched refs:iUnknown (Results 1 – 25 of 46) sorted by relevance

12

/foundation/distributedschedule/samgr_lite/samgr/source/
Diunknown.c20 int IUNKNOWN_AddRef(IUnknown *iUnknown) in IUNKNOWN_AddRef() argument
22 if (iUnknown == NULL) { in IUNKNOWN_AddRef()
26 IUnknownEntry *entry = GET_OBJECT(iUnknown, IUnknownEntry, iUnknown); in IUNKNOWN_AddRef()
31 int IUNKNOWN_QueryInterface(IUnknown *iUnknown, int ver, void **target) in IUNKNOWN_QueryInterface() argument
33 if (iUnknown == NULL || target == NULL) { in IUNKNOWN_QueryInterface()
37 IUnknownEntry *entry = GET_OBJECT(iUnknown, IUnknownEntry, iUnknown); in IUNKNOWN_QueryInterface()
48 *target = iUnknown; in IUNKNOWN_QueryInterface()
49 iUnknown->AddRef(iUnknown); in IUNKNOWN_QueryInterface()
53 int IUNKNOWN_Release(IUnknown *iUnknown) in IUNKNOWN_Release() argument
55 if (iUnknown == NULL) { in IUNKNOWN_Release()
[all …]
Dfeature.c19 BOOL SAMGR_AddInterface(FeatureImpl *featureImpl, IUnknown *iUnknown) in SAMGR_AddInterface() argument
21 if (featureImpl == NULL || iUnknown == NULL || featureImpl->iUnknown != NULL) { in SAMGR_AddInterface()
25 featureImpl->iUnknown = iUnknown; in SAMGR_AddInterface()
34 IUnknown *iUnknown = featureImpl->iUnknown; in SAMGR_DelInterface() local
35 featureImpl->iUnknown = NULL; in SAMGR_DelInterface()
36 return iUnknown; in SAMGR_DelInterface()
44 return featureImpl->iUnknown; in SAMGR_GetInterface()
49 return (BOOL)(featureImpl == NULL || featureImpl->iUnknown == NULL); in SAMGR_IsNoInterface()
62 featureImpl->iUnknown = NULL; in FEATURE_CreateInstance()
Dfeature_impl.h32 IUnknown *iUnknown; member
41 inline static BOOL IsInvalidIUnknown(IUnknown *iUnknown) in IsInvalidIUnknown() argument
43 return (iUnknown == NULL || iUnknown->QueryInterface == NULL || iUnknown->AddRef == NULL || in IsInvalidIUnknown()
44 iUnknown->Release == NULL); in IsInvalidIUnknown()
46 BOOL SAMGR_AddInterface(FeatureImpl *featureImpl, IUnknown *iUnknown);
/foundation/distributedschedule/samgr_lite/interfaces/kits/samgr/
Diunknown.h73 int (*QueryInterface)(IUnknown *iUnknown, int version, void **target); \
74 int (*AddRef)(IUnknown *iUnknown); \
75 int (*Release)(IUnknown *iUnknown)
88 T iUnknown
115 .iUnknown = { \
142 #define GET_IUNKNOWN(T) (IUnknown *)(&((T).iUnknown))
155 int (*QueryInterface)(IUnknown *iUnknown, int version, void **target);
157 int (*AddRef)(IUnknown *iUnknown);
159 int (*Release)(IUnknown *iUnknown);
181 IUnknown iUnknown; member
[all …]
/foundation/distributedschedule/samgr_lite/communication/broadcast/source/
Dpub_sub_implement.c21 static int AddTopic(IUnknown *iUnknown, const Topic *topic);
22 static int Subscribe(IUnknown *iUnknown, const Topic *topic, Consumer *consumer);
23 static Consumer *ModifyConsumer(IUnknown *iUnknown, const Topic *topic, Consumer *oldConsumer, Cons…
24 static Consumer *Unsubscribe(IUnknown *iUnknown, const Topic *topic, const Consumer *consumer);
25 static BOOL Publish(IUnknown *iUnknown, const Topic *topic, uint8 *data, int16 len);
46 static int AddTopic(IUnknown *iUnknown, const Topic *topic) in AddTopic() argument
48 if (iUnknown == NULL || topic == NULL) { in AddTopic()
52 PubSubImplement *broadcast = GET_OBJECT(iUnknown, PubSubImplement, iUnknown); in AddTopic()
76 static int Subscribe(IUnknown *iUnknown, const Topic *topic, Consumer *consumer) in Subscribe() argument
78 if (iUnknown == NULL || topic == NULL || consumer == NULL) { in Subscribe()
[all …]
/foundation/graphic/wms/frameworks/wms/
Dlite_wms_client.cpp39 IUnknown* iUnknown = SAMGR_GetInstance()->GetDefaultFeatureApi(SERVICE_NAME); in InitLiteWMSClient() local
40 if (iUnknown == nullptr) { in InitLiteWMSClient()
44 (void)iUnknown->QueryInterface(iUnknown, CLIENT_PROXY_VER, (void**)&proxy_); in InitLiteWMSClient()
/foundation/aafwk/aafwk_lite/services/abilitymgr_lite/src/client/
Dwms_client.cpp38 IUnknown *iUnknown = SAMGR_GetInstance()->GetDefaultFeatureApi(SERVICE_NAME); in WaitUntilWmsReady() local
39 if (iUnknown == nullptr) { in WaitUntilWmsReady()
43 int result = iUnknown->QueryInterface(iUnknown, CLIENT_PROXY_VER, (void **)(&wmsProxy)); in WaitUntilWmsReady()
Dbundlems_client.cpp29 IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(BMS_SERVICE, BMS_FEATURE); in Initialize() local
30 if (iUnknown == nullptr) { in Initialize()
33 int result = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **) &bmsServerProxy_); in Initialize()
Dapp_spawn_client.cpp43 IUnknown *iUnknown = SAMGR_GetInstance()->GetDefaultFeatureApi(APPSPAWN_SERVICE_NAME); in Initialize() local
44 if (iUnknown == nullptr) { in Initialize()
49 int result = iUnknown->QueryInterface(iUnknown, CLIENT_PROXY_VER, (void **)(&spawnClient_)); in Initialize()
/foundation/distributedschedule/samgr_lite/interfaces/kits/communication/broadcast/
Dbroadcast_interface.h147 BOOL (*Publish)(IUnknown *iUnknown, const Topic *topic, uint8 *data, int16 len);
169 int (*AddTopic)(IUnknown *iUnknown, const Topic *topic);
185 int (*Subscribe)(IUnknown *iUnknown, const Topic *topic, Consumer *consumer);
201 …Consumer *(*ModifyConsumer)(IUnknown *iUnknown, const Topic *topic, Consumer *old, Consumer *curre…
218 Consumer *(*Unsubscribe)(IUnknown *iUnknown, const Topic *topic, const Consumer *consumer);
/foundation/distributedschedule/samgr_lite/
DREADME_zh.md296 BOOL (*AsyncCall)(IUnknown *iUnknown, const char *buff);
297 BOOL (*AsyncTimeCall)(IUnknown *iUnknown);
298 BOOL (*SyncCall)(IUnknown *iUnknown, struct Payload *payload);
299 BOOL (*AsyncCallBack)(IUnknown *iUnknown, const char *buff, Handler handler);
338 IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(EXAMPLE_SERVICE, EXAMPLE_FEATURE);
339 if (iUnknown == NULL) {
342 int result = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&demoApi);
372 BOOL (*AsyncCall)(IUnknown *iUnknown, const char *buff);
373 BOOL (*AsyncTimeCall)(IUnknown *iUnknown);
374 BOOL (*SyncCall)(IUnknown *iUnknown, struct Payload *payload);
[all …]
DREADME.md296 BOOL (*AsyncCall)(IUnknown *iUnknown, const char *buff);
297 BOOL (*AsyncTimeCall)(IUnknown *iUnknown);
298 BOOL (*SyncCall)(IUnknown *iUnknown, struct Payload *payload);
299 BOOL (*AsyncCallBack)(IUnknown *iUnknown, const char *buff, Handler handler);
338 IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(EXAMPLE_SERVICE, EXAMPLE_FEATURE);
339 if (iUnknown == NULL) {
342 int result = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&demoApi);
372 BOOL (*AsyncCall)(IUnknown *iUnknown, const char *buff);
373 BOOL (*AsyncTimeCall)(IUnknown *iUnknown);
374 BOOL (*SyncCall)(IUnknown *iUnknown, struct Payload *payload);
[all …]
/foundation/distributedschedule/samgr_lite/samgr_endpoint/source/
Ddefault_client_rpc.c56 static int AddRef(IUnknown *iUnknown);
98 entry->iUnknown.Invoke = ProxyInvoke; in SAMGR_CreateIProxy()
99 entry->iUnknown.AddRef = AddRef; in SAMGR_CreateIProxy()
100 entry->iUnknown.Release = Release; in SAMGR_CreateIProxy()
127 entry->iUnknown.Invoke = ProxyInvoke; in SAMGR_CreateIRemoteProxy()
128 entry->iUnknown.AddRef = AddRef; in SAMGR_CreateIRemoteProxy()
129 entry->iUnknown.Release = Release; in SAMGR_CreateIRemoteProxy()
136 IUnknown *iUnknown = SAMGR_FindServiceApi(service, feature); in SAMGR_GetRemoteIdentity() local
137 if (iUnknown == NULL) { in SAMGR_GetRemoteIdentity()
141 …if (iUnknown->QueryInterface(iUnknown, CLIENT_PROXY_VER, (void **)&proxy) != EC_SUCCESS || proxy =… in SAMGR_GetRemoteIdentity()
[all …]
Ddefault_client.c51 static int AddRef(IUnknown *iUnknown);
83 entry->iUnknown.Invoke = ProxyInvoke; in SAMGR_CreateIProxy()
84 entry->iUnknown.AddRef = AddRef; in SAMGR_CreateIProxy()
85 entry->iUnknown.Release = Release; in SAMGR_CreateIProxy()
92 IUnknown *iUnknown = SAMGR_FindServiceApi(service, feature); in SAMGR_GetRemoteIdentity() local
93 if (iUnknown == NULL) { in SAMGR_GetRemoteIdentity()
97 …if (iUnknown->QueryInterface(iUnknown, CLIENT_PROXY_VER, (void **)&proxy) != EC_SUCCESS || proxy =… in SAMGR_GetRemoteIdentity()
100 struct IDefaultClient *client = GET_OBJECT(proxy, struct IDefaultClient, entry.iUnknown); in SAMGR_GetRemoteIdentity()
108 IDefaultClient *client = GET_OBJECT(proxy, IDefaultClient, entry.iUnknown); in SAMGR_GetSAName()
140 static int AddRef(IUnknown *iUnknown) in AddRef() argument
[all …]
/foundation/multimedia/camera_lite/frameworks/
Dcamera_client.cpp42 IUnknown *iUnknown = SAMGR_GetInstance()->GetDefaultFeatureApi(SERVICE_NAME); in InitCameraClient() local
43 if (iUnknown == nullptr) { in InitCameraClient()
47 (void)iUnknown->QueryInterface(iUnknown, CLIENT_PROXY_VER, (void **)&proxy_); in InitCameraClient()
/foundation/aafwk/aafwk_lite/frameworks/abilitymgr_lite/src/
Dabilityms_client.cpp42 IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(AMS_SERVICE, AMS_FEATURE); in Initialize() local
43 if (iUnknown == nullptr) { in Initialize()
49 (void)iUnknown->QueryInterface(iUnknown, CLIENT_PROXY_VER, (void **)&amsProxy_); in Initialize()
/foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp/src/ipc/lite/
Dipc_client_server_proxy.cpp65 IUnknown *iUnknown = nullptr; in GetServerProxy() local
68 iUnknown = SAMGR_GetInstance()->GetDefaultFeatureApi(DEVICE_MANAGER_SERVICE_NAME); in GetServerProxy()
69 if (iUnknown == nullptr) { in GetServerProxy()
72 if (iUnknown->QueryInterface(iUnknown, CLIENT_PROXY_VER, (void **)&clientProxy) != DM_OK || in GetServerProxy()
/foundation/graphic/wms/frameworks/ims/
Dinput_event_listener_proxy.cpp39 IUnknown *iUnknown = SAMGR_GetInstance()->GetDefaultFeatureApi(IMS_SERVICE_NAME); in GetIClientProxy() local
40 if (iUnknown == nullptr) { in GetIClientProxy()
44 (void)iUnknown->QueryInterface(iUnknown, CLIENT_PROXY_VER, (void **)&proxy_); in GetIClientProxy()
/foundation/communication/dsoftbus/sdk/frame/small/src/
Dsoftbus_server_proxy.c51 IUnknown *iUnknown = SAMGR_GetInstance()->GetDefaultFeatureApi(SOFTBUS_SERVICE); in GetServerProxy() local
52 if (iUnknown == NULL) { in GetServerProxy()
57 int32_t ret = iUnknown->QueryInterface(iUnknown, CLIENT_PROXY_VER, (void **)&clientProxy); in GetServerProxy()
/foundation/aafwk/aafwk_lite/services/abilitymgr_lite/src/util/
Dabilityms_helper.cpp128 IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(BMS_SERVICE, BMS_FEATURE); in CheckVisiblePermission() local
129 if (iUnknown == nullptr) { in CheckVisiblePermission()
133 int result = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **) &bmsServerProxy); in CheckVisiblePermission()
/foundation/aafwk/aafwk_lite/frameworks/abilitymgr_lite/src/slite/
Dabilityms_slite_client.cpp37 IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(AMS_SERVICE, AMS_SLITE_FEATURE); in Initialize() local
38 if (iUnknown == nullptr) { in Initialize()
44 (void)iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&amsProxy_); in Initialize()
/foundation/distributedschedule/samgr_lite/samgr/registry/
Dservice_registry.c19 const Identity *identity, IUnknown *iUnknown) in SAMGR_RegisterServiceApi() argument
23 (void)iUnknown; in SAMGR_RegisterServiceApi()
/foundation/appexecfwk/appexecfwk_lite/frameworks/bundle_lite/src/slite/
Dbundlems_slite_client.cpp41 IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(BMS_SERVICE, BMS_SLITE_FEATURE); in Initialize() local
42 if (iUnknown == nullptr) { in Initialize()
47 (void)iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&bmsProxy_); in Initialize()
/foundation/distributedschedule/dmsfwk_lite/source/
Ddmslite_permission.c47 IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(BMS_SERVICE, BMS_FEATURE); in GetBmsInterface() local
48 if (iUnknown == NULL) { in GetBmsInterface()
53 int32_t errCode = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **) bmsInterface); in GetBmsInterface()
/foundation/communication/dsoftbus/sdk/discovery/ipc/small/
Ddisc_server_proxy.c48 IUnknown *iUnknown = SAMGR_GetInstance()->GetDefaultFeatureApi(SOFTBUS_SERVICE); in DiscServerProxyInit() local
49 if (iUnknown == NULL) { in DiscServerProxyInit()
54 int32_t ret = iUnknown->QueryInterface(iUnknown, CLIENT_PROXY_VER, (void **)&g_serverProxy); in DiscServerProxyInit()

12