The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
LogSourceFd class.

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

Collaboration diagram for LogSourceFd class.:

Functions

FSTATIC void logsourcefd_newtext (GMainFd *fdself, const char *string, int len)
 Just stash away our new string - appending to what's already there. More...
 
FSTATIC void logsourcefd_finalize (GMainFd *fdself)
 LogSourceFd class. finalize routine More...
 
LogSourceFdlogsourcefd_new (gsize cpsize, int fd, int priority, GMainContext *context, const char *logdomain, GLogLevelFlags loglevel, const char *prefix)
 Construct a new LogSourceFd class. object and return it. More...
 
typedef struct _LogSourceFd LogSourceFd
 

Detailed Description

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

mainly used with pipes.

Typedef Documentation

typedef struct _LogSourceFd LogSourceFd

Definition at line 32 of file logsourcefd.h.

Function Documentation

FSTATIC void logsourcefd_finalize ( GMainFd fdself)

LogSourceFd class. finalize routine

Definition at line 104 of file logsourcefd.c.

References CASTTOCLASS.

Referenced by logsourcefd_new().

Here is the caller graph for this function:

LogSourceFd* logsourcefd_new ( gsize  cpsize,
int  fd,
int  priority,
GMainContext *  context,
const char *  logdomain,
GLogLevelFlags  loglevel,
const char *  prefix 
)

Construct a new LogSourceFd class. object and return it.

Definition at line 39 of file logsourcefd.c.

References _GMainFd::finalize, gmainfd_new(), logsourcefd_finalize(), logsourcefd_newtext(), NEWSUBCLASS, and _GMainFd::newtext.

Referenced by childprocess_new(), and test_log_command_output().

Here is the call graph for this function:

Here is the caller graph for this function:

FSTATIC void logsourcefd_newtext ( GMainFd fdself,
const char *  string,
int  len 
)

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

Definition at line 68 of file logsourcefd.c.

References CASTTOCLASS.

Referenced by logsourcefd_new().

Here is the caller graph for this function: