diff 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
line wrap: on
line diff
--- a/src/pt1_common.h	Sat Oct 06 21:57:42 2012 +0900
+++ b/src/pt1_common.h	Sun Oct 07 00:37:10 2012 +0900
@@ -15,11 +15,30 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef _RECPT1_COMMON_H_
+#define _RECPT1_COMMON_H_
+
+#include "pt1_dev.h"
+#include "recpt1.h"
+
 /* ipc message size */
 #define MSGSZ     255
+#define ISDB_T_NODE_LIMIT 24        // 32:ARIB limit 24:program maximum
+#define ISDB_T_SLOT_LIMIT 8
+#define MAX_RETRY (2)
 
 typedef struct pt1_msgbuf {
     long    mtype;
     char    mtext[MSGSZ];
 } pt1_message_buf;
 
+//prototaype
+int tune(char *channel, thread_data *tdata, char *device);
+int close_tuner(thread_data *tdata);
+void show_channels(void);
+ISDB_T_FREQ_CONV_TABLE *searchrecoff(char *channel);
+void calc_cn(int fd, int type, boolean use_bell);
+int tune(char *channel, thread_data *tdata, char *device);
+int close_tuner(thread_data *tdata);
+
+#endif