The Assimilation Project  based on Assimilation version 1.1.7.1474836767
gmainfd.c File Reference

Implements a gmainloop source for reading file descriptor pipes. More...

#include <projectcommon.h>
#include <memory.h>
#include <gmainfd.h>
#include <errno.h>
Include dependency graph for gmainfd.c:

Go to the source code of this file.

Macros

#define READBUFSIZE   1024
 

Functions

FSTATIC gboolean gmainfd_gsource_prepare (GSource *dummysource, gint *dummytimeout)
 GmainFd class. version of a gmainloop prepare function - get ready to go into the poll function More...
 
FSTATIC gboolean gmainfd_gsource_check (GSource *source)
 GmainFd class. version of a gmainloop check function - check for input after the poll function More...
 
FSTATIC gboolean gmainfd_gsource_dispatch (GSource *source, GSourceFunc unusedcallback, gpointer unused_user_data)
 GmainFd class. version of a gmainloop dispatch function - we read the data from the file descriptor More...
 
FSTATIC gboolean gmainfd_gsource_readmore (GMainFd *self)
 
FSTATIC void gmainfd_gsource_finalize (GSource *source)
 GmainFd class. version of a gmainloop finalize function More...
 
FSTATIC void gmainfd_newtext (GMainFd *self, const char *string, int len)
 Just stash away our new string - appending to what's already there. More...
 
FSTATIC void gmainfd_finalize (GMainFd *)
 
GMainFdgmainfd_new (gsize cpsize, int fd, int priority, GMainContext *context)
 Construct a new GMainFd object and return it. More...
 

Detailed Description

Implements a gmainloop source for reading file descriptor pipes.

This class implements a base class for reading file descriptor pipes and stashing the results away in strings. It is notable that this class is not a subclass of AssimObj class.

Author
Copyright © 2013 - Alan Robertson alanr.nosp@m.@uni.nosp@m.x.sh
This file is part of the Assimilation Project. The Assimilation software is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Assimilation software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with the Assimilation Project software. If not, see http://www.gnu.org/licenses/

Definition in file gmainfd.c.

Macro Definition Documentation

#define READBUFSIZE   1024

Definition at line 36 of file gmainfd.c.

Referenced by gmainfd_gsource_readmore().