Mercurial > pt1.oyama
comparison src/pt1_common.h @ 168:061ef2cd98f0
Code refactoring.
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Sun, 07 Oct 2012 00:37:10 +0900 |
parents | 3ffef0e5b80a |
children | 4f3640bf350d |
comparison
equal
deleted
inserted
replaced
167:b21f1e823ec3 | 168:061ef2cd98f0 |
---|---|
13 GNU General Public License for more details. | 13 GNU General Public License for more details. |
14 | 14 |
15 You should have received a copy of the GNU General Public License | 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/>. */ | 16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
17 | 17 |
18 #ifndef _RECPT1_COMMON_H_ | |
19 #define _RECPT1_COMMON_H_ | |
20 | |
21 #include "pt1_dev.h" | |
22 #include "recpt1.h" | |
23 | |
18 /* ipc message size */ | 24 /* ipc message size */ |
19 #define MSGSZ 255 | 25 #define MSGSZ 255 |
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) | |
20 | 29 |
21 typedef struct pt1_msgbuf { | 30 typedef struct pt1_msgbuf { |
22 long mtype; | 31 long mtype; |
23 char mtext[MSGSZ]; | 32 char mtext[MSGSZ]; |
24 } pt1_message_buf; | 33 } pt1_message_buf; |
25 | 34 |
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); | |
43 | |
44 #endif |