The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
discovery.h
Go to the documentation of this file.
1 
36 #ifndef _DISCOVERY_H
37 #define _DISCOVERY_H
38 #include <projectcommon.h>
39 #include <assimobj.h>
40 #include <netgsource.h>
41 #include <configcontext.h>
44 
45 typedef struct _Discovery Discovery;
47 struct _Discovery {
49  char* (*instancename)(const Discovery* self);
50  void (*flushcache)(Discovery* self);
51  gboolean (*discover)(Discovery* self);
52  guint (*discoverintervalsecs) (const Discovery* self);
53  guint64 reportcount;
55  guint64 discovercount;
57  char* _instancename;
59  guint _timerid;
62  gboolean _sentyet;
64 };
65 
66 WINEXPORT Discovery* discovery_new(const char *,NetGSource*, ConfigContext*, gsize objsize);
69 WINEXPORT void discovery_unregister(const char *);
70 #ifdef DISCOVERY_SUBCLASS
72 #endif
73 
74 
76 
77 #endif /* _DISCOVERY_H */