-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknx.h
More file actions
31 lines (23 loc) · 651 Bytes
/
knx.h
File metadata and controls
31 lines (23 loc) · 651 Bytes
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
/*-------------------------------------------------------------------------
*
* knx.h
* PostgreSQL type definitions for KNX Group/Internal Addresses
*
* Author: Michael Kefeder (htd)
*
*-------------------------------------------------------------------------
*/
#ifndef KNX_H
#define KNX_H
#include "fmgr.h"
#undef KNX_DEBUG
#define KNX_WEAK_MODE
/*
* uint16 is the internal storage format for KNX addresses.
*/
typedef uint16 knx_addr;
#define KNX_ADDR_FORMAT UINT16_FORMAT
#define PG_GETARG_KNX_ADDR(n) PG_GETARG_UINT16(n)
#define PG_RETURN_KNX_ADDR(x) PG_RETURN_UINT16(x)
extern void initialize(void);
#endif /* KNX_H */