GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71933
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

void G__check_gisinit ( void  )

Checks to see if GIS engine is initialized.

Definition at line 98 of file gisinit.c.

References _, G_sleep(), and G_warning().

Referenced by G_init_all().

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.

References _, G_fatal_error(), G_location_path(), G_mapset(), G_mapset_permissions(), G_set_program_name(), and GIS_H_VERSION.

void G__no_gisinit ( const char *  version)

Initialize GIS Library.

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

Definition at line 81 of file gisinit.c.

References _, G_fatal_error(), and GIS_H_VERSION.

Variable Documentation

struct G__ G__

Definition at line 29 of file gisinit.c.