The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
netgsource.h
Go to the documentation of this file.
1 
27 #ifndef _NETGSOURCE_H
28 #define _NETGSOURCE_H
29 #include <projectcommon.h>
30 #include <glib.h>
31 #include <netgsource.h>
32 #include <netaddr.h>
33 #include <netio.h>
34 typedef struct _NetGSource NetGSource;
35 #include <listener.h>
38 
39 
43 struct _NetGSource {
44  GSource baseclass;
45  GPollFD _gfd;
46  int _socket;
47  gint _gsourceid;
48  gpointer _userdata;
49  GSourceFuncs* _gsfuncs;
51  GHashTable* _dispatchers;
52  GDestroyNotify _finalize;
54  void (*sendframesets)(NetGSource*,const NetAddr*, GSList*);
55  void(*addListener)(NetGSource*, guint16, Listener*);
56 };
57 WINEXPORT NetGSource* netgsource_new(NetIO* iosrc, GDestroyNotify notify,
58  gint priority, gboolean can_recurse, GMainContext* context,
59  gsize objsize, gpointer userdata);
60 #endif /* _NETGSOURCE_H */