[GRASS-dev] r.li.*: write cmd history?
Glynn Clements
glynn at gclements.plus.com
Sun Mar 11 15:10:05 EDT 2007
Markus Neteler wrote:
> it would be great to add support for the command line
> history to the r.li.* modules. Essentially these 4 lines
> have to be added:
>
> struct History history;
> ...
>
> G_short_history(out, "raster", &history);
> G_command_history(&history);
> G_write_history(out, &history);
>
>
> I tried to modify
> r.li.daemon/worker.c
> accordingly but it doesn't help. Where should it be added
> instead?
AFAICT, in r.li.daemon/daemon.c; that's the only file which creates a
new map (G_open_cell_new()). worker.c only opens existing maps.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list