r"""Wrapper for gis.h

Generated with:
./run.py --no-embed-preamble /opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.x86_64-apple-darwin24.6.0 --cpp /usr/bin/clang -E  -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk  "-Drestrict=" "-D__attribute__(x)=" "-D_Nonnull="  "-Dint8_t=char" "-DCF_INLINE=" "-D_Null_unspecified="  "-D__DARWIN_OS_INLINE="      -I/opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.x86_64-apple-darwin24.6.0/include -I/opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.x86_64-apple-darwin24.6.0/include -D__GLIBC_HAVE_LONG_LONG -lgrass_gis.8.5 /opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.x86_64-apple-darwin24.6.0/include/grass/gis.h /opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.x86_64-apple-darwin24.6.0/include/grass/defs/gis.h /opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.x86_64-apple-darwin24.6.0/include/grass/colors.h /opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.x86_64-apple-darwin24.6.0/include/grass/defs/colors.h -o OBJ.x86_64-apple-darwin24.6.0/gis.py

Do not modify this file.
"""

__docformat__ = "restructuredtext"

# Begin preamble for Python

from .ctypes_preamble import *
from .ctypes_preamble import _variadic_function

# End preamble

_libs = {}
_libdirs = []

# Begin loader

from .ctypes_loader import *

# End loader

add_library_search_dirs([])

# Begin libraries
_libs["grass_gis.8.5"] = load_library("grass_gis.8.5")

# 1 libraries
# End libraries

# No modules

__uint16_t = c_ushort# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/i386/_types.h: 58

__uint32_t = c_uint# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/i386/_types.h: 60

__uint64_t = c_ulonglong# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/i386/_types.h: 62

__darwin_time_t = c_long# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/i386/_types.h: 143

__darwin_blkcnt_t = c_int64# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types.h: 67

__darwin_blksize_t = c_int32# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types.h: 68

__darwin_dev_t = c_int32# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types.h: 69

__darwin_gid_t = __uint32_t# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types.h: 72

__darwin_ino64_t = __uint64_t# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types.h: 74

__darwin_mode_t = __uint16_t# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types.h: 82

__darwin_off_t = c_int64# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types.h: 83

__darwin_uid_t = __uint32_t# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types.h: 87

fpos_t = __darwin_off_t# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/_stdio.h: 86

# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/_stdio.h: 97
class struct___sbuf(Structure):
    pass

struct___sbuf.__slots__ = [
    '_base',
    '_size',
]
struct___sbuf._fields_ = [
    ('_base', POINTER(c_ubyte)),
    ('_size', c_int),
]

# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/_stdio.h: 103
class struct___sFILEX(Structure):
    pass

# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/_stdio.h: 162
class struct___sFILE(Structure):
    pass

struct___sFILE.__slots__ = [
    '_p',
    '_r',
    '_w',
    '_flags',
    '_file',
    '_bf',
    '_lbfsize',
    '_cookie',
    '_close',
    '_read',
    '_seek',
    '_write',
    '_ub',
    '_extra',
    '_ur',
    '_ubuf',
    '_nbuf',
    '_lb',
    '_blksize',
    '_offset',
]
struct___sFILE._fields_ = [
    ('_p', POINTER(c_ubyte)),
    ('_r', c_int),
    ('_w', c_int),
    ('_flags', c_short),
    ('_file', c_short),
    ('_bf', struct___sbuf),
    ('_lbfsize', c_int),
    ('_cookie', POINTER(None)),
    ('_close', CFUNCTYPE(UNCHECKED(c_int), POINTER(None))),
    ('_read', CFUNCTYPE(UNCHECKED(c_int), POINTER(None), String, c_int)),
    ('_seek', CFUNCTYPE(UNCHECKED(fpos_t), POINTER(None), fpos_t, c_int)),
    ('_write', CFUNCTYPE(UNCHECKED(c_int), POINTER(None), String, c_int)),
    ('_ub', struct___sbuf),
    ('_extra', POINTER(struct___sFILEX)),
    ('_ur', c_int),
    ('_ubuf', c_ubyte * int(3)),
    ('_nbuf', c_ubyte * int(1)),
    ('_lb', struct___sbuf),
    ('_blksize', c_int),
    ('_offset', fpos_t),
]

FILE = struct___sFILE# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/_stdio.h: 162

off_t = __darwin_off_t# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types/_off_t.h: 31

# include/grass/datetime.h: 26
class struct_DateTime(Structure):
    pass

struct_DateTime.__slots__ = [
    'mode',
    'from',
    'to',
    'fracsec',
    'year',
    'month',
    'day',
    'hour',
    'minute',
    'second',
    'positive',
    'tz',
]
struct_DateTime._fields_ = [
    ('mode', c_int),
    ('from', c_int),
    ('to', c_int),
    ('fracsec', c_int),
    ('year', c_int),
    ('month', c_int),
    ('day', c_int),
    ('hour', c_int),
    ('minute', c_int),
    ('second', c_double),
    ('positive', c_int),
    ('tz', c_int),
]

DateTime = struct_DateTime# include/grass/datetime.h: 26

enum_anon_2 = c_int# include/grass/gis.h: 365

G_OPT_UNDEFINED = 0# include/grass/gis.h: 365

G_OPT_DB_SQL = (G_OPT_UNDEFINED + 1)# include/grass/gis.h: 365

G_OPT_DB_WHERE = (G_OPT_DB_SQL + 1)# include/grass/gis.h: 365

G_OPT_DB_TABLE = (G_OPT_DB_WHERE + 1)# include/grass/gis.h: 365

G_OPT_DB_DRIVER = (G_OPT_DB_TABLE + 1)# include/grass/gis.h: 365

G_OPT_DB_DATABASE = (G_OPT_DB_DRIVER + 1)# include/grass/gis.h: 365

G_OPT_DB_SCHEMA = (G_OPT_DB_DATABASE + 1)# include/grass/gis.h: 365

G_OPT_DB_COLUMN = (G_OPT_DB_SCHEMA + 1)# include/grass/gis.h: 365

G_OPT_DB_COLUMNS = (G_OPT_DB_COLUMN + 1)# include/grass/gis.h: 365

G_OPT_DB_KEYCOLUMN = (G_OPT_DB_COLUMNS + 1)# include/grass/gis.h: 365

G_OPT_I_GROUP = (G_OPT_DB_KEYCOLUMN + 1)# include/grass/gis.h: 365

G_OPT_I_SUBGROUP = (G_OPT_I_GROUP + 1)# include/grass/gis.h: 365

G_OPT_MEMORYMB = (G_OPT_I_SUBGROUP + 1)# include/grass/gis.h: 365

G_OPT_R_INPUT = (G_OPT_MEMORYMB + 1)# include/grass/gis.h: 365

G_OPT_R_INPUTS = (G_OPT_R_INPUT + 1)# include/grass/gis.h: 365

G_OPT_R_OUTPUT = (G_OPT_R_INPUTS + 1)# include/grass/gis.h: 365

G_OPT_R_OUTPUTS = (G_OPT_R_OUTPUT + 1)# include/grass/gis.h: 365

G_OPT_R_MAP = (G_OPT_R_OUTPUTS + 1)# include/grass/gis.h: 365

G_OPT_R_MAPS = (G_OPT_R_MAP + 1)# include/grass/gis.h: 365

G_OPT_R_BASE = (G_OPT_R_MAPS + 1)# include/grass/gis.h: 365

G_OPT_R_COVER = (G_OPT_R_BASE + 1)# include/grass/gis.h: 365

G_OPT_R_ELEV = (G_OPT_R_COVER + 1)# include/grass/gis.h: 365

G_OPT_R_ELEVS = (G_OPT_R_ELEV + 1)# include/grass/gis.h: 365

G_OPT_R_TYPE = (G_OPT_R_ELEVS + 1)# include/grass/gis.h: 365

G_OPT_R_INTERP_TYPE = (G_OPT_R_TYPE + 1)# include/grass/gis.h: 365

G_OPT_R_BASENAME_INPUT = (G_OPT_R_INTERP_TYPE + 1)# include/grass/gis.h: 365

G_OPT_R_BASENAME_OUTPUT = (G_OPT_R_BASENAME_INPUT + 1)# include/grass/gis.h: 365

G_OPT_R3_INPUT = (G_OPT_R_BASENAME_OUTPUT + 1)# include/grass/gis.h: 365

G_OPT_R3_INPUTS = (G_OPT_R3_INPUT + 1)# include/grass/gis.h: 365

G_OPT_R3_OUTPUT = (G_OPT_R3_INPUTS + 1)# include/grass/gis.h: 365

G_OPT_R3_MAP = (G_OPT_R3_OUTPUT + 1)# include/grass/gis.h: 365

G_OPT_R3_MAPS = (G_OPT_R3_MAP + 1)# include/grass/gis.h: 365

G_OPT_R3_TYPE = (G_OPT_R3_MAPS + 1)# include/grass/gis.h: 365

G_OPT_R3_PRECISION = (G_OPT_R3_TYPE + 1)# include/grass/gis.h: 365

G_OPT_R3_TILE_DIMENSION = (G_OPT_R3_PRECISION + 1)# include/grass/gis.h: 365

G_OPT_R3_COMPRESSION = (G_OPT_R3_TILE_DIMENSION + 1)# include/grass/gis.h: 365

G_OPT_V_INPUT = (G_OPT_R3_COMPRESSION + 1)# include/grass/gis.h: 365

G_OPT_V_INPUTS = (G_OPT_V_INPUT + 1)# include/grass/gis.h: 365

G_OPT_V_OUTPUT = (G_OPT_V_INPUTS + 1)# include/grass/gis.h: 365

G_OPT_V_MAP = (G_OPT_V_OUTPUT + 1)# include/grass/gis.h: 365

G_OPT_V_MAPS = (G_OPT_V_MAP + 1)# include/grass/gis.h: 365

G_OPT_V_TYPE = (G_OPT_V_MAPS + 1)# include/grass/gis.h: 365

G_OPT_V3_TYPE = (G_OPT_V_TYPE + 1)# include/grass/gis.h: 365

G_OPT_V_FIELD = (G_OPT_V3_TYPE + 1)# include/grass/gis.h: 365

G_OPT_V_FIELD_ALL = (G_OPT_V_FIELD + 1)# include/grass/gis.h: 365

G_OPT_V_CAT = (G_OPT_V_FIELD_ALL + 1)# include/grass/gis.h: 365

G_OPT_V_CATS = (G_OPT_V_CAT + 1)# include/grass/gis.h: 365

G_OPT_V_ID = (G_OPT_V_CATS + 1)# include/grass/gis.h: 365

G_OPT_V_IDS = (G_OPT_V_ID + 1)# include/grass/gis.h: 365

G_OPT_F_INPUT = (G_OPT_V_IDS + 1)# include/grass/gis.h: 365

G_OPT_F_BIN_INPUT = (G_OPT_F_INPUT + 1)# include/grass/gis.h: 365

G_OPT_F_OUTPUT = (G_OPT_F_BIN_INPUT + 1)# include/grass/gis.h: 365

G_OPT_F_SEP = (G_OPT_F_OUTPUT + 1)# include/grass/gis.h: 365

G_OPT_F_FORMAT = (G_OPT_F_SEP + 1)# include/grass/gis.h: 365

G_OPT_C = (G_OPT_F_FORMAT + 1)# include/grass/gis.h: 365

G_OPT_CN = (G_OPT_C + 1)# include/grass/gis.h: 365

G_OPT_C_FORMAT = (G_OPT_CN + 1)# include/grass/gis.h: 365

G_OPT_M_UNITS = (G_OPT_C_FORMAT + 1)# include/grass/gis.h: 365

G_OPT_M_DATATYPE = (G_OPT_M_UNITS + 1)# include/grass/gis.h: 365

G_OPT_M_MAPSET = (G_OPT_M_DATATYPE + 1)# include/grass/gis.h: 365

G_OPT_M_LOCATION = (G_OPT_M_MAPSET + 1)# include/grass/gis.h: 365

G_OPT_M_DBASE = (G_OPT_M_LOCATION + 1)# include/grass/gis.h: 365

G_OPT_M_COORDS = (G_OPT_M_DBASE + 1)# include/grass/gis.h: 365

G_OPT_M_COLR = (G_OPT_M_COORDS + 1)# include/grass/gis.h: 365

G_OPT_M_DIR = (G_OPT_M_COLR + 1)# include/grass/gis.h: 365

G_OPT_M_REGION = (G_OPT_M_DIR + 1)# include/grass/gis.h: 365

G_OPT_M_NULL_VALUE = (G_OPT_M_REGION + 1)# include/grass/gis.h: 365

G_OPT_M_NPROCS = (G_OPT_M_NULL_VALUE + 1)# include/grass/gis.h: 365

G_OPT_M_SEED = (G_OPT_M_NPROCS + 1)# include/grass/gis.h: 365

G_OPT_STDS_INPUT = (G_OPT_M_SEED + 1)# include/grass/gis.h: 365

G_OPT_STDS_INPUTS = (G_OPT_STDS_INPUT + 1)# include/grass/gis.h: 365

G_OPT_STDS_OUTPUT = (G_OPT_STDS_INPUTS + 1)# include/grass/gis.h: 365

G_OPT_STRDS_INPUT = (G_OPT_STDS_OUTPUT + 1)# include/grass/gis.h: 365

G_OPT_STRDS_INPUTS = (G_OPT_STRDS_INPUT + 1)# include/grass/gis.h: 365

G_OPT_STRDS_OUTPUT = (G_OPT_STRDS_INPUTS + 1)# include/grass/gis.h: 365

G_OPT_STRDS_OUTPUTS = (G_OPT_STRDS_OUTPUT + 1)# include/grass/gis.h: 365

G_OPT_STR3DS_INPUT = (G_OPT_STRDS_OUTPUTS + 1)# include/grass/gis.h: 365

G_OPT_STR3DS_INPUTS = (G_OPT_STR3DS_INPUT + 1)# include/grass/gis.h: 365

G_OPT_STR3DS_OUTPUT = (G_OPT_STR3DS_INPUTS + 1)# include/grass/gis.h: 365

G_OPT_STVDS_INPUT = (G_OPT_STR3DS_OUTPUT + 1)# include/grass/gis.h: 365

G_OPT_STVDS_INPUTS = (G_OPT_STVDS_INPUT + 1)# include/grass/gis.h: 365

G_OPT_STVDS_OUTPUT = (G_OPT_STVDS_INPUTS + 1)# include/grass/gis.h: 365

G_OPT_MAP_INPUT = (G_OPT_STVDS_OUTPUT + 1)# include/grass/gis.h: 365

G_OPT_MAP_INPUTS = (G_OPT_MAP_INPUT + 1)# include/grass/gis.h: 365

G_OPT_STDS_TYPE = (G_OPT_MAP_INPUTS + 1)# include/grass/gis.h: 365

G_OPT_MAP_TYPE = (G_OPT_STDS_TYPE + 1)# include/grass/gis.h: 365

G_OPT_T_SUFFIX = (G_OPT_MAP_TYPE + 1)# include/grass/gis.h: 365

G_OPT_T_TYPE = (G_OPT_T_SUFFIX + 1)# include/grass/gis.h: 365

G_OPT_T_WHERE = (G_OPT_T_TYPE + 1)# include/grass/gis.h: 365

G_OPT_T_SAMPLE = (G_OPT_T_WHERE + 1)# include/grass/gis.h: 365

STD_OPT = enum_anon_2# include/grass/gis.h: 365

enum_anon_3 = c_int# include/grass/gis.h: 380

G_FLG_UNDEFINED = 0# include/grass/gis.h: 380

G_FLG_V_TABLE = (G_FLG_UNDEFINED + 1)# include/grass/gis.h: 380

G_FLG_V_TOPO = (G_FLG_V_TABLE + 1)# include/grass/gis.h: 380

STD_FLG = enum_anon_3# include/grass/gis.h: 380

enum_rule_type = c_int# include/grass/gis.h: 383

RULE_EXCLUSIVE = 0# include/grass/gis.h: 383

RULE_REQUIRED = (RULE_EXCLUSIVE + 1)# include/grass/gis.h: 383

RULE_REQUIRES = (RULE_REQUIRED + 1)# include/grass/gis.h: 383

RULE_REQUIRES_ALL = (RULE_REQUIRES + 1)# include/grass/gis.h: 383

RULE_EXCLUDES = (RULE_REQUIRES_ALL + 1)# include/grass/gis.h: 383

RULE_COLLECTIVE = (RULE_EXCLUDES + 1)# include/grass/gis.h: 383

enum_anon_4 = c_int# include/grass/gis.h: 431

G_ELEMENT_RASTER = 1# include/grass/gis.h: 431

G_ELEMENT_RASTER3D = 2# include/grass/gis.h: 431

G_ELEMENT_VECTOR = 3# include/grass/gis.h: 431

G_ELEMENT_ASCIIVECTOR = 4# include/grass/gis.h: 431

G_ELEMENT_LABEL = 5# include/grass/gis.h: 431

G_ELEMENT_REGION = 6# include/grass/gis.h: 431

G_ELEMENT_GROUP = 7# include/grass/gis.h: 431

# include/grass/gis.h: 446
class struct_Cell_head(Structure):
    pass

struct_Cell_head.__slots__ = [
    'format',
    'compressed',
    'rows',
    'rows3',
    'cols',
    'cols3',
    'depths',
    'proj',
    'zone',
    'ew_res',
    'ew_res3',
    'ns_res',
    'ns_res3',
    'tb_res',
    'north',
    'south',
    'east',
    'west',
    'top',
    'bottom',
]
struct_Cell_head._fields_ = [
    ('format', c_int),
    ('compressed', c_int),
    ('rows', c_int),
    ('rows3', c_int),
    ('cols', c_int),
    ('cols3', c_int),
    ('depths', c_int),
    ('proj', c_int),
    ('zone', c_int),
    ('ew_res', c_double),
    ('ew_res3', c_double),
    ('ns_res', c_double),
    ('ns_res3', c_double),
    ('tb_res', c_double),
    ('north', c_double),
    ('south', c_double),
    ('east', c_double),
    ('west', c_double),
    ('top', c_double),
    ('bottom', c_double),
]

# include/grass/gis.h: 508
class struct_G_3dview(Structure):
    pass

struct_G_3dview.__slots__ = [
    'pgm_id',
    'from_to',
    'fov',
    'twist',
    'exag',
    'mesh_freq',
    'poly_freq',
    'display_type',
    'lightson',
    'dozero',
    'colorgrid',
    'shading',
    'fringe',
    'surfonly',
    'doavg',
    'grid_col',
    'bg_col',
    'other_col',
    'lightpos',
    'lightcol',
    'ambient',
    'shine',
    'vwin',
]
struct_G_3dview._fields_ = [
    ('pgm_id', c_char * int(40)),
    ('from_to', (c_float * int(3)) * int(2)),
    ('fov', c_float),
    ('twist', c_float),
    ('exag', c_float),
    ('mesh_freq', c_int),
    ('poly_freq', c_int),
    ('display_type', c_int),
    ('lightson', c_int),
    ('dozero', c_int),
    ('colorgrid', c_int),
    ('shading', c_int),
    ('fringe', c_int),
    ('surfonly', c_int),
    ('doavg', c_int),
    ('grid_col', c_char * int(40)),
    ('bg_col', c_char * int(40)),
    ('other_col', c_char * int(40)),
    ('lightpos', c_float * int(4)),
    ('lightcol', c_float * int(3)),
    ('ambient', c_float),
    ('shine', c_float),
    ('vwin', struct_Cell_head),
]

# include/grass/gis.h: 534
class struct_Key_Value(Structure):
    pass

struct_Key_Value.__slots__ = [
    'nitems',
    'nalloc',
    'key',
    'value',
]
struct_Key_Value._fields_ = [
    ('nitems', c_int),
    ('nalloc', c_int),
    ('key', POINTER(POINTER(c_char))),
    ('value', POINTER(POINTER(c_char))),
]

# include/grass/gis.h: 563
class struct_Option(Structure):
    pass

struct_Option.__slots__ = [
    'key',
    'type',
    'required',
    'multiple',
    'options',
    'opts',
    'key_desc',
    'label',
    'description',
    'descriptions',
    'descs',
    'answer',
    'def',
    'answers',
    'next_opt',
    'gisprompt',
    'guisection',
    'guidependency',
    'checker',
    'count',
]
struct_Option._fields_ = [
    ('key', String),
    ('type', c_int),
    ('required', c_int),
    ('multiple', c_int),
    ('options', String),
    ('opts', POINTER(POINTER(c_char))),
    ('key_desc', String),
    ('label', String),
    ('description', String),
    ('descriptions', String),
    ('descs', POINTER(POINTER(c_char))),
    ('answer', String),
    ('def', String),
    ('answers', POINTER(POINTER(c_char))),
    ('next_opt', POINTER(struct_Option)),
    ('gisprompt', String),
    ('guisection', String),
    ('guidependency', String),
    ('checker', CFUNCTYPE(UNCHECKED(c_int), String)),
    ('count', c_int),
]

# include/grass/gis.h: 594
class struct_Flag(Structure):
    pass

struct_Flag.__slots__ = [
    'key',
    'answer',
    'suppress_required',
    'suppress_overwrite',
    'label',
    'description',
    'guisection',
    'next_flag',
]
struct_Flag._fields_ = [
    ('key', c_char),
    ('answer', c_char),
    ('suppress_required', c_char),
    ('suppress_overwrite', c_char),
    ('label', String),
    ('description', String),
    ('guisection', String),
    ('next_flag', POINTER(struct_Flag)),
]

# include/grass/gis.h: 611
class struct_GModule(Structure):
    pass

struct_GModule.__slots__ = [
    'label',
    'description',
    'keywords',
    'overwrite',
    'verbose',
]
struct_GModule._fields_ = [
    ('label', String),
    ('description', String),
    ('keywords', POINTER(POINTER(c_char))),
    ('overwrite', c_int),
    ('verbose', c_int),
]

# include/grass/gis.h: 620
class struct_TimeStamp(Structure):
    pass

struct_TimeStamp.__slots__ = [
    'dt',
    'count',
]
struct_TimeStamp._fields_ = [
    ('dt', DateTime * int(2)),
    ('count', c_int),
]

# include/grass/gis.h: 625
class struct_Counter(Structure):
    pass

struct_Counter.__slots__ = [
    'value',
]
struct_Counter._fields_ = [
    ('value', c_int),
]

# include/grass/gis.h: 629
class struct_Popen(Structure):
    pass

struct_Popen.__slots__ = [
    'fp',
    'pid',
]
struct_Popen._fields_ = [
    ('fp', POINTER(FILE)),
    ('pid', c_int),
]

CELL = c_int# include/grass/gis.h: 634

DCELL = c_double# include/grass/gis.h: 635

FCELL = c_float# include/grass/gis.h: 636

dev_t = __darwin_dev_t# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types/_dev_t.h: 31

blkcnt_t = __darwin_blkcnt_t# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types/_blkcnt_t.h: 31

blksize_t = __darwin_blksize_t# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types/_blksize_t.h: 31

gid_t = __darwin_gid_t# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types/_gid_t.h: 31

mode_t = __darwin_mode_t# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types/_mode_t.h: 31

nlink_t = __uint16_t# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types/_nlink_t.h: 31

uid_t = __darwin_uid_t# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types/_uid_t.h: 31

grass_int64 = c_int64# include/grass/gis.h: 641

LCELL = grass_int64# include/grass/gis.h: 653

# include/grass/gis.h: 655
class struct__Color_Value_(Structure):
    pass

struct__Color_Value_.__slots__ = [
    'value',
    'red',
    'grn',
    'blu',
]
struct__Color_Value_._fields_ = [
    ('value', DCELL),
    ('red', c_ubyte),
    ('grn', c_ubyte),
    ('blu', c_ubyte),
]

# include/grass/gis.h: 662
class struct__Color_Rule_(Structure):
    pass

struct__Color_Rule_.__slots__ = [
    'low',
    'high',
    'next',
    'prev',
]
struct__Color_Rule_._fields_ = [
    ('low', struct__Color_Value_),
    ('high', struct__Color_Value_),
    ('next', POINTER(struct__Color_Rule_)),
    ('prev', POINTER(struct__Color_Rule_)),
]

# include/grass/gis.h: 672
class struct_anon_5(Structure):
    pass

struct_anon_5.__slots__ = [
    'red',
    'grn',
    'blu',
    'set',
    'nalloc',
    'active',
]
struct_anon_5._fields_ = [
    ('red', POINTER(c_ubyte)),
    ('grn', POINTER(c_ubyte)),
    ('blu', POINTER(c_ubyte)),
    ('set', POINTER(c_ubyte)),
    ('nalloc', c_int),
    ('active', c_int),
]

# include/grass/gis.h: 681
class struct_anon_6(Structure):
    pass

struct_anon_6.__slots__ = [
    'vals',
    'rules',
    'nalloc',
    'active',
]
struct_anon_6._fields_ = [
    ('vals', POINTER(DCELL)),
    ('rules', POINTER(POINTER(struct__Color_Rule_))),
    ('nalloc', c_int),
    ('active', c_int),
]

# include/grass/gis.h: 668
class struct__Color_Info_(Structure):
    pass

struct__Color_Info_.__slots__ = [
    'rules',
    'n_rules',
    'lookup',
    'fp_lookup',
    'min',
    'max',
]
struct__Color_Info_._fields_ = [
    ('rules', POINTER(struct__Color_Rule_)),
    ('n_rules', c_int),
    ('lookup', struct_anon_5),
    ('fp_lookup', struct_anon_6),
    ('min', DCELL),
    ('max', DCELL),
]

# include/grass/gis.h: 692
class struct_Colors(Structure):
    pass

