19c6d7c21Sopenharmony_ci/*
29c6d7c21Sopenharmony_ci * Copyright (c) 2020 Huawei Device Co., Ltd.
39c6d7c21Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
49c6d7c21Sopenharmony_ci * you may not use this file except in compliance with the License.
59c6d7c21Sopenharmony_ci * You may obtain a copy of the License at
69c6d7c21Sopenharmony_ci *
79c6d7c21Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
89c6d7c21Sopenharmony_ci *
99c6d7c21Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
109c6d7c21Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
119c6d7c21Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
129c6d7c21Sopenharmony_ci * See the License for the specific language governing permissions and
139c6d7c21Sopenharmony_ci * limitations under the License.
149c6d7c21Sopenharmony_ci */
159c6d7c21Sopenharmony_ci#include "service_registry.h"
169c6d7c21Sopenharmony_ci#include <ohos_errno.h>
179c6d7c21Sopenharmony_ci
189c6d7c21Sopenharmony_ciint __attribute__((weak)) SAMGR_RegisterServiceApi(const char *service, const char *feature,
199c6d7c21Sopenharmony_ci                                                   const Identity *identity, IUnknown *iUnknown)
209c6d7c21Sopenharmony_ci{
219c6d7c21Sopenharmony_ci    (void)service;
229c6d7c21Sopenharmony_ci    (void)feature;
239c6d7c21Sopenharmony_ci    (void)iUnknown;
249c6d7c21Sopenharmony_ci    (void)identity;
259c6d7c21Sopenharmony_ci    return EC_FAILURE;
269c6d7c21Sopenharmony_ci}
279c6d7c21Sopenharmony_ci
289c6d7c21Sopenharmony_ciIUnknown *__attribute__((weak)) SAMGR_FindServiceApi(const char *service, const char *feature)
299c6d7c21Sopenharmony_ci{
309c6d7c21Sopenharmony_ci    (void)service;
319c6d7c21Sopenharmony_ci    (void)feature;
329c6d7c21Sopenharmony_ci    return NULL;
339c6d7c21Sopenharmony_ci}
349c6d7c21Sopenharmony_ci
359c6d7c21Sopenharmony_ciint32 __attribute__((weak)) SAMGR_RegisterSystemCapabilityApi(const char *sysCap, BOOL isReg)
369c6d7c21Sopenharmony_ci{
379c6d7c21Sopenharmony_ci    (void)sysCap;
389c6d7c21Sopenharmony_ci    (void)isReg;
399c6d7c21Sopenharmony_ci    return EC_FAILURE;
409c6d7c21Sopenharmony_ci}
419c6d7c21Sopenharmony_ci
429c6d7c21Sopenharmony_ciBOOL __attribute__((weak)) SAMGR_QuerySystemCapabilityApi(const char *sysCap)
439c6d7c21Sopenharmony_ci{
449c6d7c21Sopenharmony_ci    (void)sysCap;
459c6d7c21Sopenharmony_ci    return FALSE;
469c6d7c21Sopenharmony_ci}
479c6d7c21Sopenharmony_ci
489c6d7c21Sopenharmony_ciint32 __attribute__((weak)) SAMGR_GetSystemCapabilitiesApi(char sysCaps[MAX_SYSCAP_NUM][MAX_SYSCAP_NAME_LEN],
499c6d7c21Sopenharmony_ci                                                           int32 *size)
509c6d7c21Sopenharmony_ci{
519c6d7c21Sopenharmony_ci    (void)sysCaps;
529c6d7c21Sopenharmony_ci    (void)size;
539c6d7c21Sopenharmony_ci    return EC_FAILURE;
549c6d7c21Sopenharmony_ci}