diff options
Diffstat (limited to 'util/gotox')
-rw-r--r-- | util/gotox/Makefile | 17 | ||||
-rw-r--r-- | util/gotox/gotox.c | 145 |
2 files changed, 162 insertions, 0 deletions
diff --git a/util/gotox/Makefile b/util/gotox/Makefile new file mode 100644 index 0000000..673586a --- /dev/null +++ b/util/gotox/Makefile @@ -0,0 +1,17 @@ +# Makefile for linuxtv.org dvb-apps/util/gotox + +binaries = gotox + +inst_bin = $(binaries) + +CPPFLAGS += -I../../lib +LDFLAGS += -L../../lib/libdvbapi +LDFLAGS += -L../../lib/libdvbsec +LDLIBS += -ldvbapi +LDLIBS += -ldvbsec + +.PHONY: all + +all: $(binaries) + +include ../../Make.rules diff --git a/util/gotox/gotox.c b/util/gotox/gotox.c new file mode 100644 index 0000000..6616133 --- /dev/null +++ b/util/gotox/gotox.c @@ -0,0 +1,145 @@ +/* + * Copyright (C) 2006 by Michel Verbraak <michel@verbraak.org> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> +#include <libdvbapi/dvbfe.h> +#include <libdvbsec/dvbsec_api.h> + +static char *usage_str = + "\nusage: gotox [options] -d <angle>\n" + |