The Assimilation Project  based on Assimilation version
Go to the documentation of this file.
25 #ifndef _GMAINFd_H
26 # define _GMAINFd_H
27 #include <projectcommon.h>
28 #include <assimobj.h>
32 typedef struct _GMainFd GMainFd;
34 struct _GMainFd {
35  GSource baseclass;
36  GPollFD gfd;
37  GString* textread;
38  gboolean atEOF;
39  int gsourceid;
40  void (*newtext)(GMainFd*, const char*, int);
41  gboolean (*readmore)(GMainFd* self);
42  void (*finalize)(GMainFd*);
43 };
44 // We use g_source_ref() and g_source_unref() to manage reference counts
47 WINEXPORT GMainFd* gmainfd_new(gsize cpsize, int fd, int priority, GMainContext* context);
50 #endif/*GMAINFD_H*/
GSource baseclass
Our base class - NOT an AssimObj.
Definition: gmainfd.h:35
void(* newtext)(GMainFd *, const char *, int)
Deal with newly read text.
Definition: gmainfd.h:40
gboolean atEOF
TRUE if the file descriptor is at EOF.
Definition: gmainfd.h:38
Definition: projectcommon.h:45
This file defines our base object class: AssimObj.
GPollFD gfd
Poll/select object for gmainloop.
Definition: gmainfd.h:36
void(* finalize)(GMainFd *)
finalize function
Definition: gmainfd.h:42
GString * textread
The text we&#39;ve read so far.
Definition: gmainfd.h:37
Project common header file.
gboolean(* readmore)(GMainFd *self)
Read another chunk.
Definition: gmainfd.h:41
int gsourceid
Definition: gmainfd.h:39
WINEXPORT GMainFd * gmainfd_new(gsize cpsize, int fd, int priority, GMainContext *context)
Construct a new GMainFd object and return it.
Definition: gmainfd.c:64