1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-02-21 19:48:29 +02:00

Move function prototype to a better location in the header.

This commit is contained in:
David Steele 2022-12-23 14:06:35 +07:00
parent 56b55f81e8
commit a63e87ea2c

View File

@ -69,6 +69,9 @@ ioReadLine(IoRead *const this)
return ioReadLineParam(this, false);
}
// Read varint-128 encoding
uint64_t ioReadVarIntU64(IoRead *this);
// Are there bytes ready to read immediately? There are no guarantees on how much data is available to read but it must be at least
// one byte.
typedef struct IoReadReadyParam
@ -77,9 +80,6 @@ typedef struct IoReadReadyParam
bool error; // Error when read not ready
} IoReadReadyParam;
// Read varint-128 encoding
uint64_t ioReadVarIntU64(IoRead *this);
#define ioReadReadyP(this, ...) \
ioReadReady(this, (IoReadReadyParam){VAR_PARAM_INIT, __VA_ARGS__})