The Assimilation Project  based on Assimilation version 1.1.7.1474836767
logsourcefd.h
Go to the documentation of this file.
1 
25 #ifndef _LOGSOURCEFd_H
26 # define _LOGSOURCEFd_H
27 #include <projectcommon.h>
28 #include <gmainfd.h>
29 
32 typedef struct _LogSourceFd LogSourceFd;
33 
34 struct _LogSourceFd {
36  char * logdomain;
37  char * prefix;
38  GLogLevelFlags loglevel;
39  int charcount;
40  int linecount;
42 };
43 // We use g_source_ref() and g_source_unref() to manage reference counts
44 
45 
46 WINEXPORT LogSourceFd* logsourcefd_new(gsize cpsize, int fd, int priority, GMainContext* context, const char * logdomain
47 , GLogLevelFlags loglevel, const char * prefix);
48 
50 #endif/*LOGSOURCEFD_H*/
GLogLevelFlags loglevel
What level to log these outputs to.
Definition: logsourcefd.h:38
int charcount
How many characters have been logged (read).
Definition: logsourcefd.h:39
#define WINEXPORT
Definition: projectcommon.h:45
char * logdomain
What log domain to log to.
Definition: logsourcefd.h:36
WINEXPORT 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: logsourcefd.c:39
char * prefix
What prefix to print before our log entries.
Definition: logsourcefd.h:37
GMainFd baseclass
Our base class - NOT an AssimObj.
Definition: logsourcefd.h:35
Project common header file.
int linecount
How many lines have been logged.
Definition: logsourcefd.h:41
Implements a gmainloop source for reading file descriptor pipes.