1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #include "softbus_disc_server.h" 17 18 #include "disc_log.h" 19 #include "softbus_error_code.h" 20 #include "softbus_hisysevt_discreporter.h" 21 DiscServerInit(void)22int32_t DiscServerInit(void) 23 { 24 int32_t ret = DiscMgrInit(); 25 if (ret != SOFTBUS_OK) { 26 DISC_LOGE(DISC_INIT, "DiscServerInit failed"); 27 return ret; 28 } 29 return SOFTBUS_OK; 30 } 31 DiscServerDeinit(void)32void DiscServerDeinit(void) 33 { 34 DiscMgrDeinit(); 35 } 36 DiscServerDeathCallback(const char * pkgName)37void DiscServerDeathCallback(const char *pkgName) 38 { 39 DiscMgrDeathCallback(pkgName); 40 } 41