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 "display_gfx.h" 17 #include <stdio.h> 18 #include "hdf_log.h" 19 #include "display_type.h" 20 GfxInitialize(GfxFuncs ** funcs)21int32_t GfxInitialize(GfxFuncs **funcs) 22 { 23 if (funcs == NULL) { 24 HDF_LOGE("%s: funcs is null", __func__); 25 return DISPLAY_NULL_PTR; 26 } 27 *funcs = NULL; 28 HDF_LOGI("%s: gfx initialize success", __func__); 29 return DISPLAY_SUCCESS; 30 } 31 GfxUninitialize(GfxFuncs * funcs)32int32_t GfxUninitialize(GfxFuncs *funcs) 33 { 34 if (funcs == NULL) { 35 HDF_LOGE("%s: funcs is null", __func__); 36 return DISPLAY_NULL_PTR; 37 } 38 free(funcs); 39 HDF_LOGI("%s: gfx uninitialize success", __func__); 40 return DISPLAY_SUCCESS; 41 }