[Initng-svn] r2944 - initng/src

svn at initng.thinktux.net svn at initng.thinktux.net
Mon Feb 6 11:47:58 CET 2006


Author: jimmy
Date: Mon Feb  6 11:47:57 2006
New Revision: 2944

Modified:
   initng/src/initng_global.h
Log:
Added some new hook structs, and wrote comments on the old onces.


Modified: initng/src/initng_global.h
==============================================================================
--- initng/src/initng_global.h	(original)
+++ initng/src/initng_global.h	Mon Feb  6 11:47:57 2006
@@ -59,22 +59,28 @@
     stype_h stypes;
 
     /* all hooks to hook at */
-    s_call ASTATUS_CHANGE;
-    s_call PARSERS;
-    s_call SWATCHERS;
-    s_call FDWATCHERS;
-    s_call PIPEWATCHERS;
-    s_call ALARM;
-    s_call MAIN;
-    s_call A_FORK;
-    s_call HANDLE_KILLED;
-    s_call COMPENSATE_TIME;
-    s_call ERR_MSG;
-    s_call LAUNCH;
-    s_call DEP_ON;
-    s_call ADDITIONAL_PARSE;
-    s_call DUMP_STATE;
-    s_call RELOAD_STATE;
+    s_call ASTATUS_CHANGE;	/* Calles as sonn as the ASTATUS changes */
+    s_call PARSERS;		/* Called when a service neds its data */
+    s_call ADDITIONAL_PARSE;	/* Called after a service been parsed, and extra parsing may exist */
+    s_call SWATCHERS;		/* Called when system state changes */
+    s_call FDWATCHERS;		/* Called when initng open filedescriptors recive data */
+    s_call PIPEWATCHERS;	/* Called when a service has some output, that initng rescived */
+    s_call ALARM;		/* Called when the sceduler is set, and go of */
+    s_call MAIN;		/* Called every main loop */
+    s_call A_FORK;		/* Called after a process forks to start */
+    s_call HANDLE_KILLED;	/* Called when a process dies */
+    s_call COMPENSATE_TIME;	/* Called when initng detects a system time change */
+    s_call ERR_MSG;		/* Called when an error message is sent, so all output plugins can show it */
+    s_call LAUNCH;		/* Called when a process are getting launched */
+    s_call DUMP_STATE;		/* Tells plugins to dump all their data to disk, becouse initng will be reloaded */
+    s_call RELOAD_STATE;	/* Tells plugins to reload allk their data from disk */
+    s_call DEP_ON;		/* Called when a function trys to find out a service dependency */
+
+    /* new ones */
+    s_call IS_CHANGE;		/* Called when the rought state of a service changes */
+    s_call CHECK_START_DEP_UP;	/* Called and all this hooks have to return TRUE for launch to start */
+    s_call CHECK_STOP_DEP_UP;	/* Called and all this hooks have to return TRUE for the service to stop */
+    s_call CHECK_UP_TEST	/* Called when a service is trying to set the RUNNING state, is a up test */
 
 
     /* global variables */


More information about the Initng-svn mailing list