1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-18 04:58:51 +02:00

Return IoRead/IoWrite from io*FilterGroupSet()

This makes is possible to chain functions more effectively.
This commit is contained in:
David Steele 2019-06-07 10:35:44 -04:00
parent e701e8fd84
commit 78b333790c
4 changed files with 6 additions and 6 deletions

View File

@ -375,7 +375,7 @@ ioReadFilterGroup(const IoRead *this)
FUNCTION_TEST_RETURN(this->filterGroup);
}
void
IoRead *
ioReadFilterGroupSet(IoRead *this, IoFilterGroup *filterGroup)
{
FUNCTION_LOG_BEGIN(logLevelTrace);
@ -391,7 +391,7 @@ ioReadFilterGroupSet(IoRead *this, IoFilterGroup *filterGroup)
this->filterGroup = ioFilterGroupMove(filterGroup, this->memContext);
FUNCTION_LOG_RETURN_VOID();
FUNCTION_LOG_RETURN(IO_READ, this);
}
/***********************************************************************************************************************************

View File

@ -34,7 +34,7 @@ Getters/Setters
bool ioReadBlock(const IoRead *this);
bool ioReadEof(const IoRead *this);
IoFilterGroup *ioReadFilterGroup(const IoRead *this);
void ioReadFilterGroupSet(IoRead *this, IoFilterGroup *filterGroup);
IoRead *ioReadFilterGroupSet(IoRead *this, IoFilterGroup *filterGroup);
int ioReadHandle(const IoRead *this);
/***********************************************************************************************************************************

View File

@ -281,7 +281,7 @@ ioWriteFilterGroup(const IoWrite *this)
FUNCTION_TEST_RETURN(this->filterGroup);
}
void
IoWrite *
ioWriteFilterGroupSet(IoWrite *this, IoFilterGroup *filterGroup)
{
FUNCTION_LOG_BEGIN(logLevelTrace);
@ -301,7 +301,7 @@ ioWriteFilterGroupSet(IoWrite *this, IoFilterGroup *filterGroup)
this->filterGroup = ioFilterGroupMove(filterGroup, this->memContext);
FUNCTION_LOG_RETURN_VOID();
FUNCTION_LOG_RETURN(IO_WRITE, this);
}
/***********************************************************************************************************************************

View File

@ -34,7 +34,7 @@ void ioWriteClose(IoWrite *this);
Getters/Setters
***********************************************************************************************************************************/
IoFilterGroup *ioWriteFilterGroup(const IoWrite *this);
void ioWriteFilterGroupSet(IoWrite *this, IoFilterGroup *filterGroup);
IoWrite *ioWriteFilterGroupSet(IoWrite *this, IoFilterGroup *filterGroup);
int ioWriteHandle(const IoWrite *this);
/***********************************************************************************************************************************