The Assimilation Project  based on Assimilation version 1.1.7.1474836767
resourceocf.h
Go to the documentation of this file.
1 
23 #ifndef _RESOURCEOCF_H
24 #define _RESOURCEOCF_H
25 #include <projectcommon.h>
26 #include <assimobj.h>
27 #include <configcontext.h>
28 #include <resourcecmd.h>
29 #include <childprocess.h>
42 typedef struct _ResourceOCF ResourceOCF;
43 
44 struct _ResourceOCF{
46  char * ocfpath;
49  char* argv[3];
50 };
51 
52 #define OCF_ROOT "/usr/lib/ocf"
53 #define OCF_RES_D "resource.d"
54 #define HB_RSCTMPDIR "/var/lib/heartbeat/lrm"
55 
56 // This 'constructor' creates a subclass object, but returns a superclass object type.
57 WINEXPORT ResourceCmd* resourceocf_new(guint structsize, ConfigContext* request
58 , gpointer user_data, ResourceCmdCallback callback);
60 #endif/*_RESOURCEOCF_H*/
ResourceCmd baseclass
Base object: implements ref, unref, toString.
Definition: resourceocf.h:45
void(* ResourceCmdCallback)(ConfigContext *request, gpointer user_data, enum HowDied reason, int rc, int signal, gboolean core_dumped, const char *stringresult)
Definition: resourcecmd.h:44
WINEXPORT ResourceCmd * resourceocf_new(guint structsize, ConfigContext *request, gpointer user_data, ResourceCmdCallback callback)
Constructor for ResourceOCF class.
Definition: resourceocf.c:49
ConfigContext * environment
Environment for child process.
Definition: resourceocf.h:47
#define WINEXPORT
Definition: projectcommon.h:45
This file defines our base object class: AssimObj.
char * ocfpath
Definition: resourceocf.h:46
Project common header file.
ChildProcess * child
Definition: resourceocf.h:48
Implements Configuration Context class.
char * argv[3]
malloced
Definition: resourceocf.h:49
Implements the resource command abstract class.
Implements Child Process class.