/*! \file lib/ogsf/gsx.c \brief OGSF library - loading and manipulating surfaces GRASS OpenGL gsurf OGSF Library (C) 1999-2008 by the GRASS Development Team This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details. \author Bill Brown USACERL (December 1993) \author Doxygenized by Martin Landa (May 2008) */ #include void (*Cxl_func) (); static int Cxl = 0; /*! \brief Check for cancel \return code */ int GS_check_cancel(void) { Cxl_func(); return (Cxl); } /*! \brief Set cancel */ void GS_set_cancel(int c) { Cxl = c; return; } /*! \brief Set cxl function \param pointer to function */ void GS_set_cxl_func(void (*f) (void)) { Cxl_func = f; return; }