PGROUTING  3.2
version.c
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 
3 File: version.c
4 
5 Function's developer:
6 Copyright (c) 2015 Celia Virginia Vergara Castillo
8 
9 ------
10 
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 (at your option) any later version.
15 
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20 
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 
25  ********************************************************************PGR-GNU*/
26 
28 
29 #define UNUSED(x) (void)(x)
30 
31 PGDLLEXPORT Datum pgr_version(PG_FUNCTION_ARGS);
32 
34 
39 PGDLLEXPORT Datum pgr_version(PG_FUNCTION_ARGS) {
40  UNUSED(fcinfo);
41  char *ver = "3.0.0";
42  text *result = cstring_to_text(ver);
43  PG_RETURN_TEXT_P(result);
44 }
pgr_version
PGDLLEXPORT Datum pgr_version(PG_FUNCTION_ARGS)
Returns v3.0.0 Function called only on v3.0.0 Deprecated C on v3.0.1.
Definition: version.c:39
postgres_connection.h
UNUSED
#define UNUSED(x)
Definition: version.c:29
PG_FUNCTION_INFO_V1
PG_FUNCTION_INFO_V1(pgr_version)