GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
gisinit.c File Reference

GIS Library - Handles program initialization. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <locale.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include "G.h"
#include "gis_local_proto.h"
Include dependency graph for gisinit.c:

Go to the source code of this file.

Functions

void G__gisinit (const char *version, const char *pgm)
 Initialize GIS Library and ensures a valid mapset is available. More...
 
void G__no_gisinit (const char *version)
 Initialize GIS Library. More...
 
void G__check_gisinit (void)
 Checks to see if GIS engine is initialized. More...
 
void G_init_all (void)
 Initialize environment. More...
 

Variables

struct G__ G__
 

Detailed Description

GIS Library - Handles program initialization.

(C) 2001-2008, 2011 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
GRASS GIS Development Team

Definition in file gisinit.c.

Function Documentation

◆ G__check_gisinit()

void G__check_gisinit ( void  )

Checks to see if GIS engine is initialized.

Definition at line 100 of file gisinit.c.

Referenced by G_init_all().

◆ G__gisinit()

void G__gisinit ( const char *  version,
const char *  pgm 
)

Initialize GIS Library and ensures a valid mapset is available.

Parameters
version
pgmprogram (module) name
Returns
always returns 0 on success
G_fatal_error() is called on error

Definition at line 43 of file gisinit.c.

◆ G__no_gisinit()

void G__no_gisinit ( const char *  version)

Initialize GIS Library.

Initializes GIS engine, but does not check for a valid mapset.

Definition at line 82 of file gisinit.c.

◆ G_init_all()

Variable Documentation

◆ G__

struct G__ G__

Definition at line 29 of file gisinit.c.