projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f769796
)
added an outline for a binary case - command handler
author
choisjin80
<jinhyung2.choi@samsung.com>
Mon, 15 Apr 2013 12:25:21 +0000
(21:25 +0900)
committer
choisjin80
<jinhyung2.choi@samsung.com>
Mon, 15 Apr 2013 12:25:21 +0000
(21:25 +0900)
tizen/src/ecs.c
patch
|
blob
|
history
diff --git
a/tizen/src/ecs.c
b/tizen/src/ecs.c
index 20627ac0f91a094d87a94bcb5c82bec464a580b9..efad448dee93f44e7f66538d8812018739ea8b15 100644
(file)
--- a/
tizen/src/ecs.c
+++ b/
tizen/src/ecs.c
@@
-682,6
+682,7
@@
static QObject* get_data_object(QObject *input_obj)
static void handle_ecs_command(JSONMessageParser *parser, QList *tokens, void *opaque)
{
const char *type_name;
+ const char *data;
int def_target = 0;
int def_data = 0;
QObject *obj;
@@
-735,6
+736,12
@@
static void handle_ecs_command(JSONMessageParser *parser, QList *tokens, void *o
return;
}
+ if (!strcmp(type_name, "Battery")) {
+ data = qdict_get_str(qobject_to_qdict(obj), COMMANDS_DATA);
+ LOG("print data: %s", data);
+ return;
+ }
+
handle_qmp_command(clii, type_name, get_data_object(obj));
}