struct_Colors.__slots__ = [
    'version',
    'shift',
    'invert',
    'is_float',
    'null_set',
    'null_red',
    'null_grn',
    'null_blu',
    'undef_set',
    'undef_red',
    'undef_grn',
    'undef_blu',
    'fixed',
    'modular',
    'cmin',
    'cmax',
    'organizing',
]
struct_Colors._fields_ = [
    ('version', c_int),
    ('shift', DCELL),
    ('invert', c_int),
    ('is_float', c_int),
    ('null_set', c_int),
    ('null_red', c_ubyte),
    ('null_grn', c_ubyte),
    ('null_blu', c_ubyte),
    ('undef_set', c_int),
    ('undef_red', c_ubyte),
    ('undef_grn', c_ubyte),
    ('undef_blu', c_ubyte),
    ('fixed', struct__Color_Info_),
    ('modular', struct__Color_Info_),
    ('cmin', DCELL),
    ('cmax', DCELL),
    ('organizing', c_int),
]

# include/grass/gis.h: 715
class struct_ilist(Structure):
    pass

struct_ilist.__slots__ = [
    'value',
    'n_values',
    'alloc_values',
]
struct_ilist._fields_ = [
    ('value', POINTER(c_int)),
    ('n_values', c_int),
    ('alloc_values', c_int),
]

# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/_types/_timespec.h: 33
class struct_timespec(Structure):
    pass

struct_timespec.__slots__ = [
    'tv_sec',
    'tv_nsec',
]
struct_timespec._fields_ = [
    ('tv_sec', __darwin_time_t),
    ('tv_nsec', c_long),
]

# /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/stat.h: 182
class struct_stat(Structure):
    pass

struct_stat.__slots__ = [
    'st_dev',
    'st_mode',
    'st_nlink',
    'st_ino',
    'st_uid',
    'st_gid',
    'st_rdev',
    'st_atimespec',
    'st_mtimespec',
    'st_ctimespec',
    'st_birthtimespec',
    'st_size',
    'st_blocks',
    'st_blksize',
    'st_flags',
    'st_gen',
    'st_lspare',
    'st_qspare',
]
struct_stat._fields_ = [
    ('st_dev', dev_t),
    ('st_mode', mode_t),
    ('st_nlink', nlink_t),
    ('st_ino', __darwin_ino64_t),
    ('st_uid', uid_t),
    ('st_gid', gid_t),
    ('st_rdev', dev_t),
    ('st_atimespec', struct_timespec),
    ('st_mtimespec', struct_timespec),
    ('st_ctimespec', struct_timespec),
    ('st_birthtimespec', struct_timespec),
    ('st_size', off_t),
    ('st_blocks', blkcnt_t),
    ('st_blksize', blksize_t),
    ('st_flags', __uint32_t),
    ('st_gen', __uint32_t),
    ('st_lspare', c_int32),
    ('st_qspare', c_int64 * int(2)),
]

# include/grass/defs/gis.h: 76
if _libs["grass_gis.8.5"].has("G_adjust_Cell_head", "cdecl"):
    G_adjust_Cell_head = _libs["grass_gis.8.5"].get("G_adjust_Cell_head", "cdecl")
    G_adjust_Cell_head.argtypes = [POINTER(struct_Cell_head), c_int, c_int]
    G_adjust_Cell_head.restype = None

# include/grass/defs/gis.h: 77
if _libs["grass_gis.8.5"].has("G_adjust_Cell_head3", "cdecl"):
    G_adjust_Cell_head3 = _libs["grass_gis.8.5"].get("G_adjust_Cell_head3", "cdecl")
    G_adjust_Cell_head3.argtypes = [POINTER(struct_Cell_head), c_int, c_int, c_int]
    G_adjust_Cell_head3.restype = None

# include/grass/defs/gis.h: 78
if _libs["grass_gis.8.5"].has("G_adjust_window_ll", "cdecl"):
    G_adjust_window_ll = _libs["grass_gis.8.5"].get("G_adjust_window_ll", "cdecl")
    G_adjust_window_ll.argtypes = [POINTER(struct_Cell_head)]
    G_adjust_window_ll.restype = c_int

# include/grass/defs/gis.h: 84
if _libs["grass_gis.8.5"].has("G__malloc", "cdecl"):
    G__malloc = _libs["grass_gis.8.5"].get("G__malloc", "cdecl")
    G__malloc.argtypes = [String, c_int, c_size_t]
    G__malloc.restype = POINTER(c_ubyte)
    G__malloc.errcheck = lambda v,*a : cast(v, c_void_p)

# include/grass/defs/gis.h: 85
if _libs["grass_gis.8.5"].has("G__calloc", "cdecl"):
    G__calloc = _libs["grass_gis.8.5"].get("G__calloc", "cdecl")
    G__calloc.argtypes = [String, c_int, c_size_t, c_size_t]
    G__calloc.restype = POINTER(c_ubyte)
    G__calloc.errcheck = lambda v,*a : cast(v, c_void_p)

# include/grass/defs/gis.h: 86
if _libs["grass_gis.8.5"].has("G__realloc", "cdecl"):
    G__realloc = _libs["grass_gis.8.5"].get("G__realloc", "cdecl")
    G__realloc.argtypes = [String, c_int, POINTER(None), c_size_t]
    G__realloc.restype = POINTER(c_ubyte)
    G__realloc.errcheck = lambda v,*a : cast(v, c_void_p)

# include/grass/defs/gis.h: 87
if _libs["grass_gis.8.5"].has("G_free", "cdecl"):
    G_free = _libs["grass_gis.8.5"].get("G_free", "cdecl")
    G_free.argtypes = [POINTER(None)]
    G_free.restype = None

# include/grass/defs/gis.h: 104
if _libs["grass_gis.8.5"].has("G_begin_cell_area_calculations", "cdecl"):
    G_begin_cell_area_calculations = _libs["grass_gis.8.5"].get("G_begin_cell_area_calculations", "cdecl")
    G_begin_cell_area_calculations.argtypes = []
    G_begin_cell_area_calculations.restype = c_int

# include/grass/defs/gis.h: 105
if _libs["grass_gis.8.5"].has("G_area_of_cell_at_row", "cdecl"):
    G_area_of_cell_at_row = _libs["grass_gis.8.5"].get("G_area_of_cell_at_row", "cdecl")
    G_area_of_cell_at_row.argtypes = [c_int]
    G_area_of_cell_at_row.restype = c_double

# include/grass/defs/gis.h: 106
if _libs["grass_gis.8.5"].has("G_begin_polygon_area_calculations", "cdecl"):
    G_begin_polygon_area_calculations = _libs["grass_gis.8.5"].get("G_begin_polygon_area_calculations", "cdecl")
    G_begin_polygon_area_calculations.argtypes = []
    G_begin_polygon_area_calculations.restype = c_int

# include/grass/defs/gis.h: 107
if _libs["grass_gis.8.5"].has("G_area_of_polygon", "cdecl"):
    G_area_of_polygon = _libs["grass_gis.8.5"].get("G_area_of_polygon", "cdecl")
    G_area_of_polygon.argtypes = [POINTER(c_double), POINTER(c_double), c_int]
    G_area_of_polygon.restype = c_double

# include/grass/defs/gis.h: 110
if _libs["grass_gis.8.5"].has("G_begin_zone_area_on_ellipsoid", "cdecl"):
    G_begin_zone_area_on_ellipsoid = _libs["grass_gis.8.5"].get("G_begin_zone_area_on_ellipsoid", "cdecl")
    G_begin_zone_area_on_ellipsoid.argtypes = [c_double, c_double, c_double]
    G_begin_zone_area_on_ellipsoid.restype = None

# include/grass/defs/gis.h: 111
if _libs["grass_gis.8.5"].has("G_darea0_on_ellipsoid", "cdecl"):
    G_darea0_on_ellipsoid = _libs["grass_gis.8.5"].get("G_darea0_on_ellipsoid", "cdecl")
    G_darea0_on_ellipsoid.argtypes = [c_double]
    G_darea0_on_ellipsoid.restype = c_double

# include/grass/defs/gis.h: 112
if _libs["grass_gis.8.5"].has("G_area_for_zone_on_ellipsoid", "cdecl"):
    G_area_for_zone_on_ellipsoid = _libs["grass_gis.8.5"].get("G_area_for_zone_on_ellipsoid", "cdecl")
    G_area_for_zone_on_ellipsoid.argtypes = [c_double, c_double]
    G_area_for_zone_on_ellipsoid.restype = c_double

# include/grass/defs/gis.h: 115
if _libs["grass_gis.8.5"].has("G_begin_ellipsoid_polygon_area", "cdecl"):
    G_begin_ellipsoid_polygon_area = _libs["grass_gis.8.5"].get("G_begin_ellipsoid_polygon_area", "cdecl")
    G_begin_ellipsoid_polygon_area.argtypes = [c_double, c_double]
    G_begin_ellipsoid_polygon_area.restype = None

# include/grass/defs/gis.h: 116
if _libs["grass_gis.8.5"].has("G_ellipsoid_polygon_area", "cdecl"):
    G_ellipsoid_polygon_area = _libs["grass_gis.8.5"].get("G_ellipsoid_polygon_area", "cdecl")
    G_ellipsoid_polygon_area.argtypes = [POINTER(c_double), POINTER(c_double), c_int]
    G_ellipsoid_polygon_area.restype = c_double

# include/grass/defs/gis.h: 119
if _libs["grass_gis.8.5"].has("G_planimetric_polygon_area", "cdecl"):
    G_planimetric_polygon_area = _libs["grass_gis.8.5"].get("G_planimetric_polygon_area", "cdecl")
    G_planimetric_polygon_area.argtypes = [POINTER(c_double), POINTER(c_double), c_int]
    G_planimetric_polygon_area.restype = c_double

# include/grass/defs/gis.h: 122
if _libs["grass_gis.8.5"].has("G_begin_zone_area_on_sphere", "cdecl"):
    G_begin_zone_area_on_sphere = _libs["grass_gis.8.5"].get("G_begin_zone_area_on_sphere", "cdecl")
    G_begin_zone_area_on_sphere.argtypes = [c_double, c_double]
    G_begin_zone_area_on_sphere.restype = None

# include/grass/defs/gis.h: 123
if _libs["grass_gis.8.5"].has("G_darea0_on_sphere", "cdecl"):
    G_darea0_on_sphere = _libs["grass_gis.8.5"].get("G_darea0_on_sphere", "cdecl")
    G_darea0_on_sphere.argtypes = [c_double]
    G_darea0_on_sphere.restype = c_double

# include/grass/defs/gis.h: 124
if _libs["grass_gis.8.5"].has("G_area_for_zone_on_sphere", "cdecl"):
    G_area_for_zone_on_sphere = _libs["grass_gis.8.5"].get("G_area_for_zone_on_sphere", "cdecl")
    G_area_for_zone_on_sphere.argtypes = [c_double, c_double]
    G_area_for_zone_on_sphere.restype = c_double

# include/grass/defs/gis.h: 127
if _libs["grass_gis.8.5"].has("G_ascii_check", "cdecl"):
    G_ascii_check = _libs["grass_gis.8.5"].get("G_ascii_check", "cdecl")
    G_ascii_check.argtypes = [String]
    G_ascii_check.restype = None

# include/grass/defs/gis.h: 138
if _libs["grass_gis.8.5"].has("G_vasprintf", "cdecl"):
    G_vasprintf = _libs["grass_gis.8.5"].get("G_vasprintf", "cdecl")
    G_vasprintf.argtypes = [POINTER(POINTER(c_char)), String, c_void_p]
    G_vasprintf.restype = c_int

# include/grass/defs/gis.h: 139
if _libs["grass_gis.8.5"].has("G_asprintf", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_asprintf", "cdecl")
    _restype = c_int
    _errcheck = None
    _argtypes = [POINTER(POINTER(c_char)), String]
    G_asprintf = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 142
if _libs["grass_gis.8.5"].has("G_rasprintf", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_rasprintf", "cdecl")
    _restype = c_int
    _errcheck = None
    _argtypes = [POINTER(POINTER(c_char)), POINTER(c_size_t), String]
    G_rasprintf = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 146
if _libs["grass_gis.8.5"].has("G_aprintf", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_aprintf", "cdecl")
    _restype = c_int
    _errcheck = None
    _argtypes = [String]
    G_aprintf = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 147
if _libs["grass_gis.8.5"].has("G_faprintf", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_faprintf", "cdecl")
    _restype = c_int
    _errcheck = None
    _argtypes = [POINTER(FILE), String]
    G_faprintf = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 148
if _libs["grass_gis.8.5"].has("G_saprintf", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_saprintf", "cdecl")
    _restype = c_int
    _errcheck = None
    _argtypes = [String, String]
    G_saprintf = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 149
if _libs["grass_gis.8.5"].has("G_snaprintf", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_snaprintf", "cdecl")
    _restype = c_int
    _errcheck = None
    _argtypes = [String, c_size_t, String]
    G_snaprintf = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 150
if _libs["grass_gis.8.5"].has("G_vaprintf", "cdecl"):
    G_vaprintf = _libs["grass_gis.8.5"].get("G_vaprintf", "cdecl")
    G_vaprintf.argtypes = [String, c_void_p]
    G_vaprintf.restype = c_int

# include/grass/defs/gis.h: 151
if _libs["grass_gis.8.5"].has("G_vfaprintf", "cdecl"):
    G_vfaprintf = _libs["grass_gis.8.5"].get("G_vfaprintf", "cdecl")
    G_vfaprintf.argtypes = [POINTER(FILE), String, c_void_p]
    G_vfaprintf.restype = c_int

# include/grass/defs/gis.h: 152
if _libs["grass_gis.8.5"].has("G_vsaprintf", "cdecl"):
    G_vsaprintf = _libs["grass_gis.8.5"].get("G_vsaprintf", "cdecl")
    G_vsaprintf.argtypes = [String, String, c_void_p]
    G_vsaprintf.restype = c_int

# include/grass/defs/gis.h: 153
if _libs["grass_gis.8.5"].has("G_vsnaprintf", "cdecl"):
    G_vsnaprintf = _libs["grass_gis.8.5"].get("G_vsnaprintf", "cdecl")
    G_vsnaprintf.argtypes = [String, c_size_t, String, c_void_p]
    G_vsnaprintf.restype = c_int

# include/grass/defs/gis.h: 156
if _libs["grass_gis.8.5"].has("G_strlcat", "cdecl"):
    G_strlcat = _libs["grass_gis.8.5"].get("G_strlcat", "cdecl")
    G_strlcat.argtypes = [String, String, c_size_t]
    G_strlcat.restype = c_size_t

# include/grass/defs/gis.h: 159
if _libs["grass_gis.8.5"].has("G_strlcpy", "cdecl"):
    G_strlcpy = _libs["grass_gis.8.5"].get("G_strlcpy", "cdecl")
    G_strlcpy.argtypes = [String, String, c_size_t]
    G_strlcpy.restype = c_size_t

# include/grass/defs/gis.h: 162
if _libs["grass_gis.8.5"].has("G_basename", "cdecl"):
    G_basename = _libs["grass_gis.8.5"].get("G_basename", "cdecl")
    G_basename.argtypes = [String, String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_basename.restype = ReturnString
    else:
        G_basename.restype = String
        G_basename.errcheck = ReturnString

# include/grass/defs/gis.h: 163
if _libs["grass_gis.8.5"].has("G_get_num_decimals", "cdecl"):
    G_get_num_decimals = _libs["grass_gis.8.5"].get("G_get_num_decimals", "cdecl")
    G_get_num_decimals.argtypes = [String]
    G_get_num_decimals.restype = c_size_t

# include/grass/defs/gis.h: 164
if _libs["grass_gis.8.5"].has("G_double_to_basename_format", "cdecl"):
    G_double_to_basename_format = _libs["grass_gis.8.5"].get("G_double_to_basename_format", "cdecl")
    G_double_to_basename_format.argtypes = [c_double, c_size_t, c_size_t]
    if sizeof(c_int) == sizeof(c_void_p):
        G_double_to_basename_format.restype = ReturnString
    else:
        G_double_to_basename_format.restype = String
        G_double_to_basename_format.errcheck = ReturnString

# include/grass/defs/gis.h: 165
if _libs["grass_gis.8.5"].has("G_get_basename_separator", "cdecl"):
    G_get_basename_separator = _libs["grass_gis.8.5"].get("G_get_basename_separator", "cdecl")
    G_get_basename_separator.argtypes = []
    if sizeof(c_int) == sizeof(c_void_p):
        G_get_basename_separator.restype = ReturnString
    else:
        G_get_basename_separator.restype = String
        G_get_basename_separator.errcheck = ReturnString

# include/grass/defs/gis.h: 166
if _libs["grass_gis.8.5"].has("G_join_basename_strings", "cdecl"):
    G_join_basename_strings = _libs["grass_gis.8.5"].get("G_join_basename_strings", "cdecl")
    G_join_basename_strings.argtypes = [POINTER(POINTER(c_char)), c_size_t]
    if sizeof(c_int) == sizeof(c_void_p):
        G_join_basename_strings.restype = ReturnString
    else:
        G_join_basename_strings.restype = String
        G_join_basename_strings.errcheck = ReturnString

# include/grass/defs/gis.h: 167
if _libs["grass_gis.8.5"].has("G_generate_basename", "cdecl"):
    G_generate_basename = _libs["grass_gis.8.5"].get("G_generate_basename", "cdecl")
    G_generate_basename.argtypes = [String, c_double, c_size_t, c_size_t]
    if sizeof(c_int) == sizeof(c_void_p):
        G_generate_basename.restype = ReturnString
    else:
        G_generate_basename.restype = String
        G_generate_basename.errcheck = ReturnString

# include/grass/defs/gis.h: 170
if _libs["grass_gis.8.5"].has("G_bresenham_line", "cdecl"):
    G_bresenham_line = _libs["grass_gis.8.5"].get("G_bresenham_line", "cdecl")
    G_bresenham_line.argtypes = [c_int, c_int, c_int, c_int, CFUNCTYPE(UNCHECKED(c_int), c_int, c_int)]
    G_bresenham_line.restype = None

# include/grass/defs/gis.h: 173
if _libs["grass_gis.8.5"].has("G_clicker", "cdecl"):
    G_clicker = _libs["grass_gis.8.5"].get("G_clicker", "cdecl")
    G_clicker.argtypes = []
    G_clicker.restype = None

# include/grass/defs/gis.h: 176
if _libs["grass_gis.8.5"].has("G_color_rules_options", "cdecl"):
    G_color_rules_options = _libs["grass_gis.8.5"].get("G_color_rules_options", "cdecl")
    G_color_rules_options.argtypes = []
    if sizeof(c_int) == sizeof(c_void_p):
        G_color_rules_options.restype = ReturnString
    else:
        G_color_rules_options.restype = String
        G_color_rules_options.errcheck = ReturnString

# include/grass/defs/gis.h: 177
if _libs["grass_gis.8.5"].has("G_color_rules_descriptions", "cdecl"):
    G_color_rules_descriptions = _libs["grass_gis.8.5"].get("G_color_rules_descriptions", "cdecl")
    G_color_rules_descriptions.argtypes = []
    if sizeof(c_int) == sizeof(c_void_p):
        G_color_rules_descriptions.restype = ReturnString
    else:
        G_color_rules_descriptions.restype = String
        G_color_rules_descriptions.errcheck = ReturnString

# include/grass/defs/gis.h: 178
if _libs["grass_gis.8.5"].has("G_color_rules_description_type", "cdecl"):
    G_color_rules_description_type = _libs["grass_gis.8.5"].get("G_color_rules_description_type", "cdecl")
    G_color_rules_description_type.argtypes = []
    if sizeof(c_int) == sizeof(c_void_p):
        G_color_rules_description_type.restype = ReturnString
    else:
        G_color_rules_description_type.restype = String
        G_color_rules_description_type.errcheck = ReturnString

# include/grass/defs/gis.h: 179
if _libs["grass_gis.8.5"].has("G_list_color_rules", "cdecl"):
    G_list_color_rules = _libs["grass_gis.8.5"].get("G_list_color_rules", "cdecl")
    G_list_color_rules.argtypes = [POINTER(FILE)]
    G_list_color_rules.restype = None

# include/grass/defs/gis.h: 180
if _libs["grass_gis.8.5"].has("G_list_color_rules_description_type", "cdecl"):
    G_list_color_rules_description_type = _libs["grass_gis.8.5"].get("G_list_color_rules_description_type", "cdecl")
    G_list_color_rules_description_type.argtypes = [POINTER(FILE), String]
    G_list_color_rules_description_type.restype = None

# include/grass/defs/gis.h: 181
if _libs["grass_gis.8.5"].has("G_find_color_rule", "cdecl"):
    G_find_color_rule = _libs["grass_gis.8.5"].get("G_find_color_rule", "cdecl")
    G_find_color_rule.argtypes = [String]
    G_find_color_rule.restype = c_int

# include/grass/defs/gis.h: 184
if _libs["grass_gis.8.5"].has("G_num_standard_colors", "cdecl"):
    G_num_standard_colors = _libs["grass_gis.8.5"].get("G_num_standard_colors", "cdecl")
    G_num_standard_colors.argtypes = []
    G_num_standard_colors.restype = c_int

# include/grass/defs/gis.h: 187
if _libs["grass_gis.8.5"].has("G_insert_commas", "cdecl"):
    G_insert_commas = _libs["grass_gis.8.5"].get("G_insert_commas", "cdecl")
    G_insert_commas.argtypes = [String]
    G_insert_commas.restype = c_int

# include/grass/defs/gis.h: 188
if _libs["grass_gis.8.5"].has("G_remove_commas", "cdecl"):
    G_remove_commas = _libs["grass_gis.8.5"].get("G_remove_commas", "cdecl")
    G_remove_commas.argtypes = [String]
    G_remove_commas.restype = None

# include/grass/defs/gis.h: 191
if _libs["grass_gis.8.5"].has("G_compressor_number", "cdecl"):
    G_compressor_number = _libs["grass_gis.8.5"].get("G_compressor_number", "cdecl")
    G_compressor_number.argtypes = [String]
    G_compressor_number.restype = c_int

# include/grass/defs/gis.h: 192
if _libs["grass_gis.8.5"].has("G_compressor_name", "cdecl"):
    G_compressor_name = _libs["grass_gis.8.5"].get("G_compressor_name", "cdecl")
    G_compressor_name.argtypes = [c_int]
    if sizeof(c_int) == sizeof(c_void_p):
        G_compressor_name.restype = ReturnString
    else:
        G_compressor_name.restype = String
        G_compressor_name.errcheck = ReturnString

# include/grass/defs/gis.h: 193
if _libs["grass_gis.8.5"].has("G_default_compressor", "cdecl"):
    G_default_compressor = _libs["grass_gis.8.5"].get("G_default_compressor", "cdecl")
    G_default_compressor.argtypes = []
    G_default_compressor.restype = c_int

# include/grass/defs/gis.h: 194
if _libs["grass_gis.8.5"].has("G_check_compressor", "cdecl"):
    G_check_compressor = _libs["grass_gis.8.5"].get("G_check_compressor", "cdecl")
    G_check_compressor.argtypes = [c_int]
    G_check_compressor.restype = c_int

# include/grass/defs/gis.h: 195
if _libs["grass_gis.8.5"].has("G_write_compressed", "cdecl"):
    G_write_compressed = _libs["grass_gis.8.5"].get("G_write_compressed", "cdecl")
    G_write_compressed.argtypes = [c_int, POINTER(c_ubyte), c_int, c_int]
    G_write_compressed.restype = c_int

# include/grass/defs/gis.h: 196
for _lib in _libs.values():
    if not _lib.has("G_write_unompressed", "cdecl"):
        continue
    G_write_unompressed = _lib.get("G_write_unompressed", "cdecl")
    G_write_unompressed.argtypes = [c_int, POINTER(c_ubyte), c_int]
    G_write_unompressed.restype = c_int
    break

# include/grass/defs/gis.h: 197
if _libs["grass_gis.8.5"].has("G_read_compressed", "cdecl"):
    G_read_compressed = _libs["grass_gis.8.5"].get("G_read_compressed", "cdecl")
    G_read_compressed.argtypes = [c_int, c_int, POINTER(c_ubyte), c_int, c_int]
    G_read_compressed.restype = c_int

# include/grass/defs/gis.h: 198
if _libs["grass_gis.8.5"].has("G_compress_bound", "cdecl"):
    G_compress_bound = _libs["grass_gis.8.5"].get("G_compress_bound", "cdecl")
    G_compress_bound.argtypes = [c_int, c_int]
    G_compress_bound.restype = c_int

# include/grass/defs/gis.h: 199
if _libs["grass_gis.8.5"].has("G_compress", "cdecl"):
    G_compress = _libs["grass_gis.8.5"].get("G_compress", "cdecl")
    G_compress.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int, c_int]
    G_compress.restype = c_int

# include/grass/defs/gis.h: 200
if _libs["grass_gis.8.5"].has("G_expand", "cdecl"):
    G_expand = _libs["grass_gis.8.5"].get("G_expand", "cdecl")
    G_expand.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int, c_int]
    G_expand.restype = c_int

# include/grass/defs/gis.h: 203
if _libs["grass_gis.8.5"].has("G_no_compress", "cdecl"):
    G_no_compress = _libs["grass_gis.8.5"].get("G_no_compress", "cdecl")
    G_no_compress.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int]
    G_no_compress.restype = c_int

# include/grass/defs/gis.h: 205
if _libs["grass_gis.8.5"].has("G_no_expand", "cdecl"):
    G_no_expand = _libs["grass_gis.8.5"].get("G_no_expand", "cdecl")
    G_no_expand.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int]
    G_no_expand.restype = c_int

# include/grass/defs/gis.h: 208
if _libs["grass_gis.8.5"].has("G_rle_compress", "cdecl"):
    G_rle_compress = _libs["grass_gis.8.5"].get("G_rle_compress", "cdecl")
    G_rle_compress.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int]
    G_rle_compress.restype = c_int

# include/grass/defs/gis.h: 210
if _libs["grass_gis.8.5"].has("G_rle_expand", "cdecl"):
    G_rle_expand = _libs["grass_gis.8.5"].get("G_rle_expand", "cdecl")
    G_rle_expand.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int]
    G_rle_expand.restype = c_int

# include/grass/defs/gis.h: 214
if _libs["grass_gis.8.5"].has("G_zlib_compress", "cdecl"):
    G_zlib_compress = _libs["grass_gis.8.5"].get("G_zlib_compress", "cdecl")
    G_zlib_compress.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int]
    G_zlib_compress.restype = c_int

