diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-01-04 09:13:07 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-01-04 09:13:07 +0000 |
commit | 6b52f1fa8a80e1d7a12bcc3f1327ff0f2f5e20d1 (patch) | |
tree | 7951dcdb7513d2c28db5781d7c7034877d6cbb4d /navit/command.c | |
parent | 889f782c445b209d46ef4332f5f667b7c4942f01 (diff) | |
download | navit-svn-6b52f1fa8a80e1d7a12bcc3f1327ff0f2f5e20d1.tar.gz |
Add:gui_internal:More html functionality
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2895 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/command.c')
-rw-r--r-- | navit/command.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/navit/command.c b/navit/command.c index a9e13fd3..4d830820 100644 --- a/navit/command.c +++ b/navit/command.c @@ -396,10 +396,16 @@ command_call_function(struct context *ctx, struct result *res) } else { if (command_object_get_attr(ctx, &res->attr, attr_callback_list, &cbl)) { int valid; + struct attr **out=NULL; dbg(1,"function call %s from %s\n",function, attr_to_name(res->attr.type)); - callback_list_call_attr_4(cbl.u.callback_list, attr_command, function, list, NULL, &valid); - } - res->attr.type=attr_none; + callback_list_call_attr_4(cbl.u.callback_list, attr_command, function, list, &out, &valid); + if (out && out[0]) { + attr_dup_content(out[0], &res->attr); + attr_list_free(out); + } else + res->attr.type=attr_none; + } else + res->attr.type=attr_none; } res->var=NULL; res->varlen=0; |