TizenRT Public API  v2.0 M2
stream_info.h
Go to the documentation of this file.
1 /* ****************************************************************
2  *
3  * Copyright 2019 Samsung Electronics All Rights Reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  ******************************************************************/
18 
29 #ifndef __STREAM_INFO_H
30 #define __STREAM_INFO_H
31 
32 #if defined(__cplusplus)
33 extern "C" {
34 #endif
35 
36 #include <stdint.h>
37 #include <sys/types.h>
38 
39 typedef struct stream_info_s stream_info_t;
40 
47 };
48 
49 typedef enum stream_focus_state_e stream_focus_state_t;
50 
55  STREAM_TYPE_MEDIA = 0,
56  STREAM_TYPE_VOIP = 1,
57  STREAM_TYPE_NOTIFY = 2,
58  STREAM_TYPE_VOICE_RECOGNITION = 3,
59  STREAM_TYPE_EMERGENCY = 4
60 };
61 
62 typedef enum stream_policy_e stream_policy_t;
63 typedef uint64_t stream_info_id_t;
64 
65 struct stream_info_s {
66  stream_info_id_t id;
67  stream_policy_t policy;
68 };
69 
70 int stream_info_init(void);
71 int stream_info_create(stream_policy_t stream_policy, stream_info_t **stream_info);
72 int stream_info_destroy(stream_info_t *stream_info);
73 
74 #if defined(__cplusplus)
75 } /* extern "C" */
76 #endif
77 #endif
78  // end of MEDIA group
stream_policy_e
Stream Policy, high value means higher priority.
Definition: stream_info.h:54
stream_focus_state_e
Enumeration for stream focus state.
Definition: stream_info.h:44