# include/grass/defs/gis.h: 216
if _libs["grass_gis.8.5"].has("G_zlib_expand", "cdecl"):
    G_zlib_expand = _libs["grass_gis.8.5"].get("G_zlib_expand", "cdecl")
    G_zlib_expand.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int]
    G_zlib_expand.restype = c_int

# include/grass/defs/gis.h: 220
if _libs["grass_gis.8.5"].has("G_lz4_compress", "cdecl"):
    G_lz4_compress = _libs["grass_gis.8.5"].get("G_lz4_compress", "cdecl")
    G_lz4_compress.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int]
    G_lz4_compress.restype = c_int

# include/grass/defs/gis.h: 222
if _libs["grass_gis.8.5"].has("G_lz4_expand", "cdecl"):
    G_lz4_expand = _libs["grass_gis.8.5"].get("G_lz4_expand", "cdecl")
    G_lz4_expand.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int]
    G_lz4_expand.restype = c_int

# include/grass/defs/gis.h: 227
if _libs["grass_gis.8.5"].has("G_bz2_compress", "cdecl"):
    G_bz2_compress = _libs["grass_gis.8.5"].get("G_bz2_compress", "cdecl")
    G_bz2_compress.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int]
    G_bz2_compress.restype = c_int

# include/grass/defs/gis.h: 229
if _libs["grass_gis.8.5"].has("G_bz2_expand", "cdecl"):
    G_bz2_expand = _libs["grass_gis.8.5"].get("G_bz2_expand", "cdecl")
    G_bz2_expand.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int]
    G_bz2_expand.restype = c_int

# include/grass/defs/gis.h: 233
if _libs["grass_gis.8.5"].has("G_zstd_compress", "cdecl"):
    G_zstd_compress = _libs["grass_gis.8.5"].get("G_zstd_compress", "cdecl")
    G_zstd_compress.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int]
    G_zstd_compress.restype = c_int

# include/grass/defs/gis.h: 235
if _libs["grass_gis.8.5"].has("G_zstd_expand", "cdecl"):
    G_zstd_expand = _libs["grass_gis.8.5"].get("G_zstd_expand", "cdecl")
    G_zstd_expand.argtypes = [POINTER(c_ubyte), c_int, POINTER(c_ubyte), c_int]
    G_zstd_expand.restype = c_int

# include/grass/defs/gis.h: 241
if _libs["grass_gis.8.5"].has("G_recursive_copy", "cdecl"):
    G_recursive_copy = _libs["grass_gis.8.5"].get("G_recursive_copy", "cdecl")
    G_recursive_copy.argtypes = [String, String]
    G_recursive_copy.restype = c_int

# include/grass/defs/gis.h: 244
if _libs["grass_gis.8.5"].has("G_copy_file", "cdecl"):
    G_copy_file = _libs["grass_gis.8.5"].get("G_copy_file", "cdecl")
    G_copy_file.argtypes = [String, String]
    G_copy_file.restype = c_int

# include/grass/defs/gis.h: 247
if _libs["grass_gis.8.5"].has("G_is_initialized", "cdecl"):
    G_is_initialized = _libs["grass_gis.8.5"].get("G_is_initialized", "cdecl")
    G_is_initialized.argtypes = [POINTER(c_int)]
    G_is_initialized.restype = c_int

# include/grass/defs/gis.h: 248
if _libs["grass_gis.8.5"].has("G_initialize_done", "cdecl"):
    G_initialize_done = _libs["grass_gis.8.5"].get("G_initialize_done", "cdecl")
    G_initialize_done.argtypes = [POINTER(c_int)]
    G_initialize_done.restype = None

# include/grass/defs/gis.h: 249
if _libs["grass_gis.8.5"].has("G_init_counter", "cdecl"):
    G_init_counter = _libs["grass_gis.8.5"].get("G_init_counter", "cdecl")
    G_init_counter.argtypes = [POINTER(struct_Counter), c_int]
    G_init_counter.restype = None

# include/grass/defs/gis.h: 250
if _libs["grass_gis.8.5"].has("G_counter_next", "cdecl"):
    G_counter_next = _libs["grass_gis.8.5"].get("G_counter_next", "cdecl")
    G_counter_next.argtypes = [POINTER(struct_Counter)]
    G_counter_next.restype = c_int

# include/grass/defs/gis.h: 253
if _libs["grass_gis.8.5"].has("G_date", "cdecl"):
    G_date = _libs["grass_gis.8.5"].get("G_date", "cdecl")
    G_date.argtypes = []
    G_date.restype = c_char_p

# include/grass/defs/gis.h: 256
if _libs["grass_gis.8.5"].has("G_get_datum_by_name", "cdecl"):
    G_get_datum_by_name = _libs["grass_gis.8.5"].get("G_get_datum_by_name", "cdecl")
    G_get_datum_by_name.argtypes = [String]
    G_get_datum_by_name.restype = c_int

# include/grass/defs/gis.h: 257
if _libs["grass_gis.8.5"].has("G_datum_name", "cdecl"):
    G_datum_name = _libs["grass_gis.8.5"].get("G_datum_name", "cdecl")
    G_datum_name.argtypes = [c_int]
    G_datum_name.restype = c_char_p

# include/grass/defs/gis.h: 258
if _libs["grass_gis.8.5"].has("G_datum_description", "cdecl"):
    G_datum_description = _libs["grass_gis.8.5"].get("G_datum_description", "cdecl")
    G_datum_description.argtypes = [c_int]
    G_datum_description.restype = c_char_p

# include/grass/defs/gis.h: 259
if _libs["grass_gis.8.5"].has("G_datum_ellipsoid", "cdecl"):
    G_datum_ellipsoid = _libs["grass_gis.8.5"].get("G_datum_ellipsoid", "cdecl")
    G_datum_ellipsoid.argtypes = [c_int]
    G_datum_ellipsoid.restype = c_char_p

# include/grass/defs/gis.h: 260
if _libs["grass_gis.8.5"].has("G_get_datumparams_from_projinfo", "cdecl"):
    G_get_datumparams_from_projinfo = _libs["grass_gis.8.5"].get("G_get_datumparams_from_projinfo", "cdecl")
    G_get_datumparams_from_projinfo.argtypes = [POINTER(struct_Key_Value), String, String]
    G_get_datumparams_from_projinfo.restype = c_int

# include/grass/defs/gis.h: 261
if _libs["grass_gis.8.5"].has("G_read_datum_table", "cdecl"):
    G_read_datum_table = _libs["grass_gis.8.5"].get("G_read_datum_table", "cdecl")
    G_read_datum_table.argtypes = []
    G_read_datum_table.restype = None

# include/grass/defs/gis.h: 264
if _libs["grass_gis.8.5"].has("G_init_debug", "cdecl"):
    G_init_debug = _libs["grass_gis.8.5"].get("G_init_debug", "cdecl")
    G_init_debug.argtypes = []
    G_init_debug.restype = None

