odyssey/sources/header.h

20 lines
269 B
C
Raw Normal View History

2017-07-06 11:41:06 +00:00
#ifndef SHAPITO_HEADER_H
#define SHAPITO_HEADER_H
2016-11-09 12:36:56 +00:00
/*
2017-06-07 11:37:42 +00:00
* SHAPITO.
2016-11-09 12:36:56 +00:00
*
* Protocol-level PostgreSQL client library.
*/
2017-06-28 12:19:24 +00:00
typedef struct so_header so_header_t;
2016-11-09 12:36:56 +00:00
2017-06-28 12:19:24 +00:00
struct so_header
{
2016-11-09 12:36:56 +00:00
uint8_t type;
uint32_t len;
char data[];
2016-11-09 12:36:56 +00:00
} so_packed;
2017-07-06 11:41:06 +00:00
#endif /* SHAPITO_HEADER_H */