-
Notifications
You must be signed in to change notification settings - Fork 5
/
pgsnmpd.h
57 lines (48 loc) · 1.25 KB
/
pgsnmpd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*-------------------------------------------------------------------------
* pgsnmpd.h
*
* Global definitions for the main PostgreSQL SNMP Daemon.
* This file should be included first in all pgsnmpd source files.
*
* Copyright (c) 2006, PostgreSQL Global Development Group
* Author: Joshua Tolley
*
* $Id: pgsnmpd.h,v 1.6 2007/12/12 01:24:06 h-saito Exp $
*-------------------------------------------------------------------------
*/
#ifndef PGSNMPD_H
#define PGSNMPD_H
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "postgres_fe.h"
#include "libpq-fe.h"
/* snmp include files expose the autoconf variables about the package, and
* so does the pg includes. Oops.
*/
#ifdef PACKAGE_BUGREPORT
#undef PACKAGE_BUGREPORT
#endif
#ifdef PACKAGE_NAME
#undef PACKAGE_NAME
#endif
#ifdef PACKAGE_STRING
#undef PACKAGE_STRING
#endif
#ifdef PACKAGE_TARNAME
#undef PACKAGE_TARNAME
#endif
#ifdef PACKAGE_VERSION
#undef PACKAGE_VERSION
#endif
/*
* Global includes from net-snmp.
*/
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
#include <net-snmp/agent/mib_modules.h>
extern char *conninfo;
extern PGconn *dbconn;
bool IsAlive(void);
#endif