• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17  */
18 
19 #ifndef __ACODEC_H__
20 #define __ACODEC_H__
21 #include<stdio.h>
22 
23 #ifdef __cplusplus
24 #if __cplusplus
25 extern "C" {
26 #endif
27 #endif /* end of #ifdef __cplusplus */
28 
29 typedef enum {
30     SDK_INIT_SUCC = 0,
31     SDK_INIT_FAIL = 1,
32     SDK_INIT_REENTRY = 2
33 } sdk_state_s;
34 
35 extern void sdk_exit(void);
36 extern sdk_state_s sdk_init(void);
37 
38 #ifdef __cplusplus
39 #if __cplusplus
40 }
41 #endif
42 #endif /* end of #ifdef __cplusplus */
43 
44 #endif /* End of #ifndef __ACODEC_H__ */
45