Mercurial > pt1.oyama
diff recpt1/recpt1.c @ 74:b6607f6e2851
good citizens never use gray code. wise people never watch TV.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 28 Nov 2009 00:12:05 +0900 |
parents | 18108d097707 |
children | 5a0126d8af17 |
line wrap: on
line diff
--- a/recpt1/recpt1.c Wed Nov 18 13:12:44 2009 +0900 +++ b/recpt1/recpt1.c Sat Nov 28 00:12:05 2009 +0900 @@ -22,8 +22,9 @@ #include <sys/ioctl.h> #include "pt1_ioctl.h" +#include "config.h" +#include "decoder.h" #include "recpt1.h" -#include "decoder.h" #include "version.h" #include "mkpath.h" @@ -311,7 +312,11 @@ void show_usage(char *cmd) { +#ifdef HAVE_LIBARIB25 fprintf(stderr, "Usage: \n%s [--b25 [--round N] [--strip] [--EMM]] [--udp [--addr hostname --port portnumber]] [--device devicefile] channel rectime destfile\n", cmd); +#else + fprintf(stderr, "Usage: \n%s [--strip] [--EMM]] [--udp [--addr hostname --port portnumber]] [--device devicefile] channel rectime destfile\n", cmd); +#endif fprintf(stderr, "\n"); fprintf(stderr, "Remarks:\n"); fprintf(stderr, "if rectime is '-', records indefinitely.\n"); @@ -322,10 +327,12 @@ show_options(void) { fprintf(stderr, "Options:\n"); +#ifdef HAVE_LIBARIB25 fprintf(stderr, "--b25: Decrypt using BCAS card\n"); fprintf(stderr, " --round N: Specify round number\n"); fprintf(stderr, " --strip: Strip null stream\n"); fprintf(stderr, " --EMM: Instruct EMM operation\n"); +#endif fprintf(stderr, "--udp: Turn on udp broadcasting\n"); fprintf(stderr, " --addr hostname: Hostname or address to connect\n"); fprintf(stderr, " --port portnumber: Port number to connect\n"); @@ -546,8 +553,10 @@ int result; int option_index; struct option long_options[] = { +#ifdef HAVE_LIBARIB25 { "b25", 0, NULL, 'b'}, { "B25", 0, NULL, 'b'}, +#endif { "round", 1, NULL, 'r'}, { "strip", 0, NULL, 's'}, { "emm", 0, NULL, 'm'},