Skip to content
Permalink
Browse files

Return IoRead/IoWrite from io*FilterGroupSet()

This makes is possible to chain functions more effectively.
  • Loading branch information...
dwsteele committed Jun 7, 2019
1 parent e701e8f commit 78b333790c69aca991f740a9ea6b1982fb70c3d6
Showing with 6 additions and 6 deletions.
  1. +2 −2 src/common/io/read.c
  2. +1 −1 src/common/io/read.h
  3. +2 −2 src/common/io/write.c
  4. +1 −1 src/common/io/write.h
@@ -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);
}

/***********************************************************************************************************************************
@@ -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);

/***********************************************************************************************************************************
@@ -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);
}

/***********************************************************************************************************************************
@@ -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);

/***********************************************************************************************************************************

0 comments on commit 78b3337

Please sign in to comment.
You can’t perform that action at this time.