# include/grass/defs/gis.h: 265
if _libs["grass_gis.8.5"].has("G_debug", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_debug", "cdecl")
    _restype = c_int
    _errcheck = None
    _argtypes = [c_int, String]
    G_debug = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 268
if _libs["grass_gis.8.5"].has("G_begin_distance_calculations", "cdecl"):
    G_begin_distance_calculations = _libs["grass_gis.8.5"].get("G_begin_distance_calculations", "cdecl")
    G_begin_distance_calculations.argtypes = []
    G_begin_distance_calculations.restype = c_int

# include/grass/defs/gis.h: 269
if _libs["grass_gis.8.5"].has("G_distance", "cdecl"):
    G_distance = _libs["grass_gis.8.5"].get("G_distance", "cdecl")
    G_distance.argtypes = [c_double, c_double, c_double, c_double]
    G_distance.restype = c_double

# include/grass/defs/gis.h: 270
if _libs["grass_gis.8.5"].has("G_distance_between_line_segments", "cdecl"):
    G_distance_between_line_segments = _libs["grass_gis.8.5"].get("G_distance_between_line_segments", "cdecl")
    G_distance_between_line_segments.argtypes = [c_double, c_double, c_double, c_double, c_double, c_double, c_double, c_double]
    G_distance_between_line_segments.restype = c_double

# include/grass/defs/gis.h: 272
if _libs["grass_gis.8.5"].has("G_distance_point_to_line_segment", "cdecl"):
    G_distance_point_to_line_segment = _libs["grass_gis.8.5"].get("G_distance_point_to_line_segment", "cdecl")
    G_distance_point_to_line_segment.argtypes = [c_double, c_double, c_double, c_double, c_double, c_double]
    G_distance_point_to_line_segment.restype = c_double

# include/grass/defs/gis.h: 276
if _libs["grass_gis.8.5"].has("G_done_msg", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_done_msg", "cdecl")
    _restype = None
    _errcheck = None
    _argtypes = [String]
    G_done_msg = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 279
if _libs["grass_gis.8.5"].has("G_is_little_endian", "cdecl"):
    G_is_little_endian = _libs["grass_gis.8.5"].get("G_is_little_endian", "cdecl")
    G_is_little_endian.argtypes = []
    G_is_little_endian.restype = c_int

# include/grass/defs/gis.h: 282
if _libs["grass_gis.8.5"].has("G_init_env", "cdecl"):
    G_init_env = _libs["grass_gis.8.5"].get("G_init_env", "cdecl")
    G_init_env.argtypes = []
    G_init_env.restype = None

# include/grass/defs/gis.h: 283
if _libs["grass_gis.8.5"].has("G_getenv", "cdecl"):
    G_getenv = _libs["grass_gis.8.5"].get("G_getenv", "cdecl")
    G_getenv.argtypes = [String]
    G_getenv.restype = c_char_p

# include/grass/defs/gis.h: 284
if _libs["grass_gis.8.5"].has("G_getenv2", "cdecl"):
    G_getenv2 = _libs["grass_gis.8.5"].get("G_getenv2", "cdecl")
    G_getenv2.argtypes = [String, c_int]
    G_getenv2.restype = c_char_p

# include/grass/defs/gis.h: 285
if _libs["grass_gis.8.5"].has("G_getenv_nofatal", "cdecl"):
    G_getenv_nofatal = _libs["grass_gis.8.5"].get("G_getenv_nofatal", "cdecl")
    G_getenv_nofatal.argtypes = [String]
    G_getenv_nofatal.restype = c_char_p

# include/grass/defs/gis.h: 286
if _libs["grass_gis.8.5"].has("G_getenv_nofatal2", "cdecl"):
    G_getenv_nofatal2 = _libs["grass_gis.8.5"].get("G_getenv_nofatal2", "cdecl")
    G_getenv_nofatal2.argtypes = [String, c_int]
    G_getenv_nofatal2.restype = c_char_p

# include/grass/defs/gis.h: 287
if _libs["grass_gis.8.5"].has("G_setenv", "cdecl"):
    G_setenv = _libs["grass_gis.8.5"].get("G_setenv", "cdecl")
    G_setenv.argtypes = [String, String]
    G_setenv.restype = None

# include/grass/defs/gis.h: 288
if _libs["grass_gis.8.5"].has("G_setenv2", "cdecl"):
    G_setenv2 = _libs["grass_gis.8.5"].get("G_setenv2", "cdecl")
    G_setenv2.argtypes = [String, String, c_int]
    G_setenv2.restype = None

# include/grass/defs/gis.h: 289
if _libs["grass_gis.8.5"].has("G_setenv_nogisrc", "cdecl"):
    G_setenv_nogisrc = _libs["grass_gis.8.5"].get("G_setenv_nogisrc", "cdecl")
    G_setenv_nogisrc.argtypes = [String, String]
    G_setenv_nogisrc.restype = None

# include/grass/defs/gis.h: 290
if _libs["grass_gis.8.5"].has("G_setenv_nogisrc2", "cdecl"):
    G_setenv_nogisrc2 = _libs["grass_gis.8.5"].get("G_setenv_nogisrc2", "cdecl")
    G_setenv_nogisrc2.argtypes = [String, String, c_int]
    G_setenv_nogisrc2.restype = None

# include/grass/defs/gis.h: 291
if _libs["grass_gis.8.5"].has("G_unsetenv", "cdecl"):
    G_unsetenv = _libs["grass_gis.8.5"].get("G_unsetenv", "cdecl")
    G_unsetenv.argtypes = [String]
    G_unsetenv.restype = None

# include/grass/defs/gis.h: 292
if _libs["grass_gis.8.5"].has("G_unsetenv2", "cdecl"):
    G_unsetenv2 = _libs["grass_gis.8.5"].get("G_unsetenv2", "cdecl")
    G_unsetenv2.argtypes = [String, c_int]
    G_unsetenv2.restype = None

# include/grass/defs/gis.h: 293
if _libs["grass_gis.8.5"].has("G_get_env_name", "cdecl"):
    G_get_env_name = _libs["grass_gis.8.5"].get("G_get_env_name", "cdecl")
    G_get_env_name.argtypes = [c_int]
    G_get_env_name.restype = c_char_p

# include/grass/defs/gis.h: 294
if _libs["grass_gis.8.5"].has("G_set_gisrc_mode", "cdecl"):
    G_set_gisrc_mode = _libs["grass_gis.8.5"].get("G_set_gisrc_mode", "cdecl")
    G_set_gisrc_mode.argtypes = [c_int]
    G_set_gisrc_mode.restype = None

# include/grass/defs/gis.h: 295
if _libs["grass_gis.8.5"].has("G_get_gisrc_mode", "cdecl"):
    G_get_gisrc_mode = _libs["grass_gis.8.5"].get("G_get_gisrc_mode", "cdecl")
    G_get_gisrc_mode.argtypes = []
    G_get_gisrc_mode.restype = c_int

# include/grass/defs/gis.h: 296
if _libs["grass_gis.8.5"].has("G_create_alt_env", "cdecl"):
    G_create_alt_env = _libs["grass_gis.8.5"].get("G_create_alt_env", "cdecl")
    G_create_alt_env.argtypes = []
    G_create_alt_env.restype = None

# include/grass/defs/gis.h: 297
if _libs["grass_gis.8.5"].has("G_switch_env", "cdecl"):
    G_switch_env = _libs["grass_gis.8.5"].get("G_switch_env", "cdecl")
    G_switch_env.argtypes = []
    G_switch_env.restype = None

# include/grass/defs/gis.h: 298
if _libs["grass_gis.8.5"].has("G__read_mapset_env", "cdecl"):
    G__read_mapset_env = _libs["grass_gis.8.5"].get("G__read_mapset_env", "cdecl")
    G__read_mapset_env.argtypes = []
    G__read_mapset_env.restype = None

# include/grass/defs/gis.h: 299
if _libs["grass_gis.8.5"].has("G__read_gisrc_env", "cdecl"):
    G__read_gisrc_env = _libs["grass_gis.8.5"].get("G__read_gisrc_env", "cdecl")
    G__read_gisrc_env.argtypes = []
    G__read_gisrc_env.restype = None

# include/grass/defs/gis.h: 300
if _libs["grass_gis.8.5"].has("G__read_gisrc_path", "cdecl"):
    G__read_gisrc_path = _libs["grass_gis.8.5"].get("G__read_gisrc_path", "cdecl")
    G__read_gisrc_path.argtypes = []
    G__read_gisrc_path.restype = None

# include/grass/defs/gis.h: 307
if _libs["grass_gis.8.5"].has("G_info_format", "cdecl"):
    G_info_format = _libs["grass_gis.8.5"].get("G_info_format", "cdecl")
    G_info_format.argtypes = []
    G_info_format.restype = c_int

# include/grass/defs/gis.h: 308
if _libs["grass_gis.8.5"].has("G_message", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_message", "cdecl")
    _restype = None
    _errcheck = None
    _argtypes = [String]
    G_message = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 309
if _libs["grass_gis.8.5"].has("G_verbose_message", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_verbose_message", "cdecl")
    _restype = None
    _errcheck = None
    _argtypes = [String]
    G_verbose_message = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 310
if _libs["grass_gis.8.5"].has("G_important_message", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_important_message", "cdecl")
    _restype = None
    _errcheck = None
    _argtypes = [String]
    G_important_message = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 312
if _libs["grass_gis.8.5"].has("G_fatal_error", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_fatal_error", "cdecl")
    _restype = None
    _errcheck = None
    _argtypes = [String]
    G_fatal_error = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 314
if _libs["grass_gis.8.5"].has("G_warning", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_warning", "cdecl")
    _restype = None
    _errcheck = None
    _argtypes = [String]
    G_warning = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 315
if _libs["grass_gis.8.5"].has("G_suppress_warnings", "cdecl"):
    G_suppress_warnings = _libs["grass_gis.8.5"].get("G_suppress_warnings", "cdecl")
    G_suppress_warnings.argtypes = [c_int]
    G_suppress_warnings.restype = c_int

# include/grass/defs/gis.h: 316
if _libs["grass_gis.8.5"].has("G_sleep_on_error", "cdecl"):
    G_sleep_on_error = _libs["grass_gis.8.5"].get("G_sleep_on_error", "cdecl")
    G_sleep_on_error.argtypes = [c_int]
    G_sleep_on_error.restype = c_int

# include/grass/defs/gis.h: 317
if _libs["grass_gis.8.5"].has("G_set_error_routine", "cdecl"):
    G_set_error_routine = _libs["grass_gis.8.5"].get("G_set_error_routine", "cdecl")
    G_set_error_routine.argtypes = [CFUNCTYPE(UNCHECKED(c_int), String, c_int)]
    G_set_error_routine.restype = None

# include/grass/defs/gis.h: 318
if _libs["grass_gis.8.5"].has("G_unset_error_routine", "cdecl"):
    G_unset_error_routine = _libs["grass_gis.8.5"].get("G_unset_error_routine", "cdecl")
    G_unset_error_routine.argtypes = []
    G_unset_error_routine.restype = None

# include/grass/defs/gis.h: 319
if _libs["grass_gis.8.5"].has("G_init_logging", "cdecl"):
    G_init_logging = _libs["grass_gis.8.5"].get("G_init_logging", "cdecl")
    G_init_logging.argtypes = []
    G_init_logging.restype = None

# include/grass/defs/gis.h: 322
if _libs["grass_gis.8.5"].has("G_file_name", "cdecl"):
    G_file_name = _libs["grass_gis.8.5"].get("G_file_name", "cdecl")
    G_file_name.argtypes = [String, String, String, String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_file_name.restype = ReturnString
    else:
        G_file_name.restype = String
        G_file_name.errcheck = ReturnString

# include/grass/defs/gis.h: 323
if _libs["grass_gis.8.5"].has("G_file_name_misc", "cdecl"):
    G_file_name_misc = _libs["grass_gis.8.5"].get("G_file_name_misc", "cdecl")
    G_file_name_misc.argtypes = [String, String, String, String, String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_file_name_misc.restype = ReturnString
    else:
        G_file_name_misc.restype = String
        G_file_name_misc.errcheck = ReturnString

# include/grass/defs/gis.h: 325
if _libs["grass_gis.8.5"].has("G_file_name_tmp", "cdecl"):
    G_file_name_tmp = _libs["grass_gis.8.5"].get("G_file_name_tmp", "cdecl")
    G_file_name_tmp.argtypes = [String, String, String, String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_file_name_tmp.restype = ReturnString
    else:
        G_file_name_tmp.restype = String
        G_file_name_tmp.errcheck = ReturnString

# include/grass/defs/gis.h: 326
if _libs["grass_gis.8.5"].has("G_file_name_basedir", "cdecl"):
    G_file_name_basedir = _libs["grass_gis.8.5"].get("G_file_name_basedir", "cdecl")
    G_file_name_basedir.argtypes = [String, String, String, String, String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_file_name_basedir.restype = ReturnString
    else:
        G_file_name_basedir.restype = String
        G_file_name_basedir.errcheck = ReturnString

# include/grass/defs/gis.h: 330
if _libs["grass_gis.8.5"].has("G_find_file", "cdecl"):
    G_find_file = _libs["grass_gis.8.5"].get("G_find_file", "cdecl")
    G_find_file.argtypes = [String, String, String]
    G_find_file.restype = c_char_p

# include/grass/defs/gis.h: 331
if _libs["grass_gis.8.5"].has("G_find_file2", "cdecl"):
    G_find_file2 = _libs["grass_gis.8.5"].get("G_find_file2", "cdecl")
    G_find_file2.argtypes = [String, String, String]
    G_find_file2.restype = c_char_p

# include/grass/defs/gis.h: 332
if _libs["grass_gis.8.5"].has("G_find_file_misc", "cdecl"):
    G_find_file_misc = _libs["grass_gis.8.5"].get("G_find_file_misc", "cdecl")
    G_find_file_misc.argtypes = [String, String, String, String]
    G_find_file_misc.restype = c_char_p

# include/grass/defs/gis.h: 333
if _libs["grass_gis.8.5"].has("G_find_file2_misc", "cdecl"):
    G_find_file2_misc = _libs["grass_gis.8.5"].get("G_find_file2_misc", "cdecl")
    G_find_file2_misc.argtypes = [String, String, String, String]
    G_find_file2_misc.restype = c_char_p

# include/grass/defs/gis.h: 337
if _libs["grass_gis.8.5"].has("G_find_etc", "cdecl"):
    G_find_etc = _libs["grass_gis.8.5"].get("G_find_etc", "cdecl")
    G_find_etc.argtypes = [String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_find_etc.restype = ReturnString
    else:
        G_find_etc.restype = String
        G_find_etc.errcheck = ReturnString

# include/grass/defs/gis.h: 340
if _libs["grass_gis.8.5"].has("G_find_raster", "cdecl"):
    G_find_raster = _libs["grass_gis.8.5"].get("G_find_raster", "cdecl")
    G_find_raster.argtypes = [String, String]
    G_find_raster.restype = c_char_p

# include/grass/defs/gis.h: 341
if _libs["grass_gis.8.5"].has("G_find_raster2", "cdecl"):
    G_find_raster2 = _libs["grass_gis.8.5"].get("G_find_raster2", "cdecl")
    G_find_raster2.argtypes = [String, String]
    G_find_raster2.restype = c_char_p

# include/grass/defs/gis.h: 344
if _libs["grass_gis.8.5"].has("G_find_raster3d", "cdecl"):
    G_find_raster3d = _libs["grass_gis.8.5"].get("G_find_raster3d", "cdecl")
    G_find_raster3d.argtypes = [String, String]
    G_find_raster3d.restype = c_char_p

# include/grass/defs/gis.h: 347
if _libs["grass_gis.8.5"].has("G_find_vector", "cdecl"):
    G_find_vector = _libs["grass_gis.8.5"].get("G_find_vector", "cdecl")
    G_find_vector.argtypes = [String, String]
    G_find_vector.restype = c_char_p

# include/grass/defs/gis.h: 348
if _libs["grass_gis.8.5"].has("G_find_vector2", "cdecl"):
    G_find_vector2 = _libs["grass_gis.8.5"].get("G_find_vector2", "cdecl")
    G_find_vector2.argtypes = [String, String]
    G_find_vector2.restype = c_char_p

# include/grass/defs/gis.h: 351
if _libs["grass_gis.8.5"].has("G_begin_geodesic_equation", "cdecl"):
    G_begin_geodesic_equation = _libs["grass_gis.8.5"].get("G_begin_geodesic_equation", "cdecl")
    G_begin_geodesic_equation.argtypes = [c_double, c_double, c_double, c_double]
    G_begin_geodesic_equation.restype = c_int

# include/grass/defs/gis.h: 352
if _libs["grass_gis.8.5"].has("G_geodesic_lat_from_lon", "cdecl"):
    G_geodesic_lat_from_lon = _libs["grass_gis.8.5"].get("G_geodesic_lat_from_lon", "cdecl")
    G_geodesic_lat_from_lon.argtypes = [c_double]
    G_geodesic_lat_from_lon.restype = c_double

# include/grass/defs/gis.h: 355
if _libs["grass_gis.8.5"].has("G_begin_geodesic_distance", "cdecl"):
    G_begin_geodesic_distance = _libs["grass_gis.8.5"].get("G_begin_geodesic_distance", "cdecl")
    G_begin_geodesic_distance.argtypes = [c_double, c_double]
    G_begin_geodesic_distance.restype = None

# include/grass/defs/gis.h: 356
if _libs["grass_gis.8.5"].has("G_set_geodesic_distance_lat1", "cdecl"):
    G_set_geodesic_distance_lat1 = _libs["grass_gis.8.5"].get("G_set_geodesic_distance_lat1", "cdecl")
    G_set_geodesic_distance_lat1.argtypes = [c_double]
    G_set_geodesic_distance_lat1.restype = None

# include/grass/defs/gis.h: 357
if _libs["grass_gis.8.5"].has("G_set_geodesic_distance_lat2", "cdecl"):
    G_set_geodesic_distance_lat2 = _libs["grass_gis.8.5"].get("G_set_geodesic_distance_lat2", "cdecl")
    G_set_geodesic_distance_lat2.argtypes = [c_double]
    G_set_geodesic_distance_lat2.restype = None

# include/grass/defs/gis.h: 358
if _libs["grass_gis.8.5"].has("G_geodesic_distance_lon_to_lon", "cdecl"):
    G_geodesic_distance_lon_to_lon = _libs["grass_gis.8.5"].get("G_geodesic_distance_lon_to_lon", "cdecl")
    G_geodesic_distance_lon_to_lon.argtypes = [c_double, c_double]
    G_geodesic_distance_lon_to_lon.restype = c_double

# include/grass/defs/gis.h: 359
if _libs["grass_gis.8.5"].has("G_geodesic_distance", "cdecl"):
    G_geodesic_distance = _libs["grass_gis.8.5"].get("G_geodesic_distance", "cdecl")
    G_geodesic_distance.argtypes = [c_double, c_double, c_double, c_double]
    G_geodesic_distance.restype = c_double

# include/grass/defs/gis.h: 362
if _libs["grass_gis.8.5"].has("G_get_ellipsoid_parameters", "cdecl"):
    G_get_ellipsoid_parameters = _libs["grass_gis.8.5"].get("G_get_ellipsoid_parameters", "cdecl")
    G_get_ellipsoid_parameters.argtypes = [POINTER(c_double), POINTER(c_double)]
    G_get_ellipsoid_parameters.restype = c_int

# include/grass/defs/gis.h: 363
if _libs["grass_gis.8.5"].has("G_get_spheroid_by_name", "cdecl"):
    G_get_spheroid_by_name = _libs["grass_gis.8.5"].get("G_get_spheroid_by_name", "cdecl")
    G_get_spheroid_by_name.argtypes = [String, POINTER(c_double), POINTER(c_double), POINTER(c_double)]
    G_get_spheroid_by_name.restype = c_int

# include/grass/defs/gis.h: 364
if _libs["grass_gis.8.5"].has("G_get_ellipsoid_by_name", "cdecl"):
    G_get_ellipsoid_by_name = _libs["grass_gis.8.5"].get("G_get_ellipsoid_by_name", "cdecl")
    G_get_ellipsoid_by_name.argtypes = [String, POINTER(c_double), POINTER(c_double)]
    G_get_ellipsoid_by_name.restype = c_int

# include/grass/defs/gis.h: 365
if _libs["grass_gis.8.5"].has("G_ellipsoid_name", "cdecl"):
    G_ellipsoid_name = _libs["grass_gis.8.5"].get("G_ellipsoid_name", "cdecl")
    G_ellipsoid_name.argtypes = [c_int]
    G_ellipsoid_name.restype = c_char_p

# include/grass/defs/gis.h: 366
if _libs["grass_gis.8.5"].has("G_ellipsoid_description", "cdecl"):
    G_ellipsoid_description = _libs["grass_gis.8.5"].get("G_ellipsoid_description", "cdecl")
    G_ellipsoid_description.argtypes = [c_int]
    G_ellipsoid_description.restype = c_char_p

# include/grass/defs/gis.h: 367
if _libs["grass_gis.8.5"].has("G_read_ellipsoid_table", "cdecl"):
    G_read_ellipsoid_table = _libs["grass_gis.8.5"].get("G_read_ellipsoid_table", "cdecl")
    G_read_ellipsoid_table.argtypes = [c_int]
    G_read_ellipsoid_table.restype = c_int

# include/grass/defs/gis.h: 370
if _libs["grass_gis.8.5"].has("G_get_projunits", "cdecl"):
    G_get_projunits = _libs["grass_gis.8.5"].get("G_get_projunits", "cdecl")
    G_get_projunits.argtypes = []
    G_get_projunits.restype = POINTER(struct_Key_Value)

# include/grass/defs/gis.h: 371
if _libs["grass_gis.8.5"].has("G_get_projinfo", "cdecl"):
    G_get_projinfo = _libs["grass_gis.8.5"].get("G_get_projinfo", "cdecl")
    G_get_projinfo.argtypes = []
    G_get_projinfo.restype = POINTER(struct_Key_Value)

# include/grass/defs/gis.h: 372
if _libs["grass_gis.8.5"].has("G_get_projepsg", "cdecl"):
    G_get_projepsg = _libs["grass_gis.8.5"].get("G_get_projepsg", "cdecl")
    G_get_projepsg.argtypes = []
    G_get_projepsg.restype = POINTER(struct_Key_Value)

# include/grass/defs/gis.h: 373
if _libs["grass_gis.8.5"].has("G_get_projwkt", "cdecl"):
    G_get_projwkt = _libs["grass_gis.8.5"].get("G_get_projwkt", "cdecl")
    G_get_projwkt.argtypes = []
    if sizeof(c_int) == sizeof(c_void_p):
        G_get_projwkt.restype = ReturnString
    else:
        G_get_projwkt.restype = String
        G_get_projwkt.errcheck = ReturnString

# include/grass/defs/gis.h: 374
if _libs["grass_gis.8.5"].has("G_get_projsrid", "cdecl"):
    G_get_projsrid = _libs["grass_gis.8.5"].get("G_get_projsrid", "cdecl")
    G_get_projsrid.argtypes = []
    if sizeof(c_int) == sizeof(c_void_p):
        G_get_projsrid.restype = ReturnString
    else:
        G_get_projsrid.restype = String
        G_get_projsrid.errcheck = ReturnString

# include/grass/defs/gis.h: 377
if _libs["grass_gis.8.5"].has("G_get_window", "cdecl"):
    G_get_window = _libs["grass_gis.8.5"].get("G_get_window", "cdecl")
    G_get_window.argtypes = [POINTER(struct_Cell_head)]
    G_get_window.restype = None

# include/grass/defs/gis.h: 378
if _libs["grass_gis.8.5"].has("G_get_default_window", "cdecl"):
    G_get_default_window = _libs["grass_gis.8.5"].get("G_get_default_window", "cdecl")
    G_get_default_window.argtypes = [POINTER(struct_Cell_head)]
    G_get_default_window.restype = None

# include/grass/defs/gis.h: 379
if _libs["grass_gis.8.5"].has("G_get_element_window", "cdecl"):
    G_get_element_window = _libs["grass_gis.8.5"].get("G_get_element_window", "cdecl")
    G_get_element_window.argtypes = [POINTER(struct_Cell_head), String, String, String]
    G_get_element_window.restype = None

# include/grass/defs/gis.h: 383
if _libs["grass_gis.8.5"].has("G_getl", "cdecl"):
    G_getl = _libs["grass_gis.8.5"].get("G_getl", "cdecl")
    G_getl.argtypes = [String, c_int, POINTER(FILE)]
    G_getl.restype = c_int

# include/grass/defs/gis.h: 384
if _libs["grass_gis.8.5"].has("G_getl2", "cdecl"):
    G_getl2 = _libs["grass_gis.8.5"].get("G_getl2", "cdecl")
    G_getl2.argtypes = [String, c_int, POINTER(FILE)]
    G_getl2.restype = c_int

# include/grass/defs/gis.h: 387
if _libs["grass_gis.8.5"].has("G_gisbase", "cdecl"):
    G_gisbase = _libs["grass_gis.8.5"].get("G_gisbase", "cdecl")
    G_gisbase.argtypes = []
    G_gisbase.restype = c_char_p

# include/grass/defs/gis.h: 390
if _libs["grass_gis.8.5"].has("G_gisdbase", "cdecl"):
    G_gisdbase = _libs["grass_gis.8.5"].get("G_gisdbase", "cdecl")
    G_gisdbase.argtypes = []
    G_gisdbase.restype = c_char_p

# include/grass/defs/gis.h: 393
if _libs["grass_gis.8.5"].has("G__gisinit", "cdecl"):
    G__gisinit = _libs["grass_gis.8.5"].get("G__gisinit", "cdecl")
    G__gisinit.argtypes = [String, String]
    G__gisinit.restype = None

# include/grass/defs/gis.h: 394
if _libs["grass_gis.8.5"].has("G__no_gisinit", "cdecl"):
    G__no_gisinit = _libs["grass_gis.8.5"].get("G__no_gisinit", "cdecl")
    G__no_gisinit.argtypes = [String]
    G__no_gisinit.restype = None

# include/grass/defs/gis.h: 395
if _libs["grass_gis.8.5"].has("G_init_all", "cdecl"):
    G_init_all = _libs["grass_gis.8.5"].get("G_init_all", "cdecl")
    G_init_all.argtypes = []
    G_init_all.restype = None

# include/grass/defs/gis.h: 398
if _libs["grass_gis.8.5"].has("G_add_error_handler", "cdecl"):
    G_add_error_handler = _libs["grass_gis.8.5"].get("G_add_error_handler", "cdecl")
    G_add_error_handler.argtypes = [CFUNCTYPE(UNCHECKED(None), POINTER(None)), POINTER(None)]
    G_add_error_handler.restype = None

# include/grass/defs/gis.h: 399
if _libs["grass_gis.8.5"].has("G_remove_error_handler", "cdecl"):
    G_remove_error_handler = _libs["grass_gis.8.5"].get("G_remove_error_handler", "cdecl")
    G_remove_error_handler.argtypes = [CFUNCTYPE(UNCHECKED(None), POINTER(None)), POINTER(None)]
    G_remove_error_handler.restype = None

# include/grass/defs/gis.h: 402
if _libs["grass_gis.8.5"].has("G_home", "cdecl"):
    G_home = _libs["grass_gis.8.5"].get("G_home", "cdecl")
    G_home.argtypes = []
    G_home.restype = c_char_p

# include/grass/defs/gis.h: 403
if _libs["grass_gis.8.5"].has("G_config_path", "cdecl"):
    G_config_path = _libs["grass_gis.8.5"].get("G_config_path", "cdecl")
    G_config_path.argtypes = []
    G_config_path.restype = c_char_p

# include/grass/defs/gis.h: 406
if _libs["grass_gis.8.5"].has("G_init_ilist", "cdecl"):
    G_init_ilist = _libs["grass_gis.8.5"].get("G_init_ilist", "cdecl")
    G_init_ilist.argtypes = [POINTER(struct_ilist)]
    G_init_ilist.restype = None

# include/grass/defs/gis.h: 407
if _libs["grass_gis.8.5"].has("G_free_ilist", "cdecl"):
    G_free_ilist = _libs["grass_gis.8.5"].get("G_free_ilist", "cdecl")
    G_free_ilist.argtypes = [POINTER(struct_ilist)]
    G_free_ilist.restype = None

# include/grass/defs/gis.h: 408
if _libs["grass_gis.8.5"].has("G_new_ilist", "cdecl"):
    G_new_ilist = _libs["grass_gis.8.5"].get("G_new_ilist", "cdecl")
    G_new_ilist.argtypes = []
    G_new_ilist.restype = POINTER(struct_ilist)

# include/grass/defs/gis.h: 409
if _libs["grass_gis.8.5"].has("G_ilist_add", "cdecl"):
    G_ilist_add = _libs["grass_gis.8.5"].get("G_ilist_add", "cdecl")
    G_ilist_add.argtypes = [POINTER(struct_ilist), c_int]
    G_ilist_add.restype = None

# include/grass/defs/gis.h: 412
if _libs["grass_gis.8.5"].has("G_intersect_line_segments", "cdecl"):
    G_intersect_line_segments = _libs["grass_gis.8.5"].get("G_intersect_line_segments", "cdecl")
    G_intersect_line_segments.argtypes = [c_double, c_double, c_double, c_double, c_double, c_double, c_double, c_double, POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double)]
    G_intersect_line_segments.restype = c_int

# include/grass/defs/gis.h: 417
if _libs["grass_gis.8.5"].has("G_is_gisbase", "cdecl"):
    G_is_gisbase = _libs["grass_gis.8.5"].get("G_is_gisbase", "cdecl")
    G_is_gisbase.argtypes = [String]
    G_is_gisbase.restype = c_int

# include/grass/defs/gis.h: 418
if _libs["grass_gis.8.5"].has("G_is_location", "cdecl"):
    G_is_location = _libs["grass_gis.8.5"].get("G_is_location", "cdecl")
    G_is_location.argtypes = [String]
    G_is_location.restype = c_int

# include/grass/defs/gis.h: 419
if _libs["grass_gis.8.5"].has("G_is_mapset", "cdecl"):
    G_is_mapset = _libs["grass_gis.8.5"].get("G_is_mapset", "cdecl")
    G_is_mapset.argtypes = [String]
    G_is_mapset.restype = c_int

# include/grass/defs/gis.h: 422
if _libs["grass_gis.8.5"].has("G_create_key_value", "cdecl"):
    G_create_key_value = _libs["grass_gis.8.5"].get("G_create_key_value", "cdecl")
    G_create_key_value.argtypes = []
    G_create_key_value.restype = POINTER(struct_Key_Value)

# include/grass/defs/gis.h: 423
if _libs["grass_gis.8.5"].has("G_set_key_value", "cdecl"):
    G_set_key_value = _libs["grass_gis.8.5"].get("G_set_key_value", "cdecl")
    G_set_key_value.argtypes = [String, String, POINTER(struct_Key_Value)]
    G_set_key_value.restype = None

# include/grass/defs/gis.h: 424
if _libs["grass_gis.8.5"].has("G_find_key_value", "cdecl"):
    G_find_key_value = _libs["grass_gis.8.5"].get("G_find_key_value", "cdecl")
    G_find_key_value.argtypes = [String, POINTER(struct_Key_Value)]
    G_find_key_value.restype = c_char_p

# include/grass/defs/gis.h: 425
if _libs["grass_gis.8.5"].has("G_free_key_value", "cdecl"):
    G_free_key_value = _libs["grass_gis.8.5"].get("G_free_key_value", "cdecl")
    G_free_key_value.argtypes = [POINTER(struct_Key_Value)]
    G_free_key_value.restype = None

# include/grass/defs/gis.h: 428
if _libs["grass_gis.8.5"].has("G_fwrite_key_value", "cdecl"):
    G_fwrite_key_value = _libs["grass_gis.8.5"].get("G_fwrite_key_value", "cdecl")
    G_fwrite_key_value.argtypes = [POINTER(FILE), POINTER(struct_Key_Value)]
    G_fwrite_key_value.restype = c_int

# include/grass/defs/gis.h: 429
if _libs["grass_gis.8.5"].has("G_fread_key_value", "cdecl"):
    G_fread_key_value = _libs["grass_gis.8.5"].get("G_fread_key_value", "cdecl")
    G_fread_key_value.argtypes = [POINTER(FILE)]
    G_fread_key_value.restype = POINTER(struct_Key_Value)

# include/grass/defs/gis.h: 432
if _libs["grass_gis.8.5"].has("G_write_key_value_file", "cdecl"):
    G_write_key_value_file = _libs["grass_gis.8.5"].get("G_write_key_value_file", "cdecl")
    G_write_key_value_file.argtypes = [String, POINTER(struct_Key_Value)]
    G_write_key_value_file.restype = None

# include/grass/defs/gis.h: 433
if _libs["grass_gis.8.5"].has("G_read_key_value_file", "cdecl"):
    G_read_key_value_file = _libs["grass_gis.8.5"].get("G_read_key_value_file", "cdecl")
    G_read_key_value_file.argtypes = [String]
    G_read_key_value_file.restype = POINTER(struct_Key_Value)

# include/grass/defs/gis.h: 436
if _libs["grass_gis.8.5"].has("G_update_key_value_file", "cdecl"):
    G_update_key_value_file = _libs["grass_gis.8.5"].get("G_update_key_value_file", "cdecl")
    G_update_key_value_file.argtypes = [String, String, String]
    G_update_key_value_file.restype = None

# include/grass/defs/gis.h: 437
if _libs["grass_gis.8.5"].has("G_lookup_key_value_from_file", "cdecl"):
    G_lookup_key_value_from_file = _libs["grass_gis.8.5"].get("G_lookup_key_value_from_file", "cdecl")
    G_lookup_key_value_from_file.argtypes = [String, String, POINTER(c_char), c_int]
    G_lookup_key_value_from_file.restype = c_int

# include/grass/defs/gis.h: 440
if _libs["grass_gis.8.5"].has("G_legal_filename", "cdecl"):
    G_legal_filename = _libs["grass_gis.8.5"].get("G_legal_filename", "cdecl")
    G_legal_filename.argtypes = [String]
    G_legal_filename.restype = c_int

# include/grass/defs/gis.h: 441
if _libs["grass_gis.8.5"].has("G_check_input_output_name", "cdecl"):
    G_check_input_output_name = _libs["grass_gis.8.5"].get("G_check_input_output_name", "cdecl")
    G_check_input_output_name.argtypes = [String, String, c_int]
    G_check_input_output_name.restype = c_int

# include/grass/defs/gis.h: 444
if _libs["grass_gis.8.5"].has("G_set_distance_to_line_tolerance", "cdecl"):
    G_set_distance_to_line_tolerance = _libs["grass_gis.8.5"].get("G_set_distance_to_line_tolerance", "cdecl")
    G_set_distance_to_line_tolerance.argtypes = [c_double]
    G_set_distance_to_line_tolerance.restype = None

# include/grass/defs/gis.h: 445
if _libs["grass_gis.8.5"].has("G_distance2_point_to_line", "cdecl"):
    G_distance2_point_to_line = _libs["grass_gis.8.5"].get("G_distance2_point_to_line", "cdecl")
    G_distance2_point_to_line.argtypes = [c_double, c_double, c_double, c_double, c_double, c_double]
    G_distance2_point_to_line.restype = c_double

# include/grass/defs/gis.h: 449
if _libs["grass_gis.8.5"].has("G_list_element", "cdecl"):
    G_list_element = _libs["grass_gis.8.5"].get("G_list_element", "cdecl")
    G_list_element.argtypes = [String, String, String, CFUNCTYPE(UNCHECKED(c_int), String, String, String)]
    G_list_element.restype = None

# include/grass/defs/gis.h: 451
if _libs["grass_gis.8.5"].has("G_list", "cdecl"):
    G_list = _libs["grass_gis.8.5"].get("G_list", "cdecl")
    G_list.argtypes = [c_int, String, String, String]
    G_list.restype = POINTER(POINTER(c_char))

# include/grass/defs/gis.h: 452
if _libs["grass_gis.8.5"].has("G_free_list", "cdecl"):
    G_free_list = _libs["grass_gis.8.5"].get("G_free_list", "cdecl")
    G_free_list.argtypes = [POINTER(POINTER(c_char))]
    G_free_list.restype = None

# include/grass/defs/gis.h: 455
if _libs["grass_gis.8.5"].has("G_lat_format", "cdecl"):
    G_lat_format = _libs["grass_gis.8.5"].get("G_lat_format", "cdecl")
    G_lat_format.argtypes = [c_double, String]
    G_lat_format.restype = None

# include/grass/defs/gis.h: 456
if _libs["grass_gis.8.5"].has("G_lat_format_string", "cdecl"):
    G_lat_format_string = _libs["grass_gis.8.5"].get("G_lat_format_string", "cdecl")
    G_lat_format_string.argtypes = []
    G_lat_format_string.restype = c_char_p

# include/grass/defs/gis.h: 457
if _libs["grass_gis.8.5"].has("G_lon_format", "cdecl"):
    G_lon_format = _libs["grass_gis.8.5"].get("G_lon_format", "cdecl")
    G_lon_format.argtypes = [c_double, String]
    G_lon_format.restype = None

# include/grass/defs/gis.h: 458
if _libs["grass_gis.8.5"].has("G_lon_format_string", "cdecl"):
    G_lon_format_string = _libs["grass_gis.8.5"].get("G_lon_format_string", "cdecl")
    G_lon_format_string.argtypes = []
    G_lon_format_string.restype = c_char_p

# include/grass/defs/gis.h: 459
if _libs["grass_gis.8.5"].has("G_llres_format", "cdecl"):
    G_llres_format = _libs["grass_gis.8.5"].get("G_llres_format", "cdecl")
    G_llres_format.argtypes = [c_double, String]
    G_llres_format.restype = None

# include/grass/defs/gis.h: 460
if _libs["grass_gis.8.5"].has("G_llres_format_string", "cdecl"):
    G_llres_format_string = _libs["grass_gis.8.5"].get("G_llres_format_string", "cdecl")
    G_llres_format_string.argtypes = []
    G_llres_format_string.restype = c_char_p

# include/grass/defs/gis.h: 461
if _libs["grass_gis.8.5"].has("G_lat_parts", "cdecl"):
    G_lat_parts = _libs["grass_gis.8.5"].get("G_lat_parts", "cdecl")
    G_lat_parts.argtypes = [c_double, POINTER(c_int), POINTER(c_int), POINTER(c_double), String]
    G_lat_parts.restype = None

# include/grass/defs/gis.h: 462
if _libs["grass_gis.8.5"].has("G_lon_parts", "cdecl"):
    G_lon_parts = _libs["grass_gis.8.5"].get("G_lon_parts", "cdecl")
    G_lon_parts.argtypes = [c_double, POINTER(c_int), POINTER(c_int), POINTER(c_double), String]
    G_lon_parts.restype = None

# include/grass/defs/gis.h: 465
if _libs["grass_gis.8.5"].has("G_lat_scan", "cdecl"):
    G_lat_scan = _libs["grass_gis.8.5"].get("G_lat_scan", "cdecl")
    G_lat_scan.argtypes = [String, POINTER(c_double)]
    G_lat_scan.restype = c_int

# include/grass/defs/gis.h: 466
if _libs["grass_gis.8.5"].has("G_lon_scan", "cdecl"):
    G_lon_scan = _libs["grass_gis.8.5"].get("G_lon_scan", "cdecl")
    G_lon_scan.argtypes = [String, POINTER(c_double)]
    G_lon_scan.restype = c_int

# include/grass/defs/gis.h: 467
if _libs["grass_gis.8.5"].has("G_llres_scan", "cdecl"):
    G_llres_scan = _libs["grass_gis.8.5"].get("G_llres_scan", "cdecl")
    G_llres_scan.argtypes = [String, POINTER(c_double)]
    G_llres_scan.restype = c_int

# include/grass/defs/gis.h: 470
if _libs["grass_gis.8.5"].has("G_location", "cdecl"):
    G_location = _libs["grass_gis.8.5"].get("G_location", "cdecl")
    G_location.argtypes = []
    G_location.restype = c_char_p

# include/grass/defs/gis.h: 471
if _libs["grass_gis.8.5"].has("G_location_path", "cdecl"):
    G_location_path = _libs["grass_gis.8.5"].get("G_location_path", "cdecl")
    G_location_path.argtypes = []
    if sizeof(c_int) == sizeof(c_void_p):
        G_location_path.restype = ReturnString
    else:
        G_location_path.restype = String
        G_location_path.errcheck = ReturnString

# include/grass/defs/gis.h: 474
if _libs["grass_gis.8.5"].has("G_srand48", "cdecl"):
    G_srand48 = _libs["grass_gis.8.5"].get("G_srand48", "cdecl")
    G_srand48.argtypes = [c_long]
    G_srand48.restype = None

# include/grass/defs/gis.h: 475
if _libs["grass_gis.8.5"].has("G_srand48_auto", "cdecl"):
    G_srand48_auto = _libs["grass_gis.8.5"].get("G_srand48_auto", "cdecl")
    G_srand48_auto.argtypes = []
    G_srand48_auto.restype = c_long

# include/grass/defs/gis.h: 476
if _libs["grass_gis.8.5"].has("G_lrand48", "cdecl"):
    G_lrand48 = _libs["grass_gis.8.5"].get("G_lrand48", "cdecl")
    G_lrand48.argtypes = []
    G_lrand48.restype = c_long

# include/grass/defs/gis.h: 477
if _libs["grass_gis.8.5"].has("G_mrand48", "cdecl"):
    G_mrand48 = _libs["grass_gis.8.5"].get("G_mrand48", "cdecl")
    G_mrand48.argtypes = []
    G_mrand48.restype = c_long

# include/grass/defs/gis.h: 478
if _libs["grass_gis.8.5"].has("G_drand48", "cdecl"):
    G_drand48 = _libs["grass_gis.8.5"].get("G_drand48", "cdecl")
    G_drand48.argtypes = []
    G_drand48.restype = c_double

# include/grass/defs/gis.h: 481
if _libs["grass_gis.8.5"].has("G_set_ls_filter", "cdecl"):
    G_set_ls_filter = _libs["grass_gis.8.5"].get("G_set_ls_filter", "cdecl")
    G_set_ls_filter.argtypes = [CFUNCTYPE(UNCHECKED(c_int), String, POINTER(None)), POINTER(None)]
    G_set_ls_filter.restype = None

# include/grass/defs/gis.h: 482
if _libs["grass_gis.8.5"].has("G_set_ls_exclude_filter", "cdecl"):
    G_set_ls_exclude_filter = _libs["grass_gis.8.5"].get("G_set_ls_exclude_filter", "cdecl")
    G_set_ls_exclude_filter.argtypes = [CFUNCTYPE(UNCHECKED(c_int), String, POINTER(None)), POINTER(None)]
    G_set_ls_exclude_filter.restype = None

# include/grass/defs/gis.h: 483
if _libs["grass_gis.8.5"].has("G_ls2", "cdecl"):
    G_ls2 = _libs["grass_gis.8.5"].get("G_ls2", "cdecl")
    G_ls2.argtypes = [String, POINTER(c_int)]
    G_ls2.restype = POINTER(POINTER(c_char))

# include/grass/defs/gis.h: 484
if _libs["grass_gis.8.5"].has("G_ls", "cdecl"):
    G_ls = _libs["grass_gis.8.5"].get("G_ls", "cdecl")
    G_ls.argtypes = [String, POINTER(FILE)]
    G_ls.restype = None

# include/grass/defs/gis.h: 485
if _libs["grass_gis.8.5"].has("G_ls_format", "cdecl"):
    G_ls_format = _libs["grass_gis.8.5"].get("G_ls_format", "cdecl")
    G_ls_format.argtypes = [POINTER(POINTER(c_char)), c_int, c_int, POINTER(FILE)]
    G_ls_format.restype = None

# include/grass/defs/gis.h: 489
if _libs["grass_gis.8.5"].has("G_ls_regex_filter", "cdecl"):
    G_ls_regex_filter = _libs["grass_gis.8.5"].get("G_ls_regex_filter", "cdecl")
    G_ls_regex_filter.argtypes = [String, c_int, c_int, c_int]
    G_ls_regex_filter.restype = POINTER(c_ubyte)
    G_ls_regex_filter.errcheck = lambda v,*a : cast(v, c_void_p)

# include/grass/defs/gis.h: 490
if _libs["grass_gis.8.5"].has("G_ls_glob_filter", "cdecl"):
    G_ls_glob_filter = _libs["grass_gis.8.5"].get("G_ls_glob_filter", "cdecl")
    G_ls_glob_filter.argtypes = [String, c_int, c_int]
    G_ls_glob_filter.restype = POINTER(c_ubyte)
    G_ls_glob_filter.errcheck = lambda v,*a : cast(v, c_void_p)

# include/grass/defs/gis.h: 491
if _libs["grass_gis.8.5"].has("G_free_ls_filter", "cdecl"):
    G_free_ls_filter = _libs["grass_gis.8.5"].get("G_free_ls_filter", "cdecl")
    G_free_ls_filter.argtypes = [POINTER(None)]
    G_free_ls_filter.restype = None

# include/grass/defs/gis.h: 495
if _libs["grass_gis.8.5"].has("G_make_location", "cdecl"):
    G_make_location = _libs["grass_gis.8.5"].get("G_make_location", "cdecl")
    G_make_location.argtypes = [String, POINTER(struct_Cell_head), POINTER(struct_Key_Value), POINTER(struct_Key_Value)]
    G_make_location.restype = c_int

# include/grass/defs/gis.h: 497
if _libs["grass_gis.8.5"].has("G_make_location_epsg", "cdecl"):
    G_make_location_epsg = _libs["grass_gis.8.5"].get("G_make_location_epsg", "cdecl")
    G_make_location_epsg.argtypes = [String, POINTER(struct_Cell_head), POINTER(struct_Key_Value), POINTER(struct_Key_Value), POINTER(struct_Key_Value)]
    G_make_location_epsg.restype = c_int

# include/grass/defs/gis.h: 500
if _libs["grass_gis.8.5"].has("G_make_location_crs", "cdecl"):
    G_make_location_crs = _libs["grass_gis.8.5"].get("G_make_location_crs", "cdecl")
    G_make_location_crs.argtypes = [String, POINTER(struct_Cell_head), POINTER(struct_Key_Value), POINTER(struct_Key_Value), String, String]
    G_make_location_crs.restype = c_int

# include/grass/defs/gis.h: 503
if _libs["grass_gis.8.5"].has("G_write_projsrid", "cdecl"):
    G_write_projsrid = _libs["grass_gis.8.5"].get("G_write_projsrid", "cdecl")
    G_write_projsrid.argtypes = [String, String]
    G_write_projsrid.restype = c_int

# include/grass/defs/gis.h: 504
if _libs["grass_gis.8.5"].has("G_write_projwkt", "cdecl"):
    G_write_projwkt = _libs["grass_gis.8.5"].get("G_write_projwkt", "cdecl")
    G_write_projwkt.argtypes = [String, String]
    G_write_projwkt.restype = c_int

# include/grass/defs/gis.h: 505
if _libs["grass_gis.8.5"].has("G_compare_projections", "cdecl"):
    G_compare_projections = _libs["grass_gis.8.5"].get("G_compare_projections", "cdecl")
    G_compare_projections.argtypes = [POINTER(struct_Key_Value), POINTER(struct_Key_Value), POINTER(struct_Key_Value), POINTER(struct_Key_Value)]
    G_compare_projections.restype = c_int

# include/grass/defs/gis.h: 509
if _libs["grass_gis.8.5"].has("G_make_mapset", "cdecl"):
    G_make_mapset = _libs["grass_gis.8.5"].get("G_make_mapset", "cdecl")
    G_make_mapset.argtypes = [String, String, String]
    G_make_mapset.restype = c_int

# include/grass/defs/gis.h: 512
if _libs["grass_gis.8.5"].has("G_tolcase", "cdecl"):
    G_tolcase = _libs["grass_gis.8.5"].get("G_tolcase", "cdecl")
    G_tolcase.argtypes = [String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_tolcase.restype = ReturnString
    else:
        G_tolcase.restype = String
        G_tolcase.errcheck = ReturnString

# include/grass/defs/gis.h: 513
if _libs["grass_gis.8.5"].has("G_toucase", "cdecl"):
    G_toucase = _libs["grass_gis.8.5"].get("G_toucase", "cdecl")
    G_toucase.argtypes = [String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_toucase.restype = ReturnString
    else:
        G_toucase.restype = String
        G_toucase.errcheck = ReturnString

# include/grass/defs/gis.h: 516
if _libs["grass_gis.8.5"].has("G_mapset", "cdecl"):
    G_mapset = _libs["grass_gis.8.5"].get("G_mapset", "cdecl")
    G_mapset.argtypes = []
    G_mapset.restype = c_char_p

# include/grass/defs/gis.h: 517
if _libs["grass_gis.8.5"].has("G_mapset_path", "cdecl"):
    G_mapset_path = _libs["grass_gis.8.5"].get("G_mapset_path", "cdecl")
    G_mapset_path.argtypes = []
    if sizeof(c_int) == sizeof(c_void_p):
        G_mapset_path.restype = ReturnString
    else:
        G_mapset_path.restype = String
        G_mapset_path.errcheck = ReturnString

# include/grass/defs/gis.h: 520
if _libs["grass_gis.8.5"].has("G_make_mapset_element", "cdecl"):
    G_make_mapset_element = _libs["grass_gis.8.5"].get("G_make_mapset_element", "cdecl")
    G_make_mapset_element.argtypes = [String]
    G_make_mapset_element.restype = c_int

# include/grass/defs/gis.h: 521
if _libs["grass_gis.8.5"].has("G_make_mapset_element_tmp", "cdecl"):
    G_make_mapset_element_tmp = _libs["grass_gis.8.5"].get("G_make_mapset_element_tmp", "cdecl")
    G_make_mapset_element_tmp.argtypes = [String]
    G_make_mapset_element_tmp.restype = c_int

# include/grass/defs/gis.h: 522
if _libs["grass_gis.8.5"].has("G_make_mapset_object_group", "cdecl"):
    G_make_mapset_object_group = _libs["grass_gis.8.5"].get("G_make_mapset_object_group", "cdecl")
    G_make_mapset_object_group.argtypes = [String]
    G_make_mapset_object_group.restype = c_int

# include/grass/defs/gis.h: 523
if _libs["grass_gis.8.5"].has("G_make_mapset_dir_object", "cdecl"):
    G_make_mapset_dir_object = _libs["grass_gis.8.5"].get("G_make_mapset_dir_object", "cdecl")
    G_make_mapset_dir_object.argtypes = [String, String]
    G_make_mapset_dir_object.restype = c_int

# include/grass/defs/gis.h: 524
if _libs["grass_gis.8.5"].has("G_make_mapset_object_group_tmp", "cdecl"):
    G_make_mapset_object_group_tmp = _libs["grass_gis.8.5"].get("G_make_mapset_object_group_tmp", "cdecl")
    G_make_mapset_object_group_tmp.argtypes = [String]
    G_make_mapset_object_group_tmp.restype = c_int

# include/grass/defs/gis.h: 525
if _libs["grass_gis.8.5"].has("G_make_mapset_object_group_basedir", "cdecl"):
    G_make_mapset_object_group_basedir = _libs["grass_gis.8.5"].get("G_make_mapset_object_group_basedir", "cdecl")
    G_make_mapset_object_group_basedir.argtypes = [String, String]
    G_make_mapset_object_group_basedir.restype = c_int

# include/grass/defs/gis.h: 526
if _libs["grass_gis.8.5"].has("G__make_mapset_element_misc", "cdecl"):
    G__make_mapset_element_misc = _libs["grass_gis.8.5"].get("G__make_mapset_element_misc", "cdecl")
    G__make_mapset_element_misc.argtypes = [String, String]
    G__make_mapset_element_misc.restype = c_int

# include/grass/defs/gis.h: 527
if _libs["grass_gis.8.5"].has("G_mapset_permissions", "cdecl"):
    G_mapset_permissions = _libs["grass_gis.8.5"].get("G_mapset_permissions", "cdecl")
    G_mapset_permissions.argtypes = [String]
    G_mapset_permissions.restype = c_int

# include/grass/defs/gis.h: 528
if _libs["grass_gis.8.5"].has("G_mapset_permissions2", "cdecl"):
    G_mapset_permissions2 = _libs["grass_gis.8.5"].get("G_mapset_permissions2", "cdecl")
    G_mapset_permissions2.argtypes = [String, String, String]
    G_mapset_permissions2.restype = c_int

# include/grass/defs/gis.h: 531
if _libs["grass_gis.8.5"].has("G_get_mapset_name", "cdecl"):
    G_get_mapset_name = _libs["grass_gis.8.5"].get("G_get_mapset_name", "cdecl")
    G_get_mapset_name.argtypes = [c_int]
    G_get_mapset_name.restype = c_char_p

# include/grass/defs/gis.h: 532
if _libs["grass_gis.8.5"].has("G_create_alt_search_path", "cdecl"):
    G_create_alt_search_path = _libs["grass_gis.8.5"].get("G_create_alt_search_path", "cdecl")
    G_create_alt_search_path.argtypes = []
    G_create_alt_search_path.restype = None

# include/grass/defs/gis.h: 533
if _libs["grass_gis.8.5"].has("G_switch_search_path", "cdecl"):
    G_switch_search_path = _libs["grass_gis.8.5"].get("G_switch_search_path", "cdecl")
    G_switch_search_path.argtypes = []
    G_switch_search_path.restype = None

# include/grass/defs/gis.h: 534
if _libs["grass_gis.8.5"].has("G_reset_mapsets", "cdecl"):
    G_reset_mapsets = _libs["grass_gis.8.5"].get("G_reset_mapsets", "cdecl")
    G_reset_mapsets.argtypes = []
    G_reset_mapsets.restype = None

# include/grass/defs/gis.h: 535
if _libs["grass_gis.8.5"].has("G_get_available_mapsets", "cdecl"):
    G_get_available_mapsets = _libs["grass_gis.8.5"].get("G_get_available_mapsets", "cdecl")
    G_get_available_mapsets.argtypes = []
    G_get_available_mapsets.restype = POINTER(POINTER(c_char))

# include/grass/defs/gis.h: 536
if _libs["grass_gis.8.5"].has("G_add_mapset_to_search_path", "cdecl"):
    G_add_mapset_to_search_path = _libs["grass_gis.8.5"].get("G_add_mapset_to_search_path", "cdecl")
    G_add_mapset_to_search_path.argtypes = [String]
    G_add_mapset_to_search_path.restype = None

# include/grass/defs/gis.h: 537
if _libs["grass_gis.8.5"].has("G_is_mapset_in_search_path", "cdecl"):
    G_is_mapset_in_search_path = _libs["grass_gis.8.5"].get("G_is_mapset_in_search_path", "cdecl")
    G_is_mapset_in_search_path.argtypes = [String]
    G_is_mapset_in_search_path.restype = c_int

# include/grass/defs/gis.h: 540
if _libs["grass_gis.8.5"].has("G_myname", "cdecl"):
    G_myname = _libs["grass_gis.8.5"].get("G_myname", "cdecl")
    G_myname.argtypes = []
    if sizeof(c_int) == sizeof(c_void_p):
        G_myname.restype = ReturnString
    else:
        G_myname.restype = String
        G_myname.errcheck = ReturnString

# include/grass/defs/gis.h: 543
if _libs["grass_gis.8.5"].has("G_color_values", "cdecl"):
    G_color_values = _libs["grass_gis.8.5"].get("G_color_values", "cdecl")
    G_color_values.argtypes = [String, POINTER(c_float), POINTER(c_float), POINTER(c_float)]
    G_color_values.restype = c_int

# include/grass/defs/gis.h: 544
if _libs["grass_gis.8.5"].has("G_color_name", "cdecl"):
    G_color_name = _libs["grass_gis.8.5"].get("G_color_name", "cdecl")
    G_color_name.argtypes = [c_int]
    G_color_name.restype = c_char_p

# include/grass/defs/gis.h: 547
if _libs["grass_gis.8.5"].has("G_newlines_to_spaces", "cdecl"):
    G_newlines_to_spaces = _libs["grass_gis.8.5"].get("G_newlines_to_spaces", "cdecl")
    G_newlines_to_spaces.argtypes = [String]
    G_newlines_to_spaces.restype = None

# include/grass/defs/gis.h: 550
if _libs["grass_gis.8.5"].has("G_name_is_fully_qualified", "cdecl"):
    G_name_is_fully_qualified = _libs["grass_gis.8.5"].get("G_name_is_fully_qualified", "cdecl")
    G_name_is_fully_qualified.argtypes = [String, String, String]
    G_name_is_fully_qualified.restype = c_int

# include/grass/defs/gis.h: 551
if _libs["grass_gis.8.5"].has("G_fully_qualified_name", "cdecl"):
    G_fully_qualified_name = _libs["grass_gis.8.5"].get("G_fully_qualified_name", "cdecl")
    G_fully_qualified_name.argtypes = [String, String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_fully_qualified_name.restype = ReturnString
    else:
        G_fully_qualified_name.restype = String
        G_fully_qualified_name.errcheck = ReturnString

# include/grass/defs/gis.h: 552
if _libs["grass_gis.8.5"].has("G_unqualified_name", "cdecl"):
    G_unqualified_name = _libs["grass_gis.8.5"].get("G_unqualified_name", "cdecl")
    G_unqualified_name.argtypes = [String, String, String, String]
    G_unqualified_name.restype = c_int

# include/grass/defs/gis.h: 555
if _libs["grass_gis.8.5"].has("G_set_omp_num_threads", "cdecl"):
    G_set_omp_num_threads = _libs["grass_gis.8.5"].get("G_set_omp_num_threads", "cdecl")
    G_set_omp_num_threads.argtypes = [POINTER(struct_Option)]
    G_set_omp_num_threads.restype = c_int

# include/grass/defs/gis.h: 558
if _libs["grass_gis.8.5"].has("G_open_new", "cdecl"):
    G_open_new = _libs["grass_gis.8.5"].get("G_open_new", "cdecl")
    G_open_new.argtypes = [String, String]
    G_open_new.restype = c_int

# include/grass/defs/gis.h: 559
if _libs["grass_gis.8.5"].has("G_open_old", "cdecl"):
    G_open_old = _libs["grass_gis.8.5"].get("G_open_old", "cdecl")
    G_open_old.argtypes = [String, String, String]
    G_open_old.restype = c_int

# include/grass/defs/gis.h: 560
if _libs["grass_gis.8.5"].has("G_open_update", "cdecl"):
    G_open_update = _libs["grass_gis.8.5"].get("G_open_update", "cdecl")
    G_open_update.argtypes = [String, String]
    G_open_update.restype = c_int

# include/grass/defs/gis.h: 561
if _libs["grass_gis.8.5"].has("G_fopen_new", "cdecl"):
    G_fopen_new = _libs["grass_gis.8.5"].get("G_fopen_new", "cdecl")
    G_fopen_new.argtypes = [String, String]
    G_fopen_new.restype = POINTER(FILE)

# include/grass/defs/gis.h: 562
if _libs["grass_gis.8.5"].has("G_fopen_old", "cdecl"):
    G_fopen_old = _libs["grass_gis.8.5"].get("G_fopen_old", "cdecl")
    G_fopen_old.argtypes = [String, String, String]
    G_fopen_old.restype = POINTER(FILE)

# include/grass/defs/gis.h: 563
if _libs["grass_gis.8.5"].has("G_fopen_append", "cdecl"):
    G_fopen_append = _libs["grass_gis.8.5"].get("G_fopen_append", "cdecl")
    G_fopen_append.argtypes = [String, String]
    G_fopen_append.restype = POINTER(FILE)

# include/grass/defs/gis.h: 564
if _libs["grass_gis.8.5"].has("G_fopen_modify", "cdecl"):
    G_fopen_modify = _libs["grass_gis.8.5"].get("G_fopen_modify", "cdecl")
    G_fopen_modify.argtypes = [String, String]
    G_fopen_modify.restype = POINTER(FILE)

# include/grass/defs/gis.h: 567
if _libs["grass_gis.8.5"].has("G_open_new_misc", "cdecl"):
    G_open_new_misc = _libs["grass_gis.8.5"].get("G_open_new_misc", "cdecl")
    G_open_new_misc.argtypes = [String, String, String]
    G_open_new_misc.restype = c_int

# include/grass/defs/gis.h: 568
if _libs["grass_gis.8.5"].has("G_open_old_misc", "cdecl"):
    G_open_old_misc = _libs["grass_gis.8.5"].get("G_open_old_misc", "cdecl")
    G_open_old_misc.argtypes = [String, String, String, String]
    G_open_old_misc.restype = c_int

# include/grass/defs/gis.h: 569
if _libs["grass_gis.8.5"].has("G_open_update_misc", "cdecl"):
    G_open_update_misc = _libs["grass_gis.8.5"].get("G_open_update_misc", "cdecl")
    G_open_update_misc.argtypes = [String, String, String]
    G_open_update_misc.restype = c_int

# include/grass/defs/gis.h: 570
if _libs["grass_gis.8.5"].has("G_fopen_new_misc", "cdecl"):
    G_fopen_new_misc = _libs["grass_gis.8.5"].get("G_fopen_new_misc", "cdecl")
    G_fopen_new_misc.argtypes = [String, String, String]
    G_fopen_new_misc.restype = POINTER(FILE)

# include/grass/defs/gis.h: 571
if _libs["grass_gis.8.5"].has("G_fopen_old_misc", "cdecl"):
    G_fopen_old_misc = _libs["grass_gis.8.5"].get("G_fopen_old_misc", "cdecl")
    G_fopen_old_misc.argtypes = [String, String, String, String]
    G_fopen_old_misc.restype = POINTER(FILE)

# include/grass/defs/gis.h: 572
if _libs["grass_gis.8.5"].has("G_fopen_append_misc", "cdecl"):
    G_fopen_append_misc = _libs["grass_gis.8.5"].get("G_fopen_append_misc", "cdecl")
    G_fopen_append_misc.argtypes = [String, String, String]
    G_fopen_append_misc.restype = POINTER(FILE)

# include/grass/defs/gis.h: 573
if _libs["grass_gis.8.5"].has("G_fopen_modify_misc", "cdecl"):
    G_fopen_modify_misc = _libs["grass_gis.8.5"].get("G_fopen_modify_misc", "cdecl")
    G_fopen_modify_misc.argtypes = [String, String, String]
    G_fopen_modify_misc.restype = POINTER(FILE)

# include/grass/defs/gis.h: 576
if _libs["grass_gis.8.5"].has("G_check_overwrite", "cdecl"):
    G_check_overwrite = _libs["grass_gis.8.5"].get("G_check_overwrite", "cdecl")
    G_check_overwrite.argtypes = [c_int, POINTER(POINTER(c_char))]
    G_check_overwrite.restype = c_int

# include/grass/defs/gis.h: 579
if _libs["grass_gis.8.5"].has("G_open_pager", "cdecl"):
    G_open_pager = _libs["grass_gis.8.5"].get("G_open_pager", "cdecl")
    G_open_pager.argtypes = [POINTER(struct_Popen)]
    G_open_pager.restype = POINTER(FILE)

# include/grass/defs/gis.h: 580
if _libs["grass_gis.8.5"].has("G_close_pager", "cdecl"):
    G_close_pager = _libs["grass_gis.8.5"].get("G_close_pager", "cdecl")
    G_close_pager.argtypes = [POINTER(struct_Popen)]
    G_close_pager.restype = None

# include/grass/defs/gis.h: 581
if _libs["grass_gis.8.5"].has("G_open_mail", "cdecl"):
    G_open_mail = _libs["grass_gis.8.5"].get("G_open_mail", "cdecl")
    G_open_mail.argtypes = [POINTER(struct_Popen)]
    G_open_mail.restype = POINTER(FILE)

# include/grass/defs/gis.h: 582
if _libs["grass_gis.8.5"].has("G_close_mail", "cdecl"):
    G_close_mail = _libs["grass_gis.8.5"].get("G_close_mail", "cdecl")
    G_close_mail.argtypes = [POINTER(struct_Popen)]
    G_close_mail.restype = None

# include/grass/defs/gis.h: 585
if _libs["grass_gis.8.5"].has("G_disable_interactive", "cdecl"):
    G_disable_interactive = _libs["grass_gis.8.5"].get("G_disable_interactive", "cdecl")
    G_disable_interactive.argtypes = []
    G_disable_interactive.restype = None

# include/grass/defs/gis.h: 586
if _libs["grass_gis.8.5"].has("G_define_module", "cdecl"):
    G_define_module = _libs["grass_gis.8.5"].get("G_define_module", "cdecl")
    G_define_module.argtypes = []
    G_define_module.restype = POINTER(struct_GModule)

# include/grass/defs/gis.h: 587
if _libs["grass_gis.8.5"].has("G_define_flag", "cdecl"):
    G_define_flag = _libs["grass_gis.8.5"].get("G_define_flag", "cdecl")
    G_define_flag.argtypes = []
    G_define_flag.restype = POINTER(struct_Flag)

# include/grass/defs/gis.h: 588
if _libs["grass_gis.8.5"].has("G_define_option", "cdecl"):
    G_define_option = _libs["grass_gis.8.5"].get("G_define_option", "cdecl")
    G_define_option.argtypes = []
    G_define_option.restype = POINTER(struct_Option)

# include/grass/defs/gis.h: 589
if _libs["grass_gis.8.5"].has("G_define_standard_option", "cdecl"):
    G_define_standard_option = _libs["grass_gis.8.5"].get("G_define_standard_option", "cdecl")
    G_define_standard_option.argtypes = [c_int]
    G_define_standard_option.restype = POINTER(struct_Option)

# include/grass/defs/gis.h: 590
if _libs["grass_gis.8.5"].has("G_define_standard_flag", "cdecl"):
    G_define_standard_flag = _libs["grass_gis.8.5"].get("G_define_standard_flag", "cdecl")
    G_define_standard_flag.argtypes = [c_int]
    G_define_standard_flag.restype = POINTER(struct_Flag)

# include/grass/defs/gis.h: 591
if _libs["grass_gis.8.5"].has("G_parser", "cdecl"):
    G_parser = _libs["grass_gis.8.5"].get("G_parser", "cdecl")
    G_parser.argtypes = [c_int, POINTER(POINTER(c_char))]
    G_parser.restype = c_int

# include/grass/defs/gis.h: 592
if _libs["grass_gis.8.5"].has("G_usage", "cdecl"):
    G_usage = _libs["grass_gis.8.5"].get("G_usage", "cdecl")
    G_usage.argtypes = []
    G_usage.restype = None

# include/grass/defs/gis.h: 593
if _libs["grass_gis.8.5"].has("G_recreate_command", "cdecl"):
    G_recreate_command = _libs["grass_gis.8.5"].get("G_recreate_command", "cdecl")
    G_recreate_command.argtypes = []
    if sizeof(c_int) == sizeof(c_void_p):
        G_recreate_command.restype = ReturnString
    else:
        G_recreate_command.restype = String
        G_recreate_command.errcheck = ReturnString

# include/grass/defs/gis.h: 594
if _libs["grass_gis.8.5"].has("G_add_keyword", "cdecl"):
    G_add_keyword = _libs["grass_gis.8.5"].get("G_add_keyword", "cdecl")
    G_add_keyword.argtypes = [String]
    G_add_keyword.restype = None

# include/grass/defs/gis.h: 595
if _libs["grass_gis.8.5"].has("G_set_keywords", "cdecl"):
    G_set_keywords = _libs["grass_gis.8.5"].get("G_set_keywords", "cdecl")
    G_set_keywords.argtypes = [String]
    G_set_keywords.restype = None

# include/grass/defs/gis.h: 596
if _libs["grass_gis.8.5"].has("G_get_overwrite", "cdecl"):
    G_get_overwrite = _libs["grass_gis.8.5"].get("G_get_overwrite", "cdecl")
    G_get_overwrite.argtypes = []
    G_get_overwrite.restype = c_int

# include/grass/defs/gis.h: 597
if _libs["grass_gis.8.5"].has("G_option_to_separator", "cdecl"):
    G_option_to_separator = _libs["grass_gis.8.5"].get("G_option_to_separator", "cdecl")
    G_option_to_separator.argtypes = [POINTER(struct_Option)]
    if sizeof(c_int) == sizeof(c_void_p):
        G_option_to_separator.restype = ReturnString
    else:
        G_option_to_separator.restype = String
        G_option_to_separator.errcheck = ReturnString

# include/grass/defs/gis.h: 598
if _libs["grass_gis.8.5"].has("G_open_option_file", "cdecl"):
    G_open_option_file = _libs["grass_gis.8.5"].get("G_open_option_file", "cdecl")
    G_open_option_file.argtypes = [POINTER(struct_Option)]
    G_open_option_file.restype = POINTER(FILE)

# include/grass/defs/gis.h: 599
if _libs["grass_gis.8.5"].has("G_close_option_file", "cdecl"):
    G_close_option_file = _libs["grass_gis.8.5"].get("G_close_option_file", "cdecl")
    G_close_option_file.argtypes = [POINTER(FILE)]
    G_close_option_file.restype = None

# include/grass/defs/gis.h: 602
if _libs["grass_gis.8.5"].has("G_option_rule", "cdecl"):
    G_option_rule = _libs["grass_gis.8.5"].get("G_option_rule", "cdecl")
    G_option_rule.argtypes = [c_int, c_int, POINTER(POINTER(None))]
    G_option_rule.restype = None

# include/grass/defs/gis.h: 603
if _libs["grass_gis.8.5"].has("G_option_exclusive", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_option_exclusive", "cdecl")
    _restype = None
    _errcheck = None
    _argtypes = [POINTER(None)]
    G_option_exclusive = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 604
if _libs["grass_gis.8.5"].has("G_option_required", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_option_required", "cdecl")
    _restype = None
    _errcheck = None
    _argtypes = [POINTER(None)]
    G_option_required = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 605
if _libs["grass_gis.8.5"].has("G_option_requires", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_option_requires", "cdecl")
    _restype = None
    _errcheck = None
    _argtypes = [POINTER(None)]
    G_option_requires = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 606
if _libs["grass_gis.8.5"].has("G_option_requires_all", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_option_requires_all", "cdecl")
    _restype = None
    _errcheck = None
    _argtypes = [POINTER(None)]
    G_option_requires_all = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 607
if _libs["grass_gis.8.5"].has("G_option_excludes", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_option_excludes", "cdecl")
    _restype = None
    _errcheck = None
    _argtypes = [POINTER(None)]
    G_option_excludes = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 608
if _libs["grass_gis.8.5"].has("G_option_collective", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_option_collective", "cdecl")
    _restype = None
    _errcheck = None
    _argtypes = [POINTER(None)]
    G_option_collective = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 611
if _libs["grass_gis.8.5"].has("G_mkdir", "cdecl"):
    G_mkdir = _libs["grass_gis.8.5"].get("G_mkdir", "cdecl")
    G_mkdir.argtypes = [String]
    G_mkdir.restype = c_int

# include/grass/defs/gis.h: 612
if _libs["grass_gis.8.5"].has("G_is_dirsep", "cdecl"):
    G_is_dirsep = _libs["grass_gis.8.5"].get("G_is_dirsep", "cdecl")
    G_is_dirsep.argtypes = [c_char]
    G_is_dirsep.restype = c_int

# include/grass/defs/gis.h: 613
if _libs["grass_gis.8.5"].has("G_is_absolute_path", "cdecl"):
    G_is_absolute_path = _libs["grass_gis.8.5"].get("G_is_absolute_path", "cdecl")
    G_is_absolute_path.argtypes = [String]
    G_is_absolute_path.restype = c_int

# include/grass/defs/gis.h: 614
if _libs["grass_gis.8.5"].has("G_convert_dirseps_to_host", "cdecl"):
    G_convert_dirseps_to_host = _libs["grass_gis.8.5"].get("G_convert_dirseps_to_host", "cdecl")
    G_convert_dirseps_to_host.argtypes = [String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_convert_dirseps_to_host.restype = ReturnString
    else:
        G_convert_dirseps_to_host.restype = String
        G_convert_dirseps_to_host.errcheck = ReturnString

# include/grass/defs/gis.h: 615
if _libs["grass_gis.8.5"].has("G_convert_dirseps_from_host", "cdecl"):
    G_convert_dirseps_from_host = _libs["grass_gis.8.5"].get("G_convert_dirseps_from_host", "cdecl")
    G_convert_dirseps_from_host.argtypes = [String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_convert_dirseps_from_host.restype = ReturnString
    else:
        G_convert_dirseps_from_host.restype = String
        G_convert_dirseps_from_host.errcheck = ReturnString

# include/grass/defs/gis.h: 616
if _libs["grass_gis.8.5"].has("G_lstat", "cdecl"):
    G_lstat = _libs["grass_gis.8.5"].get("G_lstat", "cdecl")
    G_lstat.argtypes = [String, POINTER(struct_stat)]
    G_lstat.restype = c_int

# include/grass/defs/gis.h: 617
if _libs["grass_gis.8.5"].has("G_stat", "cdecl"):
    G_stat = _libs["grass_gis.8.5"].get("G_stat", "cdecl")
    G_stat.argtypes = [String, POINTER(struct_stat)]
    G_stat.restype = c_int

# include/grass/defs/gis.h: 618
if _libs["grass_gis.8.5"].has("G_owner", "cdecl"):
    G_owner = _libs["grass_gis.8.5"].get("G_owner", "cdecl")
    G_owner.argtypes = [String]
    G_owner.restype = c_int

# include/grass/defs/gis.h: 621
if _libs["grass_gis.8.5"].has("G_percent", "cdecl"):
    G_percent = _libs["grass_gis.8.5"].get("G_percent", "cdecl")
    G_percent.argtypes = [c_long, c_long, c_int]
    G_percent.restype = None

# include/grass/defs/gis.h: 622
if _libs["grass_gis.8.5"].has("G_percent_reset", "cdecl"):
    G_percent_reset = _libs["grass_gis.8.5"].get("G_percent_reset", "cdecl")
    G_percent_reset.argtypes = []
    G_percent_reset.restype = None

# include/grass/defs/gis.h: 623
if _libs["grass_gis.8.5"].has("G_progress", "cdecl"):
    G_progress = _libs["grass_gis.8.5"].get("G_progress", "cdecl")
    G_progress.argtypes = [c_long, c_int]
    G_progress.restype = None

# include/grass/defs/gis.h: 624
if _libs["grass_gis.8.5"].has("G_set_percent_routine", "cdecl"):
    G_set_percent_routine = _libs["grass_gis.8.5"].get("G_set_percent_routine", "cdecl")
    G_set_percent_routine.argtypes = [CFUNCTYPE(UNCHECKED(c_int), c_int)]
    G_set_percent_routine.restype = None

# include/grass/defs/gis.h: 625
if _libs["grass_gis.8.5"].has("G_unset_percent_routine", "cdecl"):
    G_unset_percent_routine = _libs["grass_gis.8.5"].get("G_unset_percent_routine", "cdecl")
    G_unset_percent_routine.argtypes = []
    G_unset_percent_routine.restype = None

# include/grass/defs/gis.h: 628
if _libs["grass_gis.8.5"].has("G_popen_clear", "cdecl"):
    G_popen_clear = _libs["grass_gis.8.5"].get("G_popen_clear", "cdecl")
    G_popen_clear.argtypes = [POINTER(struct_Popen)]
    G_popen_clear.restype = None

# include/grass/defs/gis.h: 629
if _libs["grass_gis.8.5"].has("G_popen_write", "cdecl"):
    G_popen_write = _libs["grass_gis.8.5"].get("G_popen_write", "cdecl")
    G_popen_write.argtypes = [POINTER(struct_Popen), String, POINTER(POINTER(c_char))]
    G_popen_write.restype = POINTER(FILE)

# include/grass/defs/gis.h: 630
if _libs["grass_gis.8.5"].has("G_popen_read", "cdecl"):
    G_popen_read = _libs["grass_gis.8.5"].get("G_popen_read", "cdecl")
    G_popen_read.argtypes = [POINTER(struct_Popen), String, POINTER(POINTER(c_char))]
    G_popen_read.restype = POINTER(FILE)

# include/grass/defs/gis.h: 631
if _libs["grass_gis.8.5"].has("G_popen_close", "cdecl"):
    G_popen_close = _libs["grass_gis.8.5"].get("G_popen_close", "cdecl")
    G_popen_close.argtypes = [POINTER(struct_Popen)]
    G_popen_close.restype = None

# include/grass/defs/gis.h: 634
if _libs["grass_gis.8.5"].has("G_setup_plot", "cdecl"):
    G_setup_plot = _libs["grass_gis.8.5"].get("G_setup_plot", "cdecl")
    G_setup_plot.argtypes = [c_double, c_double, c_double, c_double, CFUNCTYPE(UNCHECKED(c_int), c_int, c_int), CFUNCTYPE(UNCHECKED(c_int), c_int, c_int)]
    G_setup_plot.restype = None

# include/grass/defs/gis.h: 636
if _libs["grass_gis.8.5"].has("G_setup_fill", "cdecl"):
    G_setup_fill = _libs["grass_gis.8.5"].get("G_setup_fill", "cdecl")
    G_setup_fill.argtypes = [c_int]
    G_setup_fill.restype = None

# include/grass/defs/gis.h: 637
if _libs["grass_gis.8.5"].has("G_plot_where_xy", "cdecl"):
    G_plot_where_xy = _libs["grass_gis.8.5"].get("G_plot_where_xy", "cdecl")
    G_plot_where_xy.argtypes = [c_double, c_double, POINTER(c_int), POINTER(c_int)]
    G_plot_where_xy.restype = None

# include/grass/defs/gis.h: 638
if _libs["grass_gis.8.5"].has("G_plot_where_en", "cdecl"):
    G_plot_where_en = _libs["grass_gis.8.5"].get("G_plot_where_en", "cdecl")
    G_plot_where_en.argtypes = [c_int, c_int, POINTER(c_double), POINTER(c_double)]
    G_plot_where_en.restype = None

# include/grass/defs/gis.h: 639
if _libs["grass_gis.8.5"].has("G_plot_point", "cdecl"):
    G_plot_point = _libs["grass_gis.8.5"].get("G_plot_point", "cdecl")
    G_plot_point.argtypes = [c_double, c_double]
    G_plot_point.restype = None

# include/grass/defs/gis.h: 640
if _libs["grass_gis.8.5"].has("G_plot_line", "cdecl"):
    G_plot_line = _libs["grass_gis.8.5"].get("G_plot_line", "cdecl")
    G_plot_line.argtypes = [c_double, c_double, c_double, c_double]
    G_plot_line.restype = None

# include/grass/defs/gis.h: 641
if _libs["grass_gis.8.5"].has("G_plot_line2", "cdecl"):
    G_plot_line2 = _libs["grass_gis.8.5"].get("G_plot_line2", "cdecl")
    G_plot_line2.argtypes = [c_double, c_double, c_double, c_double]
    G_plot_line2.restype = None

# include/grass/defs/gis.h: 642
if _libs["grass_gis.8.5"].has("G_plot_polygon", "cdecl"):
    G_plot_polygon = _libs["grass_gis.8.5"].get("G_plot_polygon", "cdecl")
    G_plot_polygon.argtypes = [POINTER(c_double), POINTER(c_double), c_int]
    G_plot_polygon.restype = c_int

# include/grass/defs/gis.h: 643
if _libs["grass_gis.8.5"].has("G_plot_area", "cdecl"):
    G_plot_area = _libs["grass_gis.8.5"].get("G_plot_area", "cdecl")
    G_plot_area.argtypes = [POINTER(POINTER(c_double)), POINTER(POINTER(c_double)), POINTER(c_int), c_int]
    G_plot_area.restype = c_int

# include/grass/defs/gis.h: 644
if _libs["grass_gis.8.5"].has("G_plot_fx", "cdecl"):
    G_plot_fx = _libs["grass_gis.8.5"].get("G_plot_fx", "cdecl")
    G_plot_fx.argtypes = [CFUNCTYPE(UNCHECKED(c_double), c_double), c_double, c_double]
    G_plot_fx.restype = None

# include/grass/defs/gis.h: 647
if _libs["grass_gis.8.5"].has("G_pole_in_polygon", "cdecl"):
    G_pole_in_polygon = _libs["grass_gis.8.5"].get("G_pole_in_polygon", "cdecl")
    G_pole_in_polygon.argtypes = [POINTER(c_double), POINTER(c_double), c_int]
    G_pole_in_polygon.restype = c_int

# include/grass/defs/gis.h: 650
if _libs["grass_gis.8.5"].has("G_program_name", "cdecl"):
    G_program_name = _libs["grass_gis.8.5"].get("G_program_name", "cdecl")
    G_program_name.argtypes = []
    G_program_name.restype = c_char_p

# include/grass/defs/gis.h: 651
if _libs["grass_gis.8.5"].has("G_original_program_name", "cdecl"):
    G_original_program_name = _libs["grass_gis.8.5"].get("G_original_program_name", "cdecl")
    G_original_program_name.argtypes = []
    G_original_program_name.restype = c_char_p

# include/grass/defs/gis.h: 652
if _libs["grass_gis.8.5"].has("G_set_program_name", "cdecl"):
    G_set_program_name = _libs["grass_gis.8.5"].get("G_set_program_name", "cdecl")
    G_set_program_name.argtypes = [String]
    G_set_program_name.restype = None

# include/grass/defs/gis.h: 655
if _libs["grass_gis.8.5"].has("G_projection", "cdecl"):
    G_projection = _libs["grass_gis.8.5"].get("G_projection", "cdecl")
    G_projection.argtypes = []
    G_projection.restype = c_int

# include/grass/defs/gis.h: 658
if _libs["grass_gis.8.5"].has("G_projection_units", "cdecl"):
    G_projection_units = _libs["grass_gis.8.5"].get("G_projection_units", "cdecl")
    G_projection_units.argtypes = [c_int]
    G_projection_units.restype = c_int

# include/grass/defs/gis.h: 659
if _libs["grass_gis.8.5"].has("G_projection_name", "cdecl"):
    G_projection_name = _libs["grass_gis.8.5"].get("G_projection_name", "cdecl")
    G_projection_name.argtypes = [c_int]
    G_projection_name.restype = c_char_p

# include/grass/defs/gis.h: 662
if _libs["grass_gis.8.5"].has("G_database_unit_name", "cdecl"):
    G_database_unit_name = _libs["grass_gis.8.5"].get("G_database_unit_name", "cdecl")
    G_database_unit_name.argtypes = [c_int]
    G_database_unit_name.restype = c_char_p

# include/grass/defs/gis.h: 663
if _libs["grass_gis.8.5"].has("G_database_unit", "cdecl"):
    G_database_unit = _libs["grass_gis.8.5"].get("G_database_unit", "cdecl")
    G_database_unit.argtypes = []
    G_database_unit.restype = c_int

# include/grass/defs/gis.h: 664
if _libs["grass_gis.8.5"].has("G_database_projection_name", "cdecl"):
    G_database_projection_name = _libs["grass_gis.8.5"].get("G_database_projection_name", "cdecl")
    G_database_projection_name.argtypes = []
    G_database_projection_name.restype = c_char_p

# include/grass/defs/gis.h: 665
if _libs["grass_gis.8.5"].has("G_database_datum_name", "cdecl"):
    G_database_datum_name = _libs["grass_gis.8.5"].get("G_database_datum_name", "cdecl")
    G_database_datum_name.argtypes = []
    G_database_datum_name.restype = c_char_p

# include/grass/defs/gis.h: 666
if _libs["grass_gis.8.5"].has("G_database_ellipse_name", "cdecl"):
    G_database_ellipse_name = _libs["grass_gis.8.5"].get("G_database_ellipse_name", "cdecl")
    G_database_ellipse_name.argtypes = []
    G_database_ellipse_name.restype = c_char_p

# include/grass/defs/gis.h: 667
if _libs["grass_gis.8.5"].has("G_database_units_to_meters_factor", "cdecl"):
    G_database_units_to_meters_factor = _libs["grass_gis.8.5"].get("G_database_units_to_meters_factor", "cdecl")
    G_database_units_to_meters_factor.argtypes = []
    G_database_units_to_meters_factor.restype = c_double

# include/grass/defs/gis.h: 668
if _libs["grass_gis.8.5"].has("G_database_epsg_code", "cdecl"):
    G_database_epsg_code = _libs["grass_gis.8.5"].get("G_database_epsg_code", "cdecl")
    G_database_epsg_code.argtypes = []
    G_database_epsg_code.restype = c_char_p

# include/grass/defs/gis.h: 671
if _libs["grass_gis.8.5"].has("G_put_window", "cdecl"):
    G_put_window = _libs["grass_gis.8.5"].get("G_put_window", "cdecl")
    G_put_window.argtypes = [POINTER(struct_Cell_head)]
    G_put_window.restype = c_int

# include/grass/defs/gis.h: 672
if _libs["grass_gis.8.5"].has("G_put_element_window", "cdecl"):
    G_put_element_window = _libs["grass_gis.8.5"].get("G_put_element_window", "cdecl")
    G_put_element_window.argtypes = [POINTER(struct_Cell_head), String, String]
    G_put_element_window.restype = c_int

# include/grass/defs/gis.h: 675
if _libs["grass_gis.8.5"].has("G_putenv", "cdecl"):
    G_putenv = _libs["grass_gis.8.5"].get("G_putenv", "cdecl")
    G_putenv.argtypes = [String, String]
    G_putenv.restype = None

# include/grass/defs/gis.h: 678
if _libs["grass_gis.8.5"].has("G_meridional_radius_of_curvature", "cdecl"):
    G_meridional_radius_of_curvature = _libs["grass_gis.8.5"].get("G_meridional_radius_of_curvature", "cdecl")
    G_meridional_radius_of_curvature.argtypes = [c_double, c_double, c_double]
    G_meridional_radius_of_curvature.restype = c_double

# include/grass/defs/gis.h: 679
if _libs["grass_gis.8.5"].has("G_transverse_radius_of_curvature", "cdecl"):
    G_transverse_radius_of_curvature = _libs["grass_gis.8.5"].get("G_transverse_radius_of_curvature", "cdecl")
    G_transverse_radius_of_curvature.argtypes = [c_double, c_double, c_double]
    G_transverse_radius_of_curvature.restype = c_double

# include/grass/defs/gis.h: 680
if _libs["grass_gis.8.5"].has("G_radius_of_conformal_tangent_sphere", "cdecl"):
    G_radius_of_conformal_tangent_sphere = _libs["grass_gis.8.5"].get("G_radius_of_conformal_tangent_sphere", "cdecl")
    G_radius_of_conformal_tangent_sphere.argtypes = [c_double, c_double, c_double]
    G_radius_of_conformal_tangent_sphere.restype = c_double

# include/grass/defs/gis.h: 683
if _libs["grass_gis.8.5"].has("G__read_Cell_head", "cdecl"):
    G__read_Cell_head = _libs["grass_gis.8.5"].get("G__read_Cell_head", "cdecl")
    G__read_Cell_head.argtypes = [POINTER(FILE), POINTER(struct_Cell_head)]
    G__read_Cell_head.restype = None

# include/grass/defs/gis.h: 684
if _libs["grass_gis.8.5"].has("G__read_Cell_head_array", "cdecl"):
    G__read_Cell_head_array = _libs["grass_gis.8.5"].get("G__read_Cell_head_array", "cdecl")
    G__read_Cell_head_array.argtypes = [POINTER(POINTER(c_char)), POINTER(struct_Cell_head)]
    G__read_Cell_head_array.restype = None

# include/grass/defs/gis.h: 687
if _libs["grass_gis.8.5"].has("G_remove", "cdecl"):
    G_remove = _libs["grass_gis.8.5"].get("G_remove", "cdecl")
    G_remove.argtypes = [String, String]
    G_remove.restype = c_int

# include/grass/defs/gis.h: 688
if _libs["grass_gis.8.5"].has("G_remove_misc", "cdecl"):
    G_remove_misc = _libs["grass_gis.8.5"].get("G_remove_misc", "cdecl")
    G_remove_misc.argtypes = [String, String, String]
    G_remove_misc.restype = c_int

# include/grass/defs/gis.h: 689
if _libs["grass_gis.8.5"].has("G_recursive_remove", "cdecl"):
    G_recursive_remove = _libs["grass_gis.8.5"].get("G_recursive_remove", "cdecl")
    G_recursive_remove.argtypes = [String]
    G_recursive_remove.restype = c_int

# include/grass/defs/gis.h: 692
if _libs["grass_gis.8.5"].has("G_rename_file", "cdecl"):
    G_rename_file = _libs["grass_gis.8.5"].get("G_rename_file", "cdecl")
    G_rename_file.argtypes = [String, String]
    G_rename_file.restype = c_int

# include/grass/defs/gis.h: 693
if _libs["grass_gis.8.5"].has("G_rename", "cdecl"):
    G_rename = _libs["grass_gis.8.5"].get("G_rename", "cdecl")
    G_rename.argtypes = [String, String, String]
    G_rename.restype = c_int

# include/grass/defs/gis.h: 696
if _libs["grass_gis.8.5"].has("G_begin_rhumbline_equation", "cdecl"):
    G_begin_rhumbline_equation = _libs["grass_gis.8.5"].get("G_begin_rhumbline_equation", "cdecl")
    G_begin_rhumbline_equation.argtypes = [c_double, c_double, c_double, c_double]
    G_begin_rhumbline_equation.restype = c_int

# include/grass/defs/gis.h: 697
if _libs["grass_gis.8.5"].has("G_rhumbline_lat_from_lon", "cdecl"):
    G_rhumbline_lat_from_lon = _libs["grass_gis.8.5"].get("G_rhumbline_lat_from_lon", "cdecl")
    G_rhumbline_lat_from_lon.argtypes = [c_double]
    G_rhumbline_lat_from_lon.restype = c_double

# include/grass/defs/gis.h: 700
if _libs["grass_gis.8.5"].has("G_rotate_around_point", "cdecl"):
    G_rotate_around_point = _libs["grass_gis.8.5"].get("G_rotate_around_point", "cdecl")
    G_rotate_around_point.argtypes = [c_double, c_double, POINTER(c_double), POINTER(c_double), c_double]
    G_rotate_around_point.restype = None

# include/grass/defs/gis.h: 701
if _libs["grass_gis.8.5"].has("G_rotate_around_point_int", "cdecl"):
    G_rotate_around_point_int = _libs["grass_gis.8.5"].get("G_rotate_around_point_int", "cdecl")
    G_rotate_around_point_int.argtypes = [c_int, c_int, POINTER(c_int), POINTER(c_int), c_double]
    G_rotate_around_point_int.restype = None

# include/grass/defs/gis.h: 704
if _libs["grass_gis.8.5"].has("G_ftell", "cdecl"):
    G_ftell = _libs["grass_gis.8.5"].get("G_ftell", "cdecl")
    G_ftell.argtypes = [POINTER(FILE)]
    G_ftell.restype = off_t

# include/grass/defs/gis.h: 705
if _libs["grass_gis.8.5"].has("G_fseek", "cdecl"):
    G_fseek = _libs["grass_gis.8.5"].get("G_fseek", "cdecl")
    G_fseek.argtypes = [POINTER(FILE), off_t, c_int]
    G_fseek.restype = None

# include/grass/defs/gis.h: 708
if _libs["grass_gis.8.5"].has("G_get_set_window", "cdecl"):
    G_get_set_window = _libs["grass_gis.8.5"].get("G_get_set_window", "cdecl")
    G_get_set_window.argtypes = [POINTER(struct_Cell_head)]
    G_get_set_window.restype = None

# include/grass/defs/gis.h: 709
if _libs["grass_gis.8.5"].has("G_set_window", "cdecl"):
    G_set_window = _libs["grass_gis.8.5"].get("G_set_window", "cdecl")
    G_set_window.argtypes = [POINTER(struct_Cell_head)]
    G_set_window.restype = None

# include/grass/defs/gis.h: 710
if _libs["grass_gis.8.5"].has("G_unset_window", "cdecl"):
    G_unset_window = _libs["grass_gis.8.5"].get("G_unset_window", "cdecl")
    G_unset_window.argtypes = []
    G_unset_window.restype = None

# include/grass/defs/gis.h: 713
if _libs["grass_gis.8.5"].has("G_shortest_way", "cdecl"):
    G_shortest_way = _libs["grass_gis.8.5"].get("G_shortest_way", "cdecl")
    G_shortest_way.argtypes = [POINTER(c_double), POINTER(c_double)]
    G_shortest_way.restype = None

# include/grass/defs/gis.h: 716
if _libs["grass_gis.8.5"].has("G_sleep", "cdecl"):
    G_sleep = _libs["grass_gis.8.5"].get("G_sleep", "cdecl")
    G_sleep.argtypes = [c_uint]
    G_sleep.restype = None

# include/grass/defs/gis.h: 719
if _libs["grass_gis.8.5"].has("G_snprintf", "cdecl"):
    _func = _libs["grass_gis.8.5"].get("G_snprintf", "cdecl")
    _restype = c_int
    _errcheck = None
    _argtypes = [String, c_size_t, String]
    G_snprintf = _variadic_function(_func,_restype,_argtypes,_errcheck)

# include/grass/defs/gis.h: 723
if _libs["grass_gis.8.5"].has("G_strcasecmp", "cdecl"):
    G_strcasecmp = _libs["grass_gis.8.5"].get("G_strcasecmp", "cdecl")
    G_strcasecmp.argtypes = [String, String]
    G_strcasecmp.restype = c_int

# include/grass/defs/gis.h: 724
if _libs["grass_gis.8.5"].has("G_strncasecmp", "cdecl"):
    G_strncasecmp = _libs["grass_gis.8.5"].get("G_strncasecmp", "cdecl")
    G_strncasecmp.argtypes = [String, String, c_int]
    G_strncasecmp.restype = c_int

# include/grass/defs/gis.h: 725
if _libs["grass_gis.8.5"].has("G_store", "cdecl"):
    G_store = _libs["grass_gis.8.5"].get("G_store", "cdecl")
    G_store.argtypes = [String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_store.restype = ReturnString
    else:
        G_store.restype = String
        G_store.errcheck = ReturnString

# include/grass/defs/gis.h: 726
if _libs["grass_gis.8.5"].has("G_store_upper", "cdecl"):
    G_store_upper = _libs["grass_gis.8.5"].get("G_store_upper", "cdecl")
    G_store_upper.argtypes = [String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_store_upper.restype = ReturnString
    else:
        G_store_upper.restype = String
        G_store_upper.errcheck = ReturnString

# include/grass/defs/gis.h: 727
if _libs["grass_gis.8.5"].has("G_store_lower", "cdecl"):
    G_store_lower = _libs["grass_gis.8.5"].get("G_store_lower", "cdecl")
    G_store_lower.argtypes = [String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_store_lower.restype = ReturnString
    else:
        G_store_lower.restype = String
        G_store_lower.errcheck = ReturnString

# include/grass/defs/gis.h: 728
if _libs["grass_gis.8.5"].has("G_strchg", "cdecl"):
    G_strchg = _libs["grass_gis.8.5"].get("G_strchg", "cdecl")
    G_strchg.argtypes = [String, c_char, c_char]
    if sizeof(c_int) == sizeof(c_void_p):
        G_strchg.restype = ReturnString
    else:
        G_strchg.restype = String
        G_strchg.errcheck = ReturnString

# include/grass/defs/gis.h: 729
if _libs["grass_gis.8.5"].has("G_str_replace", "cdecl"):
    G_str_replace = _libs["grass_gis.8.5"].get("G_str_replace", "cdecl")
    G_str_replace.argtypes = [String, String, String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_str_replace.restype = ReturnString
    else:
        G_str_replace.restype = String
        G_str_replace.errcheck = ReturnString

# include/grass/defs/gis.h: 730
if _libs["grass_gis.8.5"].has("G_str_concat", "cdecl"):
    G_str_concat = _libs["grass_gis.8.5"].get("G_str_concat", "cdecl")
    G_str_concat.argtypes = [POINTER(POINTER(c_char)), c_int, String, c_int]
    if sizeof(c_int) == sizeof(c_void_p):
        G_str_concat.restype = ReturnString
    else:
        G_str_concat.restype = String
        G_str_concat.errcheck = ReturnString

# include/grass/defs/gis.h: 731
if _libs["grass_gis.8.5"].has("G_strip", "cdecl"):
    G_strip = _libs["grass_gis.8.5"].get("G_strip", "cdecl")
    G_strip.argtypes = [String]
    G_strip.restype = None

# include/grass/defs/gis.h: 732
if _libs["grass_gis.8.5"].has("G_chop", "cdecl"):
    G_chop = _libs["grass_gis.8.5"].get("G_chop", "cdecl")
    G_chop.argtypes = [String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_chop.restype = ReturnString
    else:
        G_chop.restype = String
        G_chop.errcheck = ReturnString

# include/grass/defs/gis.h: 733
if _libs["grass_gis.8.5"].has("G_str_to_upper", "cdecl"):
    G_str_to_upper = _libs["grass_gis.8.5"].get("G_str_to_upper", "cdecl")
    G_str_to_upper.argtypes = [String]
    G_str_to_upper.restype = None

# include/grass/defs/gis.h: 734
if _libs["grass_gis.8.5"].has("G_str_to_lower", "cdecl"):
    G_str_to_lower = _libs["grass_gis.8.5"].get("G_str_to_lower", "cdecl")
    G_str_to_lower.argtypes = [String]
    G_str_to_lower.restype = None

# include/grass/defs/gis.h: 735
if _libs["grass_gis.8.5"].has("G_str_to_sql", "cdecl"):
    G_str_to_sql = _libs["grass_gis.8.5"].get("G_str_to_sql", "cdecl")
    G_str_to_sql.argtypes = [String]
    G_str_to_sql.restype = c_int

# include/grass/defs/gis.h: 736
if _libs["grass_gis.8.5"].has("G_squeeze", "cdecl"):
    G_squeeze = _libs["grass_gis.8.5"].get("G_squeeze", "cdecl")
    G_squeeze.argtypes = [String]
    G_squeeze.restype = None

# include/grass/defs/gis.h: 737
if _libs["grass_gis.8.5"].has("G_strcasestr", "cdecl"):
    G_strcasestr = _libs["grass_gis.8.5"].get("G_strcasestr", "cdecl")
    G_strcasestr.argtypes = [String, String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_strcasestr.restype = ReturnString
    else:
        G_strcasestr.restype = String
        G_strcasestr.errcheck = ReturnString

# include/grass/defs/gis.h: 740
if _libs["grass_gis.8.5"].has("G_init_tempfile", "cdecl"):
    G_init_tempfile = _libs["grass_gis.8.5"].get("G_init_tempfile", "cdecl")
    G_init_tempfile.argtypes = []
    G_init_tempfile.restype = None

# include/grass/defs/gis.h: 741
if _libs["grass_gis.8.5"].has("G_tempfile", "cdecl"):
    G_tempfile = _libs["grass_gis.8.5"].get("G_tempfile", "cdecl")
    G_tempfile.argtypes = []
    if sizeof(c_int) == sizeof(c_void_p):
        G_tempfile.restype = ReturnString
    else:
        G_tempfile.restype = String
        G_tempfile.errcheck = ReturnString

# include/grass/defs/gis.h: 742
if _libs["grass_gis.8.5"].has("G_tempfile_basedir", "cdecl"):
    G_tempfile_basedir = _libs["grass_gis.8.5"].get("G_tempfile_basedir", "cdecl")
    G_tempfile_basedir.argtypes = [String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_tempfile_basedir.restype = ReturnString
    else:
        G_tempfile_basedir.restype = String
        G_tempfile_basedir.errcheck = ReturnString

# include/grass/defs/gis.h: 743
if _libs["grass_gis.8.5"].has("G_tempfile_pid", "cdecl"):
    G_tempfile_pid = _libs["grass_gis.8.5"].get("G_tempfile_pid", "cdecl")
    G_tempfile_pid.argtypes = [c_int]
    if sizeof(c_int) == sizeof(c_void_p):
        G_tempfile_pid.restype = ReturnString
    else:
        G_tempfile_pid.restype = String
        G_tempfile_pid.errcheck = ReturnString

# include/grass/defs/gis.h: 744
if _libs["grass_gis.8.5"].has("G_tempfile_pid_basedir", "cdecl"):
    G_tempfile_pid_basedir = _libs["grass_gis.8.5"].get("G_tempfile_pid_basedir", "cdecl")
    G_tempfile_pid_basedir.argtypes = [c_int, String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_tempfile_pid_basedir.restype = ReturnString
    else:
        G_tempfile_pid_basedir.restype = String
        G_tempfile_pid_basedir.errcheck = ReturnString

# include/grass/defs/gis.h: 745
if _libs["grass_gis.8.5"].has("G_temp_element", "cdecl"):
    G_temp_element = _libs["grass_gis.8.5"].get("G_temp_element", "cdecl")
    G_temp_element.argtypes = [String]
    G_temp_element.restype = None

# include/grass/defs/gis.h: 746
if _libs["grass_gis.8.5"].has("G__temp_element", "cdecl"):
    G__temp_element = _libs["grass_gis.8.5"].get("G__temp_element", "cdecl")
    G__temp_element.argtypes = [String, c_int]
    G__temp_element.restype = None

# include/grass/defs/gis.h: 747
if _libs["grass_gis.8.5"].has("G__temp_element_basedir", "cdecl"):
    G__temp_element_basedir = _libs["grass_gis.8.5"].get("G__temp_element_basedir", "cdecl")
    G__temp_element_basedir.argtypes = [String, String]
    G__temp_element_basedir.restype = None

# include/grass/defs/gis.h: 750
if _libs["grass_gis.8.5"].has("G_mktemp", "cdecl"):
    G_mktemp = _libs["grass_gis.8.5"].get("G_mktemp", "cdecl")
    G_mktemp.argtypes = [String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_mktemp.restype = ReturnString
    else:
        G_mktemp.restype = String
        G_mktemp.errcheck = ReturnString

# include/grass/defs/gis.h: 751
if _libs["grass_gis.8.5"].has("G_mkstemp", "cdecl"):
    G_mkstemp = _libs["grass_gis.8.5"].get("G_mkstemp", "cdecl")
    G_mkstemp.argtypes = [String, c_int, c_int]
    G_mkstemp.restype = c_int

# include/grass/defs/gis.h: 752
if _libs["grass_gis.8.5"].has("G_mkstemp_fp", "cdecl"):
    G_mkstemp_fp = _libs["grass_gis.8.5"].get("G_mkstemp_fp", "cdecl")
    G_mkstemp_fp.argtypes = [String, c_int, c_int]
    G_mkstemp_fp.restype = POINTER(FILE)

# include/grass/defs/gis.h: 755
if _libs["grass_gis.8.5"].has("G_init_timestamp", "cdecl"):
    G_init_timestamp = _libs["grass_gis.8.5"].get("G_init_timestamp", "cdecl")
    G_init_timestamp.argtypes = [POINTER(struct_TimeStamp)]
    G_init_timestamp.restype = None

# include/grass/defs/gis.h: 756
if _libs["grass_gis.8.5"].has("G_set_timestamp", "cdecl"):
    G_set_timestamp = _libs["grass_gis.8.5"].get("G_set_timestamp", "cdecl")
    G_set_timestamp.argtypes = [POINTER(struct_TimeStamp), POINTER(struct_DateTime)]
    G_set_timestamp.restype = None

# include/grass/defs/gis.h: 757
if _libs["grass_gis.8.5"].has("G_set_timestamp_range", "cdecl"):
    G_set_timestamp_range = _libs["grass_gis.8.5"].get("G_set_timestamp_range", "cdecl")
    G_set_timestamp_range.argtypes = [POINTER(struct_TimeStamp), POINTER(struct_DateTime), POINTER(struct_DateTime)]
    G_set_timestamp_range.restype = None

# include/grass/defs/gis.h: 759
if _libs["grass_gis.8.5"].has("G_write_timestamp", "cdecl"):
    G_write_timestamp = _libs["grass_gis.8.5"].get("G_write_timestamp", "cdecl")
    G_write_timestamp.argtypes = [POINTER(FILE), POINTER(struct_TimeStamp)]
    G_write_timestamp.restype = c_int

# include/grass/defs/gis.h: 760
if _libs["grass_gis.8.5"].has("G_get_timestamps", "cdecl"):
    G_get_timestamps = _libs["grass_gis.8.5"].get("G_get_timestamps", "cdecl")
    G_get_timestamps.argtypes = [POINTER(struct_TimeStamp), POINTER(struct_DateTime), POINTER(struct_DateTime), POINTER(c_int)]
    G_get_timestamps.restype = None

# include/grass/defs/gis.h: 762
if _libs["grass_gis.8.5"].has("G_format_timestamp", "cdecl"):
    G_format_timestamp = _libs["grass_gis.8.5"].get("G_format_timestamp", "cdecl")
    G_format_timestamp.argtypes = [POINTER(struct_TimeStamp), String]
    G_format_timestamp.restype = c_int

# include/grass/defs/gis.h: 763
if _libs["grass_gis.8.5"].has("G_scan_timestamp", "cdecl"):
    G_scan_timestamp = _libs["grass_gis.8.5"].get("G_scan_timestamp", "cdecl")
    G_scan_timestamp.argtypes = [POINTER(struct_TimeStamp), String]
    G_scan_timestamp.restype = c_int

# include/grass/defs/gis.h: 764
if _libs["grass_gis.8.5"].has("G_has_raster_timestamp", "cdecl"):
    G_has_raster_timestamp = _libs["grass_gis.8.5"].get("G_has_raster_timestamp", "cdecl")
    G_has_raster_timestamp.argtypes = [String, String]
    G_has_raster_timestamp.restype = c_int

# include/grass/defs/gis.h: 765
if _libs["grass_gis.8.5"].has("G_read_raster_timestamp", "cdecl"):
    G_read_raster_timestamp = _libs["grass_gis.8.5"].get("G_read_raster_timestamp", "cdecl")
    G_read_raster_timestamp.argtypes = [String, String, POINTER(struct_TimeStamp)]
    G_read_raster_timestamp.restype = c_int

# include/grass/defs/gis.h: 766
if _libs["grass_gis.8.5"].has("G_write_raster_timestamp", "cdecl"):
    G_write_raster_timestamp = _libs["grass_gis.8.5"].get("G_write_raster_timestamp", "cdecl")
    G_write_raster_timestamp.argtypes = [String, POINTER(struct_TimeStamp)]
    G_write_raster_timestamp.restype = c_int

# include/grass/defs/gis.h: 767
if _libs["grass_gis.8.5"].has("G_remove_raster_timestamp", "cdecl"):
    G_remove_raster_timestamp = _libs["grass_gis.8.5"].get("G_remove_raster_timestamp", "cdecl")
    G_remove_raster_timestamp.argtypes = [String]
    G_remove_raster_timestamp.restype = c_int

# include/grass/defs/gis.h: 768
if _libs["grass_gis.8.5"].has("G_has_vector_timestamp", "cdecl"):
    G_has_vector_timestamp = _libs["grass_gis.8.5"].get("G_has_vector_timestamp", "cdecl")
    G_has_vector_timestamp.argtypes = [String, String, String]
    G_has_vector_timestamp.restype = c_int

# include/grass/defs/gis.h: 769
if _libs["grass_gis.8.5"].has("G_read_vector_timestamp", "cdecl"):
    G_read_vector_timestamp = _libs["grass_gis.8.5"].get("G_read_vector_timestamp", "cdecl")
    G_read_vector_timestamp.argtypes = [String, String, String, POINTER(struct_TimeStamp)]
    G_read_vector_timestamp.restype = c_int

# include/grass/defs/gis.h: 771
if _libs["grass_gis.8.5"].has("G_write_vector_timestamp", "cdecl"):
    G_write_vector_timestamp = _libs["grass_gis.8.5"].get("G_write_vector_timestamp", "cdecl")
    G_write_vector_timestamp.argtypes = [String, String, POINTER(struct_TimeStamp)]
    G_write_vector_timestamp.restype = c_int

# include/grass/defs/gis.h: 773
if _libs["grass_gis.8.5"].has("G_remove_vector_timestamp", "cdecl"):
    G_remove_vector_timestamp = _libs["grass_gis.8.5"].get("G_remove_vector_timestamp", "cdecl")
    G_remove_vector_timestamp.argtypes = [String, String]
    G_remove_vector_timestamp.restype = c_int

# include/grass/defs/gis.h: 774
if _libs["grass_gis.8.5"].has("G_has_raster3d_timestamp", "cdecl"):
    G_has_raster3d_timestamp = _libs["grass_gis.8.5"].get("G_has_raster3d_timestamp", "cdecl")
    G_has_raster3d_timestamp.argtypes = [String, String]
    G_has_raster3d_timestamp.restype = c_int

# include/grass/defs/gis.h: 775
if _libs["grass_gis.8.5"].has("G_read_raster3d_timestamp", "cdecl"):
    G_read_raster3d_timestamp = _libs["grass_gis.8.5"].get("G_read_raster3d_timestamp", "cdecl")
    G_read_raster3d_timestamp.argtypes = [String, String, POINTER(struct_TimeStamp)]
    G_read_raster3d_timestamp.restype = c_int

# include/grass/defs/gis.h: 776
if _libs["grass_gis.8.5"].has("G_remove_raster3d_timestamp", "cdecl"):
    G_remove_raster3d_timestamp = _libs["grass_gis.8.5"].get("G_remove_raster3d_timestamp", "cdecl")
    G_remove_raster3d_timestamp.argtypes = [String]
    G_remove_raster3d_timestamp.restype = c_int

# include/grass/defs/gis.h: 777
if _libs["grass_gis.8.5"].has("G_write_raster3d_timestamp", "cdecl"):
    G_write_raster3d_timestamp = _libs["grass_gis.8.5"].get("G_write_raster3d_timestamp", "cdecl")
    G_write_raster3d_timestamp.argtypes = [String, POINTER(struct_TimeStamp)]
    G_write_raster3d_timestamp.restype = c_int

# include/grass/defs/gis.h: 780
if _libs["grass_gis.8.5"].has("G_tokenize", "cdecl"):
    G_tokenize = _libs["grass_gis.8.5"].get("G_tokenize", "cdecl")
    G_tokenize.argtypes = [String, String]
    G_tokenize.restype = POINTER(POINTER(c_char))

# include/grass/defs/gis.h: 781
if _libs["grass_gis.8.5"].has("G_tokenize2", "cdecl"):
    G_tokenize2 = _libs["grass_gis.8.5"].get("G_tokenize2", "cdecl")
    G_tokenize2.argtypes = [String, String, String]
    G_tokenize2.restype = POINTER(POINTER(c_char))

# include/grass/defs/gis.h: 782
if _libs["grass_gis.8.5"].has("G_number_of_tokens", "cdecl"):
    G_number_of_tokens = _libs["grass_gis.8.5"].get("G_number_of_tokens", "cdecl")
    G_number_of_tokens.argtypes = [POINTER(POINTER(c_char))]
    G_number_of_tokens.restype = c_int

# include/grass/defs/gis.h: 783
if _libs["grass_gis.8.5"].has("G_free_tokens", "cdecl"):
    G_free_tokens = _libs["grass_gis.8.5"].get("G_free_tokens", "cdecl")
    G_free_tokens.argtypes = [POINTER(POINTER(c_char))]
    G_free_tokens.restype = None

# include/grass/defs/gis.h: 786
if _libs["grass_gis.8.5"].has("G_trim_decimal", "cdecl"):
    G_trim_decimal = _libs["grass_gis.8.5"].get("G_trim_decimal", "cdecl")
    G_trim_decimal.argtypes = [String]
    G_trim_decimal.restype = None

# include/grass/defs/gis.h: 789
if _libs["grass_gis.8.5"].has("G_meters_to_units_factor", "cdecl"):
    G_meters_to_units_factor = _libs["grass_gis.8.5"].get("G_meters_to_units_factor", "cdecl")
    G_meters_to_units_factor.argtypes = [c_int]
    G_meters_to_units_factor.restype = c_double

# include/grass/defs/gis.h: 790
if _libs["grass_gis.8.5"].has("G_meters_to_units_factor_sq", "cdecl"):
    G_meters_to_units_factor_sq = _libs["grass_gis.8.5"].get("G_meters_to_units_factor_sq", "cdecl")
    G_meters_to_units_factor_sq.argtypes = [c_int]
    G_meters_to_units_factor_sq.restype = c_double

# include/grass/defs/gis.h: 791
if _libs["grass_gis.8.5"].has("G_get_units_name", "cdecl"):
    G_get_units_name = _libs["grass_gis.8.5"].get("G_get_units_name", "cdecl")
    G_get_units_name.argtypes = [c_int, c_int, c_int]
    G_get_units_name.restype = c_char_p

# include/grass/defs/gis.h: 792
if _libs["grass_gis.8.5"].has("G_units", "cdecl"):
    G_units = _libs["grass_gis.8.5"].get("G_units", "cdecl")
    G_units.argtypes = [String]
    G_units.restype = c_int

# include/grass/defs/gis.h: 793
if _libs["grass_gis.8.5"].has("G_is_units_type_spatial", "cdecl"):
    G_is_units_type_spatial = _libs["grass_gis.8.5"].get("G_is_units_type_spatial", "cdecl")
    G_is_units_type_spatial.argtypes = [c_int]
    G_is_units_type_spatial.restype = c_int

# include/grass/defs/gis.h: 794
if _libs["grass_gis.8.5"].has("G_is_units_type_temporal", "cdecl"):
    G_is_units_type_temporal = _libs["grass_gis.8.5"].get("G_is_units_type_temporal", "cdecl")
    G_is_units_type_temporal.argtypes = [c_int]
    G_is_units_type_temporal.restype = c_int

# include/grass/defs/gis.h: 798
if _libs["grass_gis.8.5"].has("G_rc_path", "cdecl"):
    G_rc_path = _libs["grass_gis.8.5"].get("G_rc_path", "cdecl")
    G_rc_path.argtypes = [String, String]
    if sizeof(c_int) == sizeof(c_void_p):
        G_rc_path.restype = ReturnString
    else:
        G_rc_path.restype = String
        G_rc_path.errcheck = ReturnString

# include/grass/defs/gis.h: 802
if _libs["grass_gis.8.5"].has("G_verbose", "cdecl"):
    G_verbose = _libs["grass_gis.8.5"].get("G_verbose", "cdecl")
    G_verbose.argtypes = []
    G_verbose.restype = c_int

# include/grass/defs/gis.h: 803
if _libs["grass_gis.8.5"].has("G_verbose_min", "cdecl"):
    G_verbose_min = _libs["grass_gis.8.5"].get("G_verbose_min", "cdecl")
    G_verbose_min.argtypes = []
    G_verbose_min.restype = c_int

# include/grass/defs/gis.h: 804
if _libs["grass_gis.8.5"].has("G_verbose_std", "cdecl"):
    G_verbose_std = _libs["grass_gis.8.5"].get("G_verbose_std", "cdecl")
    G_verbose_std.argtypes = []
    G_verbose_std.restype = c_int

# include/grass/defs/gis.h: 805
if _libs["grass_gis.8.5"].has("G_verbose_max", "cdecl"):
    G_verbose_max = _libs["grass_gis.8.5"].get("G_verbose_max", "cdecl")
    G_verbose_max.argtypes = []
    G_verbose_max.restype = c_int

# include/grass/defs/gis.h: 806
if _libs["grass_gis.8.5"].has("G_set_verbose", "cdecl"):
    G_set_verbose = _libs["grass_gis.8.5"].get("G_set_verbose", "cdecl")
    G_set_verbose.argtypes = [c_int]
    G_set_verbose.restype = c_int

# include/grass/defs/gis.h: 809
if _libs["grass_gis.8.5"].has("G_3dview_warning", "cdecl"):
    G_3dview_warning = _libs["grass_gis.8.5"].get("G_3dview_warning", "cdecl")
    G_3dview_warning.argtypes = [c_int]
    G_3dview_warning.restype = None

# include/grass/defs/gis.h: 810
if _libs["grass_gis.8.5"].has("G_get_3dview_defaults", "cdecl"):
    G_get_3dview_defaults = _libs["grass_gis.8.5"].get("G_get_3dview_defaults", "cdecl")
    G_get_3dview_defaults.argtypes = [POINTER(struct_G_3dview), POINTER(struct_Cell_head)]
    G_get_3dview_defaults.restype = c_int

# include/grass/defs/gis.h: 811
if _libs["grass_gis.8.5"].has("G_put_3dview", "cdecl"):
    G_put_3dview = _libs["grass_gis.8.5"].get("G_put_3dview", "cdecl")
    G_put_3dview.argtypes = [String, POINTER(struct_G_3dview), POINTER(struct_Cell_head)]
    G_put_3dview.restype = c_int

# include/grass/defs/gis.h: 813
if _libs["grass_gis.8.5"].has("G_get_3dview", "cdecl"):
    G_get_3dview = _libs["grass_gis.8.5"].get("G_get_3dview", "cdecl")
    G_get_3dview.argtypes = [String, String, POINTER(struct_G_3dview)]
    G_get_3dview.restype = c_int

# include/grass/defs/gis.h: 816
if _libs["grass_gis.8.5"].has("G_whoami", "cdecl"):
    G_whoami = _libs["grass_gis.8.5"].get("G_whoami", "cdecl")
    G_whoami.argtypes = []
    G_whoami.restype = c_char_p

# include/grass/defs/gis.h: 819
if _libs["grass_gis.8.5"].has("G_adjust_window_to_box", "cdecl"):
    G_adjust_window_to_box = _libs["grass_gis.8.5"].get("G_adjust_window_to_box", "cdecl")
    G_adjust_window_to_box.argtypes = [POINTER(struct_Cell_head), POINTER(struct_Cell_head), c_int, c_int]
    G_adjust_window_to_box.restype = None

# include/grass/defs/gis.h: 823
if _libs["grass_gis.8.5"].has("G_format_northing", "cdecl"):
    G_format_northing = _libs["grass_gis.8.5"].get("G_format_northing", "cdecl")
    G_format_northing.argtypes = [c_double, String, c_int]
    G_format_northing.restype = None

# include/grass/defs/gis.h: 824
if _libs["grass_gis.8.5"].has("G_format_easting", "cdecl"):
    G_format_easting = _libs["grass_gis.8.5"].get("G_format_easting", "cdecl")
    G_format_easting.argtypes = [c_double, String, c_int]
    G_format_easting.restype = None

# include/grass/defs/gis.h: 825
if _libs["grass_gis.8.5"].has("G_format_resolution", "cdecl"):
    G_format_resolution = _libs["grass_gis.8.5"].get("G_format_resolution", "cdecl")
    G_format_resolution.argtypes = [c_double, String, c_int]
    G_format_resolution.restype = None

# include/grass/defs/gis.h: 828
if _libs["grass_gis.8.5"].has("G_point_in_region", "cdecl"):
    G_point_in_region = _libs["grass_gis.8.5"].get("G_point_in_region", "cdecl")
    G_point_in_region.argtypes = [c_double, c_double]
    G_point_in_region.restype = c_int

# include/grass/defs/gis.h: 829
if _libs["grass_gis.8.5"].has("G_point_in_window", "cdecl"):
    G_point_in_window = _libs["grass_gis.8.5"].get("G_point_in_window", "cdecl")
    G_point_in_window.argtypes = [c_double, c_double, POINTER(struct_Cell_head)]
    G_point_in_window.restype = c_int

# include/grass/defs/gis.h: 832
if _libs["grass_gis.8.5"].has("G_limit_east", "cdecl"):
    G_limit_east = _libs["grass_gis.8.5"].get("G_limit_east", "cdecl")
    G_limit_east.argtypes = [POINTER(c_double), c_int]
    G_limit_east.restype = c_int

# include/grass/defs/gis.h: 833
if _libs["grass_gis.8.5"].has("G_limit_west", "cdecl"):
    G_limit_west = _libs["grass_gis.8.5"].get("G_limit_west", "cdecl")
    G_limit_west.argtypes = [POINTER(c_double), c_int]
    G_limit_west.restype = c_int

# include/grass/defs/gis.h: 834
if _libs["grass_gis.8.5"].has("G_limit_north", "cdecl"):
    G_limit_north = _libs["grass_gis.8.5"].get("G_limit_north", "cdecl")
    G_limit_north.argtypes = [POINTER(c_double), c_int]
    G_limit_north.restype = c_int

# include/grass/defs/gis.h: 835
if _libs["grass_gis.8.5"].has("G_limit_south", "cdecl"):
    G_limit_south = _libs["grass_gis.8.5"].get("G_limit_south", "cdecl")
    G_limit_south.argtypes = [POINTER(c_double), c_int]
    G_limit_south.restype = c_int

# include/grass/defs/gis.h: 838
if _libs["grass_gis.8.5"].has("G_window_overlap", "cdecl"):
    G_window_overlap = _libs["grass_gis.8.5"].get("G_window_overlap", "cdecl")
    G_window_overlap.argtypes = [POINTER(struct_Cell_head), c_double, c_double, c_double, c_double]
    G_window_overlap.restype = c_int

# include/grass/defs/gis.h: 839
if _libs["grass_gis.8.5"].has("G_window_percentage_overlap", "cdecl"):
    G_window_percentage_overlap = _libs["grass_gis.8.5"].get("G_window_percentage_overlap", "cdecl")
    G_window_percentage_overlap.argtypes = [POINTER(struct_Cell_head), c_double, c_double, c_double, c_double]
    G_window_percentage_overlap.restype = c_double

# include/grass/defs/gis.h: 843
if _libs["grass_gis.8.5"].has("G_scan_northing", "cdecl"):
    G_scan_northing = _libs["grass_gis.8.5"].get("G_scan_northing", "cdecl")
    G_scan_northing.argtypes = [String, POINTER(c_double), c_int]
    G_scan_northing.restype = c_int

# include/grass/defs/gis.h: 844
if _libs["grass_gis.8.5"].has("G_scan_easting", "cdecl"):
    G_scan_easting = _libs["grass_gis.8.5"].get("G_scan_easting", "cdecl")
    G_scan_easting.argtypes = [String, POINTER(c_double), c_int]
    G_scan_easting.restype = c_int

# include/grass/defs/gis.h: 845
if _libs["grass_gis.8.5"].has("G_scan_resolution", "cdecl"):
    G_scan_resolution = _libs["grass_gis.8.5"].get("G_scan_resolution", "cdecl")
    G_scan_resolution.argtypes = [String, POINTER(c_double), c_int]
    G_scan_resolution.restype = c_int

# include/grass/defs/gis.h: 848
if _libs["grass_gis.8.5"].has("G_adjust_east_longitude", "cdecl"):
    G_adjust_east_longitude = _libs["grass_gis.8.5"].get("G_adjust_east_longitude", "cdecl")
    G_adjust_east_longitude.argtypes = [c_double, c_double]
    G_adjust_east_longitude.restype = c_double

# include/grass/defs/gis.h: 849
if _libs["grass_gis.8.5"].has("G_adjust_easting", "cdecl"):
    G_adjust_easting = _libs["grass_gis.8.5"].get("G_adjust_easting", "cdecl")
    G_adjust_easting.argtypes = [c_double, POINTER(struct_Cell_head)]
    G_adjust_easting.restype = c_double

# include/grass/defs/gis.h: 850
if _libs["grass_gis.8.5"].has("G__init_window", "cdecl"):
    G__init_window = _libs["grass_gis.8.5"].get("G__init_window", "cdecl")
    G__init_window.argtypes = []
    G__init_window.restype = None

# include/grass/defs/gis.h: 853
if _libs["grass_gis.8.5"].has("G_begin_execute", "cdecl"):
    G_begin_execute = _libs["grass_gis.8.5"].get("G_begin_execute", "cdecl")
    G_begin_execute.argtypes = [CFUNCTYPE(UNCHECKED(None), POINTER(None)), POINTER(None), POINTER(POINTER(None)), c_int]
    G_begin_execute.restype = None

# include/grass/defs/gis.h: 854
if _libs["grass_gis.8.5"].has("G_end_execute", "cdecl"):
    G_end_execute = _libs["grass_gis.8.5"].get("G_end_execute", "cdecl")
    G_end_execute.argtypes = [POINTER(POINTER(None))]
    G_end_execute.restype = None

# include/grass/defs/gis.h: 855
if _libs["grass_gis.8.5"].has("G_init_workers", "cdecl"):
    G_init_workers = _libs["grass_gis.8.5"].get("G_init_workers", "cdecl")
    G_init_workers.argtypes = []
    G_init_workers.restype = None

# include/grass/defs/gis.h: 856
if _libs["grass_gis.8.5"].has("G_finish_workers", "cdecl"):
    G_finish_workers = _libs["grass_gis.8.5"].get("G_finish_workers", "cdecl")
    G_finish_workers.argtypes = []
    G_finish_workers.restype = None

# include/grass/defs/gis.h: 859
if _libs["grass_gis.8.5"].has("G__write_Cell_head", "cdecl"):
    G__write_Cell_head = _libs["grass_gis.8.5"].get("G__write_Cell_head", "cdecl")
    G__write_Cell_head.argtypes = [POINTER(FILE), POINTER(struct_Cell_head), c_int]
    G__write_Cell_head.restype = None

# include/grass/defs/gis.h: 860
if _libs["grass_gis.8.5"].has("G__write_Cell_head3", "cdecl"):
    G__write_Cell_head3 = _libs["grass_gis.8.5"].get("G__write_Cell_head3", "cdecl")
    G__write_Cell_head3.argtypes = [POINTER(FILE), POINTER(struct_Cell_head), c_int]
    G__write_Cell_head3.restype = None

# include/grass/defs/gis.h: 863
if _libs["grass_gis.8.5"].has("G_write_zeros", "cdecl"):
    G_write_zeros = _libs["grass_gis.8.5"].get("G_write_zeros", "cdecl")
    G_write_zeros.argtypes = [c_int, c_size_t]
    G_write_zeros.restype = None

# include/grass/defs/gis.h: 866
if _libs["grass_gis.8.5"].has("G_xdr_get_int", "cdecl"):
    G_xdr_get_int = _libs["grass_gis.8.5"].get("G_xdr_get_int", "cdecl")
    G_xdr_get_int.argtypes = [POINTER(c_int), POINTER(None)]
    G_xdr_get_int.restype = None

# include/grass/defs/gis.h: 867
if _libs["grass_gis.8.5"].has("G_xdr_put_int", "cdecl"):
    G_xdr_put_int = _libs["grass_gis.8.5"].get("G_xdr_put_int", "cdecl")
    G_xdr_put_int.argtypes = [POINTER(None), POINTER(c_int)]
    G_xdr_put_int.restype = None

# include/grass/defs/gis.h: 868
if _libs["grass_gis.8.5"].has("G_xdr_get_float", "cdecl"):
    G_xdr_get_float = _libs["grass_gis.8.5"].get("G_xdr_get_float", "cdecl")
    G_xdr_get_float.argtypes = [POINTER(c_float), POINTER(None)]
    G_xdr_get_float.restype = None

# include/grass/defs/gis.h: 869
if _libs["grass_gis.8.5"].has("G_xdr_put_float", "cdecl"):
    G_xdr_put_float = _libs["grass_gis.8.5"].get("G_xdr_put_float", "cdecl")
    G_xdr_put_float.argtypes = [POINTER(None), POINTER(c_float)]
    G_xdr_put_float.restype = None

# include/grass/defs/gis.h: 870
if _libs["grass_gis.8.5"].has("G_xdr_get_double", "cdecl"):
    G_xdr_get_double = _libs["grass_gis.8.5"].get("G_xdr_get_double", "cdecl")
    G_xdr_get_double.argtypes = [POINTER(c_double), POINTER(None)]
    G_xdr_get_double.restype = None

# include/grass/defs/gis.h: 871
if _libs["grass_gis.8.5"].has("G_xdr_put_double", "cdecl"):
    G_xdr_put_double = _libs["grass_gis.8.5"].get("G_xdr_put_double", "cdecl")
    G_xdr_put_double.argtypes = [POINTER(None), POINTER(c_double)]
    G_xdr_put_double.restype = None

# include/grass/defs/gis.h: 874
if _libs["grass_gis.8.5"].has("G_zero", "cdecl"):
    G_zero = _libs["grass_gis.8.5"].get("G_zero", "cdecl")
    G_zero.argtypes = [POINTER(None), c_int]
    G_zero.restype = None

# include/grass/defs/gis.h: 877
if _libs["grass_gis.8.5"].has("G_zone", "cdecl"):
    G_zone = _libs["grass_gis.8.5"].get("G_zone", "cdecl")
    G_zone.argtypes = []
    G_zone.restype = c_int

# include/grass/colors.h: 39
class struct_color_rgb(Structure):
    pass

struct_color_rgb.__slots__ = [
    'r',
    'g',
    'b',
]
struct_color_rgb._fields_ = [
    ('r', c_ubyte),
    ('g', c_ubyte),
    ('b', c_ubyte),
]

# include/grass/colors.h: 43
class struct_color_name(Structure):
    pass

struct_color_name.__slots__ = [
    'name',
    'number',
]
struct_color_name._fields_ = [
    ('name', String),
    ('number', c_int),
]

enum_anon_7 = c_int# include/grass/colors.h: 55

RGB = 0# include/grass/colors.h: 55

HEX = (RGB + 1)# include/grass/colors.h: 55

HSV = (HEX + 1)# include/grass/colors.h: 55

TRIPLET = (HSV + 1)# include/grass/colors.h: 55

ColorFormat = enum_anon_7# include/grass/colors.h: 55

# include/grass/defs/colors.h: 6
if _libs["grass_gis.8.5"].has("G_num_standard_colors", "cdecl"):
    G_num_standard_colors = _libs["grass_gis.8.5"].get("G_num_standard_colors", "cdecl")
    G_num_standard_colors.argtypes = []
    G_num_standard_colors.restype = c_int

# include/grass/defs/colors.h: 7
if _libs["grass_gis.8.5"].has("G_standard_color_rgb", "cdecl"):
    G_standard_color_rgb = _libs["grass_gis.8.5"].get("G_standard_color_rgb", "cdecl")
    G_standard_color_rgb.argtypes = [c_int]
    G_standard_color_rgb.restype = struct_color_rgb

# include/grass/defs/colors.h: 8
if _libs["grass_gis.8.5"].has("G_num_standard_color_names", "cdecl"):
    G_num_standard_color_names = _libs["grass_gis.8.5"].get("G_num_standard_color_names", "cdecl")
    G_num_standard_color_names.argtypes = []
    G_num_standard_color_names.restype = c_int

# include/grass/defs/colors.h: 9
if _libs["grass_gis.8.5"].has("G_standard_color_name", "cdecl"):
    G_standard_color_name = _libs["grass_gis.8.5"].get("G_standard_color_name", "cdecl")
    G_standard_color_name.argtypes = [c_int]
    G_standard_color_name.restype = POINTER(struct_color_name)

# include/grass/defs/colors.h: 10
if _libs["grass_gis.8.5"].has("G_str_to_color", "cdecl"):
    G_str_to_color = _libs["grass_gis.8.5"].get("G_str_to_color", "cdecl")
    G_str_to_color.argtypes = [String, POINTER(c_int), POINTER(c_int), POINTER(c_int)]
    G_str_to_color.restype = c_int

# include/grass/defs/colors.h: 11
if _libs["grass_gis.8.5"].has("G_rgb_to_hsv", "cdecl"):
    G_rgb_to_hsv = _libs["grass_gis.8.5"].get("G_rgb_to_hsv", "cdecl")
    G_rgb_to_hsv.argtypes = [c_int, c_int, c_int, POINTER(c_float), POINTER(c_float), POINTER(c_float)]
    G_rgb_to_hsv.restype = None

# include/grass/defs/colors.h: 12
if _libs["grass_gis.8.5"].has("G_color_to_str", "cdecl"):
    G_color_to_str = _libs["grass_gis.8.5"].get("G_color_to_str", "cdecl")
    G_color_to_str.argtypes = [c_int, c_int, c_int, ColorFormat, String]
    G_color_to_str.restype = None

# include/grass/defs/colors.h: 13
if _libs["grass_gis.8.5"].has("G_option_to_color_format", "cdecl"):
    G_option_to_color_format = _libs["grass_gis.8.5"].get("G_option_to_color_format", "cdecl")
    G_option_to_color_format.argtypes = [POINTER(struct_Option)]
    G_option_to_color_format.restype = ColorFormat

# include/grass/datetime.h: 10
try:
    DATETIME_YEAR = 101
except:
    pass

# include/grass/datetime.h: 11
try:
    DATETIME_MONTH = 102
except:
    pass

# include/grass/datetime.h: 12
try:
    DATETIME_DAY = 103
except:
    pass

# include/grass/datetime.h: 13
try:
    DATETIME_HOUR = 104
except:
    pass

# include/grass/datetime.h: 14
try:
    DATETIME_MINUTE = 105
except:
    pass

# include/grass/datetime.h: 15
try:
    DATETIME_SECOND = 106
except:
    pass

# include/grass/version.h: 5
try:
    GRASS_HEADERS_VERSION = '8d6ceba290'
except:
    pass

# include/grass/version.h: 6
try:
    GRASS_HEADERS_DATE = '2026-05-08T10:16:05+00:00'
except:
    pass

# include/grass/gis.h: 65
try:
    GIS_H_VERSION = GRASS_HEADERS_VERSION
except:
    pass

# include/grass/gis.h: 69
try:
    GIS_H_DATE = GRASS_HEADERS_DATE
except:
    pass

# include/grass/gis.h: 71
def G_gisinit(pgm):
    return (G__gisinit (GIS_H_VERSION, pgm))

# include/grass/gis.h: 72
try:
    G_no_gisinit = (G__no_gisinit (GIS_H_VERSION))
except:
    pass

# include/grass/gis.h: 78
try:
    TRUE = 1
except:
    pass

# include/grass/gis.h: 82
try:
    FALSE = 0
except:
    pass

# include/grass/gis.h: 86
try:
    NEWLINE = '\\n'
except:
    pass

# include/grass/gis.h: 90
try:
    HOST_NEWLINE = '\\n'
except:
    pass

# include/grass/gis.h: 103
try:
    U_UNDEFINED = (-1)
except:
    pass

# include/grass/gis.h: 104
try:
    U_UNKNOWN = 0
except:
    pass

# include/grass/gis.h: 105
try:
    U_ACRES = 1
except:
    pass

# include/grass/gis.h: 106
try:
    U_HECTARES = 2
except:
    pass

# include/grass/gis.h: 107
try:
    U_KILOMETERS = 3
except:
    pass

# include/grass/gis.h: 108
try:
    U_METERS = 4
except:
    pass

# include/grass/gis.h: 109
try:
    U_MILES = 5
except:
    pass

# include/grass/gis.h: 110
try:
    U_FEET = 6
except:
    pass

# include/grass/gis.h: 111
try:
    U_RADIANS = 7
except:
    pass

# include/grass/gis.h: 112
try:
    U_DEGREES = 8
except:
    pass

# include/grass/gis.h: 113
try:
    U_USFEET = 9
except:
    pass

# include/grass/gis.h: 115
try:
    U_YEARS = DATETIME_YEAR
except:
    pass

# include/grass/gis.h: 116
try:
    U_MONTHS = DATETIME_MONTH
except:
    pass

# include/grass/gis.h: 117
try:
    U_DAYS = DATETIME_DAY
except:
    pass

# include/grass/gis.h: 118
try:
    U_HOURS = DATETIME_HOUR
except:
    pass

# include/grass/gis.h: 119
try:
    U_MINUTES = DATETIME_MINUTE
except:
    pass

# include/grass/gis.h: 120
try:
    U_SECONDS = DATETIME_SECOND
except:
    pass

# include/grass/gis.h: 123
try:
    PROJECTION_XY = 0
except:
    pass

# include/grass/gis.h: 125
try:
    PROJECTION_UTM = 1
except:
    pass

# include/grass/gis.h: 127
try:
    PROJECTION_SP = 2
except:
    pass

# include/grass/gis.h: 129
try:
    PROJECTION_LL = 3
except:
    pass

# include/grass/gis.h: 131
try:
    PROJECTION_OTHER = 99
except:
    pass

# include/grass/gis.h: 133
try:
    PROJECTION_FILE = 'PROJ_INFO'
except:
    pass

# include/grass/gis.h: 134
try:
    UNIT_FILE = 'PROJ_UNITS'
except:
    pass

# include/grass/gis.h: 135
try:
    EPSG_FILE = 'PROJ_EPSG'
except:
    pass

# include/grass/gis.h: 136
try:
    WKT_FILE = 'PROJ_WKT'
except:
    pass

# include/grass/gis.h: 137
try:
    SRID_FILE = 'PROJ_SRID'
except:
    pass

# include/grass/gis.h: 140
try:
    CONFIG_DIR = 'GRASS8'
except:
    pass

# include/grass/gis.h: 148
def MAX(a, b):
    return (a > b) and a or b

# include/grass/gis.h: 153
def MIN(a, b):
    return (a < b) and a or b

# include/grass/gis.h: 157
try:
    M_PI = 3.14159265358979323846
except:
    pass

# include/grass/gis.h: 160
try:
    M_PI_2 = 1.57079632679489661923
except:
    pass

# include/grass/gis.h: 168
try:
    M_PI_4 = 0.78539816339744830962
except:
    pass

# include/grass/gis.h: 172
try:
    M_R2D = 57.295779513082320877
except:
    pass

# include/grass/gis.h: 175
try:
    M_D2R = 0.017453292519943295769
except:
    pass

# include/grass/gis.h: 178
try:
    GRASS_EPSILON = 1.0e-15
except:
    pass

# include/grass/gis.h: 181
try:
    G_VAR_GISRC = 0
except:
    pass

# include/grass/gis.h: 182
try:
    G_VAR_MAPSET = 1
except:
    pass

# include/grass/gis.h: 185
try:
    G_GISRC_MODE_FILE = 0
except:
    pass

# include/grass/gis.h: 186
try:
    G_GISRC_MODE_MEMORY = 1
except:
    pass

# include/grass/gis.h: 189
try:
    TYPE_INTEGER = 1
except:
    pass

# include/grass/gis.h: 190
try:
    TYPE_DOUBLE = 2
except:
    pass

# include/grass/gis.h: 191
try:
    TYPE_STRING = 3
except:
    pass

# include/grass/gis.h: 192
try:
    YES = 1
except:
    pass

# include/grass/gis.h: 193
try:
    NO = 0
except:
    pass

# include/grass/gis.h: 196
try:
    GNAME_MAX = 256
except:
    pass

# include/grass/gis.h: 197
try:
    GMAPSET_MAX = 256
except:
    pass

# include/grass/gis.h: 199
try:
    GPATH_MAX = 4096
except:
    pass

# include/grass/gis.h: 202
try:
    GBASENAME_SEP = '_'
except:
    pass

# include/grass/gis.h: 218
def deserialize_int32_le(buf):
    return (((((buf [0]) << 0) | ((buf [1]) << 8)) | ((buf [2]) << 16)) | ((buf [3]) << 24))

# include/grass/gis.h: 231
def deserialize_int32_be(buf):
    return (((((buf [0]) << 24) | ((buf [1]) << 16)) | ((buf [2]) << 8)) | ((buf [3]) << 0))

# include/grass/gis.h: 235
try:
    GRASS_DIRSEP = '/'
except:
    pass

# include/grass/gis.h: 240
try:
    HOST_DIRSEP = '/'
except:
    pass

# include/grass/gis.h: 241
try:
    G_DEV_NULL = '/dev/null'
except:
    pass

# include/grass/gis.h: 393
try:
    G_INFO_FORMAT_STANDARD = 0
except:
    pass

# include/grass/gis.h: 395
try:
    G_INFO_FORMAT_GUI = 1
except:
    pass

# include/grass/gis.h: 396
try:
    G_INFO_FORMAT_SILENT = 2
except:
    pass

# include/grass/gis.h: 397
try:
    G_INFO_FORMAT_PLAIN = 3
except:
    pass

# include/grass/gis.h: 400
try:
    G_ICON_CROSS = 0
except:
    pass

# include/grass/gis.h: 401
try:
    G_ICON_BOX = 1
except:
    pass

# include/grass/gis.h: 402
try:
    G_ICON_ARROW = 2
except:
    pass

# include/grass/gis.h: 405
try:
    DEFAULT_FG_COLOR = 'black'
except:
    pass

# include/grass/gis.h: 406
try:
    DEFAULT_BG_COLOR = 'white'
except:
    pass

# include/grass/gis.h: 407
try:
    DEFAULT_COLOR_TABLE = 'viridis'
except:
    pass

# include/grass/gis.h: 410
try:
    G_FATAL_EXIT = 0
except:
    pass

# include/grass/gis.h: 411
try:
    G_FATAL_PRINT = 1
except:
    pass

# include/grass/gis.h: 412
try:
    G_FATAL_RETURN = 2
except:
    pass

# include/grass/gis.h: 415
try:
    ENDIAN_LITTLE = 0
except:
    pass

# include/grass/gis.h: 416
try:
    ENDIAN_BIG = 1
except:
    pass

# include/grass/gis.h: 417
try:
    ENDIAN_OTHER = 2
except:
    pass

# include/grass/gis.h: 423
try:
    GV_KEY_COLUMN = 'cat'
except:
    pass

# include/grass/defs/gis.h: 57
def G_alloca(n):
    return (G_malloc (n))

# include/grass/defs/gis.h: 58
def G_freea(p):
    return (G_free (p))

# include/grass/defs/gis.h: 72
try:
    RELDIR = '?'
except:
    pass

# include/grass/defs/gis.h: 81
def G_incr_void_ptr(ptr, size):
    return cast((cast(ptr, POINTER(c_ubyte)) + size), POINTER(None))

# include/grass/defs/gis.h: 98
def G_malloc(n):
    return (G__malloc ('<ctypesgen>', 0, n))

# include/grass/defs/gis.h: 99
def G_calloc(m, n):
    return (G__calloc ('<ctypesgen>', 0, m, n))

# include/grass/defs/gis.h: 100
def G_realloc(p, n):
    return (G__realloc ('<ctypesgen>', 0, p, n))

# include/grass/colors.h: 10
try:
    BLACK = 1
except:
    pass

# include/grass/colors.h: 11
try:
    RED = 2
except:
    pass

# include/grass/colors.h: 12
try:
    GREEN = 3
except:
    pass

# include/grass/colors.h: 13
try:
    BLUE = 4
except:
    pass

# include/grass/colors.h: 14
try:
    YELLOW = 5
except:
    pass

# include/grass/colors.h: 15
try:
    CYAN = 6
except:
    pass

# include/grass/colors.h: 16
try:
    MAGENTA = 7
except:
    pass

# include/grass/colors.h: 17
try:
    WHITE = 8
except:
    pass

# include/grass/colors.h: 18
try:
    GRAY = 9
except:
    pass

# include/grass/colors.h: 19
try:
    ORANGE = 10
except:
    pass

# include/grass/colors.h: 20
try:
    AQUA = 11
except:
    pass

# include/grass/colors.h: 21
try:
    INDIGO = 12
except:
    pass

# include/grass/colors.h: 22
try:
    VIOLET = 13
except:
    pass

# include/grass/colors.h: 23
try:
    BROWN = 14
except:
    pass

# include/grass/colors.h: 25
try:
    GREY = GRAY
except:
    pass

# include/grass/colors.h: 26
try:
    PURPLE = VIOLET
except:
    pass

# include/grass/colors.h: 28
try:
    COLOR_STRING_LENGTH = 30
except:
    pass

# include/grass/colors.h: 32
try:
    D_COLOR_LIST = ('red,orange,yellow,green,blue,indigo,violet,white,black,gray,brown,' + 'magenta,aqua,grey,cyan,purple')
except:
    pass

# include/grass/colors.h: 37
try:
    MAX_COLOR_LEN = 32
except:
    pass

Cell_head = struct_Cell_head# include/grass/gis.h: 446

G_3dview = struct_G_3dview# include/grass/gis.h: 508

Key_Value = struct_Key_Value# include/grass/gis.h: 534

Option = struct_Option# include/grass/gis.h: 563

Flag = struct_Flag# include/grass/gis.h: 594

GModule = struct_GModule# include/grass/gis.h: 611

TimeStamp = struct_TimeStamp# include/grass/gis.h: 620

Counter = struct_Counter# include/grass/gis.h: 625

Popen = struct_Popen# include/grass/gis.h: 629

_Color_Value_ = struct__Color_Value_# include/grass/gis.h: 655

_Color_Rule_ = struct__Color_Rule_# include/grass/gis.h: 662

_Color_Info_ = struct__Color_Info_# include/grass/gis.h: 668

Colors = struct_Colors# include/grass/gis.h: 692

ilist = struct_ilist# include/grass/gis.h: 715

color_rgb = struct_color_rgb# include/grass/colors.h: 39

color_name = struct_color_name# include/grass/colors.h: 43

# No inserted files

# No prefix-stripping

