Fix memory leak
[platform/core/multimedia/libmm-sound.git] / include / mm_sound_stream.h
1 /*
2  * libmm-sound
3  *
4  * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Sangchul Lee <sc11.lee@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22 /**
23  * @file                mm_sound_stream.h
24  * @brief               Application interface library for sound module.
25  * @date
26  *
27  * Application interface library for sound module.
28  */
29
30 #ifndef __MM_SOUND_STREAM_H__
31 #define __MM_SOUND_STREAM_H__
32
33 #ifdef __cplusplus
34         extern "C" {
35 #endif
36
37 #include <glib.h>
38 #define MAX_STREAM_TYPE_LEN 64
39 #define NUM_OF_STREAM_IO_TYPE         2    /* playback / capture */
40 #define AVAIL_STREAMS_MAX 32
41 typedef struct _stream_list {
42         gchar *stream_types[AVAIL_STREAMS_MAX];
43         int priorities[AVAIL_STREAMS_MAX];
44         int count;
45 } stream_list_t;
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif  /* __MM_SOUND_STREAM_H__ */
52