Skip to content

Commit

Permalink
Return IoRead/IoWrite from io*FilterGroupSet()
Browse files Browse the repository at this point in the history
This makes is possible to chain functions more effectively.
  • Loading branch information
dwsteele committed Jun 7, 2019
1 parent e701e8f commit 78b3337
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/common/io/read.c
Expand Up @@ -375,7 +375,7 @@ ioReadFilterGroup(const IoRead *this)
FUNCTION_TEST_RETURN(this->filterGroup); FUNCTION_TEST_RETURN(this->filterGroup);
} }


void IoRead *
ioReadFilterGroupSet(IoRead *this, IoFilterGroup *filterGroup) ioReadFilterGroupSet(IoRead *this, IoFilterGroup *filterGroup)
{ {
FUNCTION_LOG_BEGIN(logLevelTrace); FUNCTION_LOG_BEGIN(logLevelTrace);
Expand All @@ -391,7 +391,7 @@ ioReadFilterGroupSet(IoRead *this, IoFilterGroup *filterGroup)


this->filterGroup = ioFilterGroupMove(filterGroup, this->memContext); this->filterGroup = ioFilterGroupMove(filterGroup, this->memContext);


FUNCTION_LOG_RETURN_VOID(); FUNCTION_LOG_RETURN(IO_READ, this);
} }


/*********************************************************************************************************************************** /***********************************************************************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/common/io/read.h
Expand Up @@ -34,7 +34,7 @@ Getters/Setters
bool ioReadBlock(const IoRead *this); bool ioReadBlock(const IoRead *this);
bool ioReadEof(const IoRead *this); bool ioReadEof(const IoRead *this);
IoFilterGroup *ioReadFilterGroup(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); int ioReadHandle(const IoRead *this);


/*********************************************************************************************************************************** /***********************************************************************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions src/common/io/write.c
Expand Up @@ -281,7 +281,7 @@ ioWriteFilterGroup(const IoWrite *this)
FUNCTION_TEST_RETURN(this->filterGroup); FUNCTION_TEST_RETURN(this->filterGroup);
} }


void IoWrite *
ioWriteFilterGroupSet(IoWrite *this, IoFilterGroup *filterGroup) ioWriteFilterGroupSet(IoWrite *this, IoFilterGroup *filterGroup)
{ {
FUNCTION_LOG_BEGIN(logLevelTrace); FUNCTION_LOG_BEGIN(logLevelTrace);
Expand All @@ -301,7 +301,7 @@ ioWriteFilterGroupSet(IoWrite *this, IoFilterGroup *filterGroup)


this->filterGroup = ioFilterGroupMove(filterGroup, this->memContext); this->filterGroup = ioFilterGroupMove(filterGroup, this->memContext);


FUNCTION_LOG_RETURN_VOID(); FUNCTION_LOG_RETURN(IO_WRITE, this);
} }


/*********************************************************************************************************************************** /***********************************************************************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/common/io/write.h
Expand Up @@ -34,7 +34,7 @@ void ioWriteClose(IoWrite *this);
Getters/Setters Getters/Setters
***********************************************************************************************************************************/ ***********************************************************************************************************************************/
IoFilterGroup *ioWriteFilterGroup(const IoWrite *this); IoFilterGroup *ioWriteFilterGroup(const IoWrite *this);
void ioWriteFilterGroupSet(IoWrite *this, IoFilterGroup *filterGroup); IoWrite *ioWriteFilterGroupSet(IoWrite *this, IoFilterGroup *filterGroup);
int ioWriteHandle(const IoWrite *this); int ioWriteHandle(const IoWrite *this);


/*********************************************************************************************************************************** /***********************************************************************************************************************************
Expand Down

0 comments on commit 78b3337

Please sign in to comment.