]> granicus.if.org Git - postgresql/blob - src/include/tcop/tcopprot.h
Add DLLIMPORT declarations needed by contrib modules.
[postgresql] / src / include / tcop / tcopprot.h
1 /*-------------------------------------------------------------------------
2  *
3  * tcopprot.h
4  *        prototypes for postgres.c.
5  *
6  *
7  * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: tcopprot.h,v 1.51 2002/10/21 18:57:35 petere Exp $
11  *
12  * OLD COMMENTS
13  *        This file was created so that other c files could get the two
14  *        function prototypes without having to include tcop.h which single
15  *        handedly includes the whole f*cking tree -- mer 5 Nov. 1991
16  *
17  *-------------------------------------------------------------------------
18  */
19 #ifndef TCOPPROT_H
20 #define TCOPPROT_H
21
22 #include <setjmp.h>
23
24 #include "executor/execdesc.h"
25 #include "lib/stringinfo.h"
26 #include "tcop/dest.h"
27
28
29 extern DLLIMPORT sigjmp_buf Warn_restart;
30 extern bool Warn_restart_ready;
31 extern bool InError;
32 extern CommandDest whereToSendOutput;
33 extern bool HostnameLookup;
34 extern bool ShowPortNumber;
35 extern DLLIMPORT char* debug_query_string;
36
37 #ifndef BOOTSTRAP_INCLUDE
38
39 extern List *pg_parse_query(StringInfo query_string, Oid *typev, int nargs);
40 extern List *pg_analyze_and_rewrite(Node *parsetree);
41 extern List *pg_parse_and_rewrite(char *query_string,
42                                          Oid *typev, int nargs);
43 extern Plan *pg_plan_query(Query *querytree);
44 extern void pg_exec_query_string(StringInfo query_string,
45                                          CommandDest dest,
46                                          MemoryContext parse_context);
47
48 #endif   /* BOOTSTRAP_INCLUDE */
49
50 extern void die(SIGNAL_ARGS);
51 extern void quickdie(SIGNAL_ARGS);
52 extern void authdie(SIGNAL_ARGS);
53 extern int      PostgresMain(int argc, char *argv[], const char *username);
54 extern void ResetUsage(void);
55 extern void ShowUsage(const char *title);
56
57 #endif   /* TCOPPROT_H */