|
SASC-NG
DVBSoftCAM
|
#include <stdlib.h>#include <stdio.h>#include <fcntl.h>#include <pthread.h>#include <sys/mman.h>#include <sys/poll.h>#include <sys/ioctl.h>#include <signal.h>#include <string.h>#include <getopt.h>#include <unistd.h>#include <errno.h>#include "list.h"#include <linux/dvb/dmx.h>#include <linux/dvb/frontend.h>#include "process_req.h"#include "msg_passing.h"#include "debug.h"Go to the source code of this file.
Defines | |
| #define | PLUGIN_ID 16 |
Functions | |
| static void | connect_dummy (struct parser_adpt *pc_all) |
| static struct option * | parseopt_dummy (arg_enum_t cmd) |
| int | __attribute__ ((constructor)) |
Variables | |
| static int | dummy_value = 0 |
| static struct option | Dummy_Opts [] |
| static struct plugin_cmd | plugin_cmds |
| #define PLUGIN_ID 16 |
Definition at line 54 of file plugin_dummy.c.
| int __attribute__ | ( | (constructor) | ) |
Definition at line 244 of file plugin_dummy.c.
References plugin_cmd::list, list_add(), and plugin_cmdlist.
{
// communicates the existance of teh current plugin to the main program.
list_add(&plugin_cmds.list, &plugin_cmdlist);
return 0;
}
| static void connect_dummy | ( | struct parser_adpt * | pc_all | ) | [static] |
Definition at line 80 of file plugin_dummy.c.
{
printf("Connect Called\n");
}
| static struct option* parseopt_dummy | ( | arg_enum_t | cmd | ) | [static, read] |
Definition at line 85 of file plugin_dummy.c.
References ARG_HELP, ARG_INIT, Dummy_Opts, dummy_value, and NULL.
{
if(cmd == ARG_INIT) {
return Dummy_Opts;
}
if(cmd == ARG_HELP) {
printf(" --dummy-param <adapter number> :\n");
}
if(! dummy_value)
return NULL;
switch(dummy_value) {
case 'd':
if(optarg){
printf("Attaching to adapter%i\n", atoi(optarg));
}
break;
}
//must reset dummy_value after every call
dummy_value = 0;
return NULL;
}
struct option Dummy_Opts[] [static] |
{
{"dummy-param", 2, &dummy_value, 'd'},
{0, 0, 0, 0},
}
Definition at line 75 of file plugin_dummy.c.
Referenced by parseopt_dummy().
int dummy_value = 0 [static] |
Definition at line 74 of file plugin_dummy.c.
Referenced by parseopt_dummy().
struct plugin_cmd plugin_cmds [static] |
{{NULL, NULL}, PLUGIN_ID, "dummy",
parseopt_dummy, connect_dummy, NULL, NULL, NULL, NULL, NULL}
Definition at line 242 of file plugin_dummy.c.