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);
char * G_strdup(const char *string)
Copies the null-terminated string into a newly allocated string. The string is allocated using G_mall...
int REM_pad_delete_item(const char *name)
int REM_pad_set_item(const char *name, const char *value)
int REM_pad_select(const char *pad)
int REM_pad_get_item(const char *name, char ***list, int *count)
int REM_pad_invent(char *pad)
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
int REM_pad_list_items(char ***list, int *count)
int REM_pad_current(char *name)
int REM_pad_list(char ***list, int *count)
int REM_pad_create(const char *pad)
int REM_pad_append_item(const char *item, const char *value, int replace)