[Initng-svn] r3640 - initng/trunk/src

svn at initng.thinktux.net svn at initng.thinktux.net
Mon Apr 3 01:28:27 CEST 2006


Author: jimmy
Date: Mon Apr  3 01:28:26 2006
New Revision: 3640

Modified:
   initng/trunk/src/initng_service_data_types.h
Log:
Did write some comments in a header.


Modified: initng/trunk/src/initng_service_data_types.h
==============================================================================
--- initng/trunk/src/initng_service_data_types.h	(original)
+++ initng/trunk/src/initng_service_data_types.h	Mon Apr  3 01:28:26 2006
@@ -27,13 +27,18 @@
 
 typedef enum
 {
-    U_D_T = 0,
-    STRING = 1,
-    STRINGS = 2,
-    SET = 3,
-    INT = 6,
-    ALIAS = 7,
-    TIME_T = 8,
+    U_D_T = 0,                /* UnDefinedType, unknown data type */
+    STRING = 1,               /* Entry shud contain a string, when set again, the old string is owerwritten */
+    STRINGS = 2,              /* On every add, a new string with same name is added */
+    SET = 3,                  /* A Bool, Enable or Disable */
+    INT = 6,                  /* An value set in it */
+    ALIAS = 7,                /* Set this datatype when s_entry->alias is filled */
+    TIME_T = 8,               /* Contains an time entry */
+    
+    /*
+     * This works works like abow, but you can attach variable names to it,
+     * like # exec start = /bin/test; and # env TEST = "hello";
+     */
     VARIABLE_STRING = 51,
     VARIABLE_STRINGS = 52,
     VARIABLE_SET = 53,
@@ -45,11 +50,11 @@
 struct ss_entry
 {
     /* set in statically */
-    const char *opt_name;
-    e_dt opt_type;
-    stype_h *ot;
-    const char *opt_desc;
-    s_entry *alias;
+    const char *opt_name;    /* The option name in a string */
+    e_dt opt_type;           /* The variable type, the type of content, see abow */
+    stype_h *ot;             /* Only used if you want to bound the option, to a special service type */
+    const char *opt_desc;    /* Short description, shown by ngc -O */
+    s_entry *alias;          /* You might point this to another s_entry, with another option_name, to get an alias */
 
     /* this should not be set static */
     int opt_name_len;


More information about the Initng-svn mailing list