summaryrefslogtreecommitdiff
path: root/util_liveinfo/src/liveinfo.c
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-05-29 15:39:14 +0900
committerSung-jae Park <nicesj.park@samsung.com>2013-05-29 16:29:23 +0900
commitad56a125560af092ef0f082a2985026ede6aaf76 (patch)
tree569e0c2d55523defdcc18a87d86d7224b7786168 /util_liveinfo/src/liveinfo.c
parent785a181bdccc54fb22c9e482628d85ff82e01a08 (diff)
downloaddata-provider-master-ad56a125560af092ef0f082a2985026ede6aaf76.tar.gz
data-provider-master-ad56a125560af092ef0f082a2985026ede6aaf76.tar.bz2
data-provider-master-ad56a125560af092ef0f082a2985026ede6aaf76.zip
New patches are applied
Patch 2/2 Update pd,show/pd,hide & lb,show/lb,hide event Patch 1/2 review code. extract duplicated code to a function Change-Id: If9fc018a145b2b779762a02e76b017271487ef1e
Diffstat (limited to 'util_liveinfo/src/liveinfo.c')
-rw-r--r--util_liveinfo/src/liveinfo.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/util_liveinfo/src/liveinfo.c b/util_liveinfo/src/liveinfo.c
index a44a9f7..705b100 100644
--- a/util_liveinfo/src/liveinfo.c
+++ b/util_liveinfo/src/liveinfo.c
@@ -475,6 +475,7 @@ static inline void help(void)
printf("liveinfo - Livebox utility\n");
printf("------------------------------ [Option] ------------------------------\n");
printf("-b Batch mode\n");
+ printf("-x execute command\n");
printf("------------------------------ [Command list] ------------------------------\n");
printf("cd [PATH] - Change directory\n");
printf("ls [ | PATH] - List up content as a file\n");
@@ -486,6 +487,7 @@ static inline void help(void)
printf("x resize Pix w h - Resize the window\n");
printf("x map Pix - Show the window\n");
printf("x unmap Pix - Hide the window\n");
+ printf("x capture Pix outfile - Capture pixmap and save it to outfile\n");
printf("sh [command] Execute shell command, [command] should be abspath\n");
printf("exit - \n");
printf("quit - \n");
@@ -1675,6 +1677,7 @@ int main(int argc, char *argv[])
{ "batchmode", required_argument, 0, 'b' },
{ "help", no_argument, 0, 'h' },
{ "verbose", required_argument, 0, 'v' },
+ { "execute", required_argument, 0, 'x' },
{ 0, 0, 0, 0 }
};
int option_index;
@@ -1713,6 +1716,13 @@ int main(int argc, char *argv[])
s_info.verbose = !strcmp(optarg, "true");
break;
+ case 'x':
+ if (!optarg || !*optarg) {
+ printf("Invalid argument\n");
+ help();
+ return -EINVAL;
+ }
+ break;
default:
break;
}