GRASS GIS 7 Programmer's Manual  7.0.2(2015)-r00000
gsx.c
Go to the documentation of this file.
1 
19 #include <grass/ogsf.h>
20 
21 void (*Cxl_func) ();
22 void (*Swap_func) ();
23 
24 static int Cxl = 0;
25 
31 int GS_check_cancel(void)
32 {
33  Cxl_func();
34 
35  return (Cxl);
36 }
37 
41 void GS_set_cancel(int c)
42 {
43  Cxl = c;
44 
45  return;
46 }
47 
53 void GS_set_cxl_func(void (*f) (void))
54 {
55  Cxl_func = f;
56 
57  return;
58 }
59 
65 void GS_set_swap_func(void (*f) (void))
66 {
67  Swap_func = f;
68 
69  return;
70 }
int GS_check_cancel(void)
Check for cancel.
Definition: gsx.c:31
void GS_set_cxl_func(void(*f)(void))
Set cxl function.
Definition: gsx.c:53
void GS_set_swap_func(void(*f)(void))
Set swap function.
Definition: gsx.c:65
void(* Swap_func)()
Definition: gsx.c:22
void GS_set_cancel(int c)
Set cancel.
Definition: gsx.c:41
void(* Cxl_func)()
Definition: gsx.c:21