Mercurial > pt1.oyama
annotate src/pt1_common.h @ 185:7a0f498af035 default tip
Fix a race condition.
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Wed, 14 May 2014 22:43:57 +0900 |
parents | 4f3640bf350d |
children |
rev | line source |
---|---|
165 | 1 /* pt1_common.h -- This file is part of recpt1. |
2 | |
3 Copyright 2012 Naoya OYAMA <naoya.oyama@gmail.com> | |
4 | |
5 This program is free software: you can redistribute it and/or modify | |
6 it under the terms of the GNU General Public License as published by | |
7 the Free Software Foundation, either version 3 of the License, or | |
8 (at your option) any later version. | |
9 | |
10 This program is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 GNU General Public License for more details. | |
14 | |
15 You should have received a copy of the GNU General Public License | |
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
17 | |
168 | 18 #ifndef _RECPT1_COMMON_H_ |
19 #define _RECPT1_COMMON_H_ | |
20 | |
21 #include "pt1_dev.h" | |
22 #include "recpt1.h" | |
23 | |
165 | 24 /* ipc message size */ |
25 #define MSGSZ 255 | |
168 | 26 #define ISDB_T_NODE_LIMIT 24 // 32:ARIB limit 24:program maximum |
27 #define ISDB_T_SLOT_LIMIT 8 | |
28 #define MAX_RETRY (2) | |
165 | 29 |
30 typedef struct pt1_msgbuf { | |
31 long mtype; | |
32 char mtext[MSGSZ]; | |
33 } pt1_message_buf; | |
34 | |
168 | 35 //prototaype |
36 int tune(char *channel, thread_data *tdata, char *device); | |
37 int close_tuner(thread_data *tdata); | |
38 void show_channels(void); | |
39 ISDB_T_FREQ_CONV_TABLE *searchrecoff(char *channel); | |
40 void calc_cn(int fd, int type, boolean use_bell); | |
41 int tune(char *channel, thread_data *tdata, char *device); | |
42 int close_tuner(thread_data *tdata); | |
170
4f3640bf350d
Change display name of DLNA.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
168
diff
changeset
|
43 uint16_t get_device_id_by_name(char *device_name); |
168 | 44 |
45 #endif |