diff options
author | Sung-jae Park <nicesj.park@samsung.com> | 2013-02-06 14:09:42 +0000 |
---|---|---|
committer | Sung-jae Park <nicesj.park@samsung.com> | 2013-02-06 14:09:42 +0000 |
commit | a22422a5d310d5d56acb8b23e05d82cb1776cb65 (patch) | |
tree | f7dbf7050530a5ffb626a099884098dab58f1db8 /util_liveinfo/src/liveinfo.c | |
parent | 69bbc929ae7a56fbd3e1fd19d2a3b9ccc03e8f76 (diff) | |
download | data-provider-master-a22422a5d310d5d56acb8b23e05d82cb1776cb65.tar.gz data-provider-master-a22422a5d310d5d56acb8b23e05d82cb1776cb65.tar.bz2 data-provider-master-a22422a5d310d5d56acb8b23e05d82cb1776cb65.zip |
Separte gem & pixmap create function.
Script updated.
(for image, group is changed to optoin)
Add the update request interface
Change-Id: I9102fabe40b055df41b170e31dc83a858e10a7b1
Diffstat (limited to 'util_liveinfo/src/liveinfo.c')
-rw-r--r-- | util_liveinfo/src/liveinfo.c | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/util_liveinfo/src/liveinfo.c b/util_liveinfo/src/liveinfo.c index 7506620..e7dbe1a 100644 --- a/util_liveinfo/src/liveinfo.c +++ b/util_liveinfo/src/liveinfo.c @@ -497,7 +497,7 @@ static inline struct node *update_target_dir(const char *cmd) struct node *node; node = (*cmd == '/') ? s_info.rootdir : s_info.curdir; - node = node_find(s_info.targetdir, cmd); + node = node_find(node, cmd); return node; } @@ -677,16 +677,21 @@ static inline void do_command(const char *cmd) if (strlen(cmd) && *cmd != '#') { if (!strncasecmp(cmd, "exit", 4) || !strncasecmp(cmd, "quit", 4)) { ecore_main_loop_quit(); - } else if (!strncasecmp(cmd, "set ", 4) && do_set(cmd) == 0) { - return; - } else if (!strncasecmp(cmd, "get ", 4) && do_get(cmd) == 0) { - return; - } else if (!strncasecmp(cmd, "ls", 2) && do_ls(cmd) == 0) { - return; - } else if (!strncasecmp(cmd, "cd", 2) && do_cd(cmd) == 0) { - return; - } else if (!strncasecmp(cmd, "rm", 2) && do_rm(cmd) == 0) { - return; + } else if (!strncasecmp(cmd, "set ", 4)) { + if (do_set(cmd) == 0) + return; + } else if (!strncasecmp(cmd, "get ", 4)) { + if (do_get(cmd) == 0) + return; + } else if (!strncasecmp(cmd, "ls", 2)) { + if (do_ls(cmd) == 0) + return; + } else if (!strncasecmp(cmd, "cd", 2)) { + if (do_cd(cmd) == 0) + return; + } else if (!strncasecmp(cmd, "rm", 2)) { + if (do_rm(cmd) == 0) + return; } else { help(); } |