+static void
+gui_internal_cmd_write(struct gui_priv * this, char *function, struct attr **in, struct attr ***out, int *valid)
+{
+ char *str=NULL,*str2=NULL;
+ dbg(0,"enter %s %p %p %p\n",function,in,out,valid);
+ if (!in || !in[0])
+ return;
+ dbg(0,"%s\n",attr_to_name(in[0]->type));
+ if (in[0]->type >= attr_type_string_begin && in[0]->type <= attr_type_string_end) {
+ str=in[0]->u.str;
+ }
+ if (in[0]->type >= attr_type_coord_geo_begin && in[0]->type <= attr_type_coord_geo_end) {
+ str=str2=coordinates_geo(in[0]->u.coord_geo, '\n');
+ }
+ if (str) {
+ str=g_strdup_printf("<html>%s</html>\n",str);
+ xml_parse_text(str, this, gui_internal_html_start, gui_internal_html_end, gui_internal_html_text);
+ }
+ g_free(str);
+ g_free(str2);
+}
+