The Assimilation Project  based on Assimilation version
Go to the documentation of this file.
23 #ifndef _RESOURCELSB_H
24 #define _RESOURCELSB_H
25 #include <projectcommon.h>
26 #include <assimobj.h>
27 #include <configcontext.h>
28 #include <resourcecmd.h>
29 #include <childprocess.h>
43 typedef struct _ResourceLSB ResourceLSB;
45 struct _ResourceLSB{
47  char * lsbpath;
49  char* argv[3];
50 };
52 #define LSB_ROOT "/etc/init.d"
53 #define STATUSOP "status"
54 #define VALIDATEOP "validate-all"
56 // This 'constructor' creates a subclass object, but returns a superclass object type.
57 WINEXPORT ResourceCmd* resourcelsb_new(guint structsize, ConfigContext* request
58 , gpointer user_data, ResourceCmdCallback callback);
60 #endif/*_RESOURCELSB_H*/
void(* ResourceCmdCallback)(ConfigContext *request, gpointer user_data, enum HowDied reason, int rc, int signal, gboolean core_dumped, const char *stringresult)
Definition: resourcecmd.h:44
char * lsbpath
Definition: resourcelsb.h:47
Definition: projectcommon.h:45
This file defines our base object class: AssimObj.
ResourceCmd baseclass
Base object: implements ref, unref, toString.
Definition: resourcelsb.h:46
WINEXPORT ResourceCmd * resourcelsb_new(guint structsize, ConfigContext *request, gpointer user_data, ResourceCmdCallback callback)
Constructor for ResourceLSB class.
Definition: resourcelsb.c:49
Project common header file.
Implements Configuration Context class.
char * argv[3]
Definition: resourcelsb.h:49
Implements the resource command abstract class.
ChildProcess * child
Definition: resourcelsb.h:48
Implements Child Process class.