• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 #ifndef DEVSVC_MANAGER_CLNT_H
10 #define DEVSVC_MANAGER_CLNT_H
11 
12 #include "devsvc_manager_if.h"
13 
14 struct DevSvcManagerClnt {
15     struct IDevSvcManager *devSvcMgrIf;
16 };
17 
18 struct DevSvcManagerClnt *DevSvcManagerClntGetInstance(void);
19 struct HdfDeviceObject *DevSvcManagerClntGetDeviceObject(const char *svcName);
20 int DevSvcManagerClntAddService(struct HdfDeviceObject *service, const struct HdfServiceInfo *servinfo);
21 int DevSvcManagerClntUpdateService(struct HdfDeviceObject *service, const struct HdfServiceInfo *servinfo);
22 void DevSvcManagerClntRemoveService(const char *svcName);
23 int DevSvcManagerClntSubscribeService(const char *svcName, struct SubscriberCallback callback);
24 int DevSvcManagerClntUnsubscribeService(const char *svcName);
25 
26 #endif /* DEVSVC_MANAGER_CLNT_H */
27