xref: /rockchip-linux_mpp/osal/inc/mpp_env.h (revision 437bfbeb9567cca9cd9080e3f6954aa9d6a94f18)
1 /* SPDX-License-Identifier: Apache-2.0 OR MIT */
2 /*
3  * Copyright (c) 2015 Rockchip Electronics Co., Ltd.
4  */
5 
6 #ifndef __MPP_ENV_H__
7 #define __MPP_ENV_H__
8 
9 #include "rk_type.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 RK_S32 mpp_env_get_u32(const char *name, RK_U32 *value, RK_U32 default_value);
16 RK_S32 mpp_env_get_str(const char *name, const char **value, const char *default_value);
17 
18 RK_S32 mpp_env_set_u32(const char *name, RK_U32 value);
19 RK_S32 mpp_env_set_str(const char *name, char *value);
20 
21 #ifdef __cplusplus
22 }
23 #endif
24 
25 #endif /*__MPP_ENV_H__*/
26 
27