169 files changed, 64432 insertions, 116 deletions
diff --git a/tvapi/tvtests/comm_test.cpp b/tvapi/tvtests/comm_test.cpp new file mode 100644 index 0000000..c719cc1 --- a/dev/null +++ b/tvapi/tvtests/comm_test.cpp @@ -0,0 +1,33 @@ +#include <tv/CFbcCommunication.h> +#include "tv/CTvLog.h" + +void usage(char *processname) +{ + fprintf(stderr, "Usage: %s <cmd num> [arg1]... [argn]\n", processname); + return; +} + + +int main(int argc, char **argv) +{ + int cmd, go = 1; + LOGD("---------------0------------------------"); + CFbcCommunication fbc; + LOGD("---------------1-------------------------"); + fbc.run(); + LOGD("------------------2----------------------"); + + while (go) { + scanf("%d", &cmd); + switch (cmd) { + case 1: + go = 0; + fbc.closeAll(); + break; + case 2: + break; + default: + break; + } + } +} |