13d0407baSopenharmony_ci/*
23d0407baSopenharmony_ci * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
33d0407baSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
43d0407baSopenharmony_ci * you may not use this file except in compliance with the License.
53d0407baSopenharmony_ci * You may obtain a copy of the License at
63d0407baSopenharmony_ci *
73d0407baSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
83d0407baSopenharmony_ci *
93d0407baSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
103d0407baSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
113d0407baSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
123d0407baSopenharmony_ci * See the License for the specific language governing permissions and
133d0407baSopenharmony_ci * limitations under the License.
143d0407baSopenharmony_ci */
153d0407baSopenharmony_ci
163d0407baSopenharmony_ci#ifndef __MPP_ENV_H__
173d0407baSopenharmony_ci#define __MPP_ENV_H__
183d0407baSopenharmony_ci
193d0407baSopenharmony_ci#include "rk_type.h"
203d0407baSopenharmony_ci
213d0407baSopenharmony_ci#ifdef __cplusplus
223d0407baSopenharmony_ciextern "C" {
233d0407baSopenharmony_ci#endif
243d0407baSopenharmony_ci
253d0407baSopenharmony_ciRK_S32 mpp_env_get_u32(const char *name, RK_U32 *value, RK_U32 default_value);
263d0407baSopenharmony_ciRK_S32 mpp_env_get_str(const char *name, const char **value, const char *default_value);
273d0407baSopenharmony_ci
283d0407baSopenharmony_ciRK_S32 mpp_env_set_u32(const char *name, RK_U32 value);
293d0407baSopenharmony_ciRK_S32 mpp_env_set_str(const char *name, char *value);
303d0407baSopenharmony_ci
313d0407baSopenharmony_ci#ifdef __cplusplus
323d0407baSopenharmony_ci}
333d0407baSopenharmony_ci#endif
343d0407baSopenharmony_ci
353d0407baSopenharmony_ci#endif /* __MPP_ENV_H__ */
363d0407baSopenharmony_ci
37