1 #include <grass/config.h>
10 #include <grass/raster.h>
11 #include <grass/graphics.h>
24 static void _get_list(
char ***list,
int *count)
35 for (n = 0; *buf; n++) {
37 a = G_malloc(
sizeof(
char *));
39 a = G_realloc(a, (n + 1) *
sizeof(
char *));
56 _send_ident(PAD_CREATE);
71 _send_ident(PAD_CURRENT);
86 _send_ident(PAD_DELETE);
98 _send_ident(PAD_INVENT);
110 _send_ident(PAD_LIST);
111 _get_list(list, count);
124 _send_ident(PAD_SELECT);
139 _send_ident(PAD_APPEND_ITEM);
156 _send_ident(PAD_DELETE_ITEM);
171 _send_ident(PAD_GET_ITEM);
176 _get_list(list, count);
189 _send_ident(PAD_LIST_ITEMS);
192 _get_list(list, count);
205 _send_ident(PAD_SET_ITEM);