33ad7132798d3f7ba2a6d53ef2600812cc9af1f6
[platform/core/api/radio.git] / include / radio_private.h
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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 #ifndef __TIZEN_MEDIA_RADIO_PRIVATE_H__
18 #define __TIZEN_MEDIA_RADIO_PRIVATE_H__
19 #include <radio.h>
20 #include <mm_radio.h>
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 typedef enum {
27         _RADIO_EVENT_TYPE_SCAN_INFO,
28         _RADIO_EVENT_TYPE_SCAN_STOP,
29         _RADIO_EVENT_TYPE_SCAN_FINISH,
30         _RADIO_EVENT_TYPE_SEEK_FINISH,
31         _RADIO_EVENT_TYPE_INTERRUPT,
32         _RADIO_EVENT_TYPE_NUM
33 } _radio_event_e;
34
35 typedef struct _radio_s {
36         MMHandleType mm_handle;
37         const void *user_cb[_RADIO_EVENT_TYPE_NUM];
38         void *user_data[_RADIO_EVENT_TYPE_NUM];
39         radio_state_e state;
40         bool mute;
41         bool seeking;
42 } radio_s;
43
44 #ifdef __cplusplus
45 }
46 #endif
47
48 #endif /* __TIZEN_MEDIA_RADIO_PRIVATE_H__ */