The Assimilation Project  based on Assimilation version 1.1.7.1474836767
GmainFd class.

(base) Class for reading from file descriptors (usually pipes) from gmainloop programs. More...

Collaboration diagram for GmainFd class.:

Modules

 LogSourceFd class.
 Class for logging the content of file descriptors in the glib gmainloop world.
 

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

(base) Class for reading from file descriptors (usually pipes) from gmainloop programs.

Function Documentation

FSTATIC void gmainfd_finalize ( GMainFd )
FSTATIC gboolean gmainfd_gsource_check ( GSource *  source)

GmainFd class. version of a gmainloop check function - check for input after the poll function

Definition at line 142 of file gmainfd.c.

References __FUNCTION__, CASTTOCLASS, and FSTATIC.

FSTATIC gboolean gmainfd_gsource_dispatch ( GSource *  source,
GSourceFunc  callback,
gpointer  user_data 
)

GmainFd class. version of a gmainloop dispatch function - we read the data from the file descriptor

Definition at line 164 of file gmainfd.c.

References CASTTOCLASS, FSTATIC, and gmainfd_gsource_readmore().

Here is the call graph for this function:

FSTATIC void gmainfd_gsource_finalize ( GSource *  source)

GmainFd class. version of a gmainloop finalize function

Definition at line 192 of file gmainfd.c.

References CASTTOCLASS, and proj_class_dissociate().

Here is the call graph for this function:

FSTATIC gboolean gmainfd_gsource_prepare ( GSource *  source,
gint *  timeout 
)

GmainFd class. version of a gmainloop prepare function - get ready to go into the poll function

Definition at line 132 of file gmainfd.c.

References FSTATIC.

FSTATIC gboolean gmainfd_gsource_readmore ( GMainFd self)

Definition at line 174 of file gmainfd.c.

References FSTATIC, and READBUFSIZE.

Referenced by gmainfd_gsource_dispatch(), and gmainfd_new().

Here is the caller graph for this function:

GMainFd* gmainfd_new ( gsize  cpsize,
int  fd,
int  priority,
GMainContext *  context 
)

Construct a new GMainFd object and return it.

Definition at line 64 of file gmainfd.c.

References __FUNCTION__, FSTATIC, gmainfd_gsource_readmore(), gmainfd_newtext(), NEWSUBCLASS, and proj_class_register_object().

Referenced by childprocess_new(), logsourcefd_new(), and test_read_command_output_at_EOF().

Here is the call graph for this function:

Here is the caller graph for this function:

FSTATIC void gmainfd_newtext ( GMainFd self,
const char *  string,
int  len 
)

Just stash away our new string - appending to what's already there.

Definition at line 120 of file gmainfd.c.

References FSTATIC.

Referenced by gmainfd_new().

Here is the caller graph for this function: