libxcoder  3.5.1
ni_rsrc_api_android_logan.h
Go to the documentation of this file.
1 /*******************************************************************************
2  *
3  * Copyright (C) 2022 NETINT Technologies
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy
6  * of this software and associated documentation files (the "Software"), to deal
7  * in the Software without restriction, including without limitation the rights
8  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9  * copies of the Software, and to permit persons to whom the Software is
10  * furnished to do so, subject to the following conditions:
11  *
12  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18  * SOFTWARE.
19  *
20  ******************************************************************************/
21 
22 /*!*****************************************************************************
23 * \file ni_rsrc_api_android.h
24 *
25 * \brief Exported definitions related to resource management of NI T-408
26 * devices
27 *
28 *******************************************************************************/
29 
30 #ifndef ANDROID_NI_LOGAN_RSRC_API_H
31 #define ANDROID_NI_LOGAN_RSRC_API_H
32 
33 #define LOG_TAG "SharedBufferClient"
34 
35 #include <android/hardware/nidec/1.0/INidec.h>
36 
37 #include <hidl/Status.h>
38 
39 #include <hidl/LegacySupport.h>
40 
41 #include <utils/misc.h>
42 
43 #include <hidl/HidlSupport.h>
44 
45 #include <stdio.h>
46 
47 #include <cutils/properties.h>
48 #include <cutils/ashmem.h>
49 #include <sys/mman.h>
50 
51 using android::hardware::nidec::V1_0::INidec;
52 using android::sp;
53 using android::hardware::hidl_string;
54 using android::hardware::hidl_handle;
55 using android::hardware::Return;
56 
57 using namespace std;
58 
59 
60 
61 extern android::sp<INidec> service_logan;
62 
63 
64 /*!*****************************************************************************
65  * \brief Init android net.int.SharedBuffer service for binder using.
66  *
67  * \param none
68  *
69  * \return service (= 0) if get service , < 0 otherwise
70  *
71  ******************************************************************************/
73 
74 #endif // ANDROID_NI_LOGAN_RSRC_API_H
75 
int ni_logan_rsrc_android_init()
Init android net.int.SharedBuffer service for binder using.
android::sp< INidec > service_logan