The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
jsondiscovery.h
Go to the documentation of this file.
1 
25 #ifndef _JSONDISCOVERY_H
26 #define _JSONDISCOVERY_H
27 #include <projectcommon.h>
28 #include <discovery.h>
29 #include <childprocess.h>
32 
33 #define JSONAGENTROOT DISCOVERY_DIR
34 
39  char * instancename;
40  char * logprefix;
41  char * _fullpath;
43  guint _intervalsecs;
45  const char * (*fullpath)(JsonDiscovery*);
46 };
47 WINEXPORT JsonDiscovery* jsondiscovery_new(const char * discoverytype,
48  const char * instancename,
49  int intervalsecs,
50  ConfigContext* jsonparams,
51  NetGSource*, ConfigContext*, gsize);
53 #endif /* _JSONDISCOVERY_H */
WINEXPORT JsonDiscovery * jsondiscovery_new(const char *discoverytype, const char *instancename, int intervalsecs, ConfigContext *jsonparams, NetGSource *, ConfigContext *, gsize)
#define WINEXPORT
Definition: projectcommon.h:45
Semi-Abstract class (yes, really) defining discovery objects.
char * logprefix
Prefix for logging stderr messages.
Definition: jsondiscovery.h:40
char * instancename
Instance name.
Definition: jsondiscovery.h:39
ChildProcess * child
Our current child process...
Definition: jsondiscovery.h:42
Project common header file.
JsonDiscovery abstract C-class - it supports discovering "things" through running commands outputting...
Definition: jsondiscovery.h:37
Discovery class abstract C-class - it supports discovering "things" through subclasses for different ...
Definition: discovery.h:47
ConfigContext * jsonparams
Parameters to the resource agent.
Definition: jsondiscovery.h:44
char * _fullpath
Full pathname of the discovery agent.
Definition: jsondiscovery.h:41
Discovery baseclass
Base discovery object.
Definition: jsondiscovery.h:38
guint _intervalsecs
How often to run this discovery method?
Definition: jsondiscovery.h:43
Implements Child Process class.
The NetGSource class objects integrate NetIO class objects into the g_main_loop paradigm.
Definition: netgsource.h:43