PostGIS  2.1.10dev-r@@SVN_REVISION@@
shpcommon.h
Go to the documentation of this file.
1 /**********************************************************************
2  * $Id: shpcommon.h 5646 2010-05-27 13:19:12Z pramsey $
3  *
4  * PostGIS - Spatial Types for PostgreSQL
5  * http://postgis.net
6  * Copyright 2010 Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU General Public Licence. See the COPYING file.
10  *
11  **********************************************************************/
12 
13 #ifndef SHPCOMMON_H
14 #define SHPCOMMON_H
15 
16 /* For internationalization */
17 #ifdef ENABLE_NLS
18 #include <libintl.h>
19 #include <locale.h>
20 #define _(String) gettext(String)
21 #define PACKAGE "shp2pgsql"
22 #else
23 #define _(String) String
24 #endif
25 
26 typedef struct shp_connection_state
27 {
28  /* PgSQL username to log in with */
29  char *username;
30 
31  /* PgSQL password to log in with */
32  char *password;
33 
34  /* PgSQL database to connect to */
35  char *database;
36 
37  /* PgSQL port to connect to */
38  char *port;
39 
40  /* PgSQL server to connect to */
41  char *host;
42 
44 
45 /* External shared functions */
46 char *escape_connection_string(char *str);
47 
48 #endif
struct shp_connection_state SHPCONNECTIONCONFIG
char * escape_connection_string(char *str)
Escape strings that are to be used as part of a PostgreSQL connection string.
Definition: shpcommon.c:25