GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
gsx.c
Go to the documentation of this file.
1 /*!
2  \file lib/ogsf/gsx.c
3 
4  \brief OGSF library - loading and manipulating surfaces
5 
6  GRASS OpenGL gsurf OGSF Library
7 
8  (C) 1999-2008 by the GRASS Development Team
9 
10  This program is free software under the
11  GNU General Public License (>=v2).
12  Read the file COPYING that comes with GRASS
13  for details.
14 
15  \author Bill Brown USACERL (December 1993)
16  \author Doxygenized by Martin Landa <landa.martin gmail.com> (May 2008)
17  */
18 
19 #include <grass/ogsf.h>
20 
21 void (*Cxl_func) ();
22 
23 static int Cxl = 0;
24 
25 /*!
26  \brief Check for cancel
27 
28  \return code
29  */
30 int GS_check_cancel(void)
31 {
32  Cxl_func();
33 
34  return (Cxl);
35 }
36 
37 /*!
38  \brief Set cancel
39  */
40 void GS_set_cancel(int c)
41 {
42  Cxl = c;
43 
44  return;
45 }
46 
47 /*!
48  \brief Set cxl function
49 
50  \param pointer to function
51  */
52 void GS_set_cxl_func(void (*f) (void))
53 {
54  Cxl_func = f;
55 
56  return;
57 }
int GS_check_cancel(void)
Check for cancel.
Definition: gsx.c:30
void GS_set_cxl_func(void(*f)(void))
Set cxl function.
Definition: gsx.c:52
void GS_set_cancel(int c)
Set cancel.
Definition: gsx.c:40
void(* Cxl_func)()
Definition: gsx.c:21