* expr which may be freed when the calling widget is destroyed by a
* subsequent command call. Hence the g_strdup. */
- const char *expr_dup;
+ char *expr_dup;
struct result res;
struct context ctx;
memset(&res, 0, sizeof(res));
#endif
struct command_table {
- char *command;
+ const char *command;
int (*func)(void *data, char *cmd, struct attr **in, struct attr ***out);
};
static void
gui_qml_command(struct gui_priv *this_, char *function, struct attr **in, struct attr ***out, int *valid) {
- struct attr **curr=in;
- struct attr *attr;
this_->guiProxy->processCommand(function);
}
gmap_rect_get_item_byid,
gmap_search_new,
gmap_search_destroy,
- gmap_rect_get_item,
+ NULL,
};
static struct map_priv *
-gmap_new(struct map_methods *meth, struct attr **attrs)
+gmap_new(struct map_methods *meth, struct attr **attrs, struct callback_list *cbl)
{
struct map_priv *m;
struct attr *data;
}
file_wordexp_destroy(we);
return pl;
+#else
+ return 0;
#endif
}
int i,value,min,time;
struct coord lpnt;
struct coord cin;
- struct attr valid,speed_attr,direction_attr,coord_geo,lag,time_attr,static_speed,static_distance,fix_type;
+ struct attr valid,speed_attr,direction_attr,coord_geo,lag,time_attr,static_speed,static_distance;
double speed, direction;
if (v)
tr->vehicle=v;