GRASS Programmer's Manual  6.4.3(2013)-r
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
com_pad.c
Go to the documentation of this file.
1 #include <string.h>
2 #include <stdlib.h>
3 #include <stdio.h>
4 
5 #include <grass/gis.h>
6 #include <grass/raster.h>
7 #include <grass/graphics.h>
8 #include "transport.h"
9 
10 /* PAD FUNCTIONS
11  The monitor has a very simple database management capability
12  which supports the windowing. There are scratch pads
13  to be written on. Each scratch pad can contain items, and
14  each item can have a list of values. These are NOT to be
15  used by the programmer. They are used indirectly through
16  the displaylib library calls.
17  */
18 
19 int R_pad_create(const char *pad)
20 {
21  return trans->pad_create(pad);
22 }
23 
24 int R_pad_current(char *name)
25 {
26  return trans->pad_current(name);
27 }
28 
29 int R_pad_delete(void)
30 {
31  return trans->pad_delete();
32 }
33 
34 int R_pad_invent(char *pad)
35 {
36  return trans->pad_invent(pad);
37 }
38 
39 int R_pad_list(char ***list, int *count)
40 {
41  return trans->pad_list(list, count);
42 }
43 
44 int R_pad_select(const char *pad)
45 {
46  return trans->pad_select(pad);
47 }
48 
49 int R_pad_append_item(const char *item, const char *value, int replace)
50 {
51  return trans->pad_append_item(item, value, replace);
52 }
53 
54 int R_pad_delete_item(const char *name)
55 {
56  return trans->pad_delete_item(name);
57 }
58 
59 int R_pad_get_item(const char *name, char ***list, int *count)
60 {
61  return trans->pad_get_item(name, list, count);
62 }
63 
64 int R_pad_list_items(char ***list, int *count)
65 {
66  return trans->pad_list_items(list, count);
67 }
68 
69 int R_pad_set_item(const char *name, const char *value)
70 {
71  return trans->pad_set_item(name, value);
72 }