Commit | Line | Data |
---|---|---|
05e76763 JK |
1 | /* |
2 | * Copyright (C) 2012 Samsung Electronics Co., LTD | |
3 | * | |
4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | ||
17 | ||
18 | #ifndef TLC_COMMUNICATION_H_ | |
19 | #define TLC_COMMUNICATION_H_ | |
20 | ||
21 | ||
22 | #include "MobiCoreDriverApi.h" | |
23 | ||
24 | #include "tlwvdrm_api.h" | |
25 | ||
26 | typedef struct { | |
27 | uint32_t device_id; | |
28 | mcUuid_t uuid; | |
29 | mcSessionHandle_t handle; | |
30 | tciMessage_t *tci_msg; | |
31 | bool initialized; | |
32 | } mc_comm_ctx; | |
33 | ||
34 | mcResult_t tlc_open(mc_comm_ctx *comm_ctx); | |
35 | mcResult_t tlc_close(mc_comm_ctx *comm_ctx); | |
36 | mcResult_t tlc_communicate(mc_comm_ctx *comm_ctx); | |
37 | ||
38 | ||
39 | #endif |