]> andersk Git - moira.git/blobdiff - include/moira_site.h
fixed logic determining which lists of member to display
[moira.git] / include / moira_site.h
index 39c9ff527cdd02394b94ed8667bf7d1ff034eeca..5c0d2d92f01c235605c773898ba215353ff19bb3 100644 (file)
@@ -1,6 +1,6 @@
-/*     This is the file infodefs.h for allmaint, the SMS client that allows
- *      a user to maintaint most important parts of the SMS database.
- *     It Contains: Definitions
+/*     This is the file infodefs.h for the SMS Client, which allows a nieve
+ *      user to quickly and easily maintain most parts of the SMS database.
+ *     It Contains: useful typdefs.
  *     
  *     Created:        6/8/88
  *     By:             Chris D. Peterson
@@ -9,22 +9,22 @@
  *      $Author$
  *      $Header$
  *     
- *     Copyright 1987, 1988 by the Massachusetts Institute of Technology.
+ *     Copyright 1988 by the Massachusetts Institute of Technology.
  *
  *     For further information on copyright and distribution 
  *     see the file mit-copyright.h
  */
 
 /*
- *     This file contains all the definitions that allow easy access to 
- * elements returned by most of the SMS queries that return information.
+ *     This file contains all definitions that allow easy access to 
+ * elements returned by most of the @i[SMS] queries.
  *
- *     If order of the arguments in the SMS queries change (again) then all
- * that need to be changed is the values of these items and all
- * should be well.
+ *     If the order of the arguments in the @i[SMS] queries change (again)
+ *  then all that needs to be changed are the values of these items 
+ * and all should be well, (hopefully :-).
  *
  *                                 Chris D. Peterson - kit@athena
- *                                   6/8/88
+ *                                   7/27/88
  */
 
 #ifndef _infodefs_
 
 #include "mit-copyright.h"
 
+#define NAME 0
 
-/* Machine information queries */
+/* get_ace_use */
 
-#define M_NAME       0
-#define M_TYPE       1
-#define M_MODTIME    2
-#define M_MODBY      3
-#define M_MODWITH    4
-#define M_END        5
+#define ACE_TYPE 0
+#define ACE_NAME 1
+#define ACE_END  2
 
-/*  Machine to Cluster mapping */
+/* alias queries. */
 
-#define MAP_MACHINE  0
-#define MAP_CLUSTER  1
-#define MAP_END      2
+#define ALIAS_NAME  0
+#define ALIAS_TYPE  1
+#define ALIAS_TRANS 2
+#define ALIAS_END   3
 
 /* Cluster information queries */
 
 #define CD_DATA      2
 #define CD_END       3
 
+/* Delete Member from list queries. */
+
+#define DM_LIST      0
+#define DM_TYPE      1
+#define DM_MEMBER    2
+#define DM_END       3
+
+/* Filesys queries (attachmaint) */
+
+#define FS_NAME         0
+#define FS_TYPE         1
+#define FS_MACHINE      2
+#define FS_PACK         3
+#define FS_M_POINT      4
+#define FS_ACCESS       5
+#define FS_COMMENTS     6
+#define FS_OWNER        7
+#define FS_OWNERS       8
+#define FS_CREATE       9
+#define FS_L_TYPE       10
+#define FS_MODTIME      11
+#define FS_MODBY        12
+#define FS_MODWITH      13
+#define FS_END          14
+
+/* Get List Of Member queries. */
+
+#define GLOM_NAME     0
+#define GLOM_ACTIVE   1
+#define GLOM_PUBLIC   2
+#define GLOM_HIDDEN   3
+#define GLOM_MAILLIST 4
+#define GLOM_GROUP    5
+#define GLOM_END      6
+
 /* General List information Queries. */
 
 #define L_NAME     0
 #define L_MAILLIST 4
 #define L_GROUP    5
 #define L_GID      6
-#define L_ACL_TYPE 7
-#define L_ACL_NAME 8
+#define L_ACE_TYPE 7
+#define L_ACE_NAME 8
 #define L_DESC     9
 #define L_MODTIME  10
-#define L_MODWHO   11
+#define L_MODBY    11
 #define L_MODWITH  12
 #define L_END      13
 
-/* Get List Of Member queries. */
-
-#define GLOM_NAME     0
-#define GLOM_ACTIVE   1
-#define GLOM_PUBLIC   2
-#define GLOM_HIDDEN   3
-#define GLOM_MAILLIST 4
-#define GLOM_GROUP    5
-#define GLOM_END         6
-
 /* List Member information queries. */
 
 #define LM_LIST   0
 #define LM_TYPE   1
 #define LM_MEMBER 2
 #define LM_END    3
-#define LM_END     4
+
+/* Machine information queries */
+
+#define M_NAME       0
+#define M_TYPE       1
+#define M_MODTIME    2
+#define M_MODBY      3
+#define M_MODWITH    4
+#define M_END        5
+
+/*  Machine to Cluster mapping */
+
+#define MAP_MACHINE  0
+#define MAP_CLUSTER  1
+#define MAP_END      2
 
 /*  NFS phys. queries. */
 
 #define NFS_MODWITH 8
 #define NFS_END     9
 
-/* Quota queries */
-
-#define Q_MACHINE 0 
-#define Q_DEVICE  1
-#define Q_QUOTA   2
-#define Q_END     3
-
 /* PO box infomarion queries */
 
 #define PO_NAME    0
 #define PO_TYPE    1
-#define PO_MACHINE 2
-#define PO_BOX     3
-#define PO_END     4
+#define PO_BOX     2
+#define PO_END     3
+
+/* Quota queries */
+
+#define Q_FILESYS   0
+#define Q_LOGIN     1
+#define Q_QUOTA     2
+#define Q_DIRECTORY 3  
+#define Q_MACHINE   4
+#define Q_MODTIME   5
+#define Q_MODBY     6
+#define Q_MODWITH   7
+#define Q_END       8
 
 /* User Information queries */
 
 #define U_NAME    0
-#define U_NEWNAME 1
-#define U_UID     2
-#define U_SHELL   3
-#define U_LAST    4
-#define U_FIRST   5
-#define U_MIDDLE  6
-#define U_STATE   7  
-#define U_MITID   8
-#define U_CLASS   9
-#define U_MODTIME 10
-#define U_MODBY   11
-#define U_MODWITH 12
-#define U_END     13
+#define U_UID     1
+#define U_SHELL   2
+#define U_LAST    3
+#define U_FIRST   4
+#define U_MIDDLE  5
+#define U_STATE   6  
+#define U_MITID   7
+#define U_CLASS   8
+#define U_MODTIME 9
+#define U_MODBY   10
+#define U_MODWITH 11
+#define U_END     12
+
+/* User states (the value of argv[U_STATE] from a user query) */
+#define US_NO_LOGIN_YET 0
+#define US_REGISTERED   1
+#define US_NO_PASSWD    2
+#define US_DELETED      3
+#define US_NOT_ALLOWED  4
+#define US_END          5
+
+/* Service info */
+#define SVC_SERVICE    0
+#define SVC_INTERVAL   1
+#define SVC_TARGET     2
+#define SVC_SCRIPT     3
+#define SVC_DFGEN      4
+#define SVC_DFCHECK    5
+#define SVC_TYPE       6
+#define SVC_ENABLE     7
+#define SVC_INPROGRESS 8
+#define SVC_HARDERROR  9
+#define SVC_ERRMSG     10
+#define SVC_ACE_TYPE   11
+#define SVC_ACE_NAME   12
+#define SVC_MODTIME    13
+#define SVC_MODBY      14
+#define SVC_MODWITH    15
+#define SVC_END                16
+
+/* Service add/update */
+#define SC_SERVICE     0
+#define SC_INTERVAL    1
+#define SC_TARGET      2
+#define SC_SCRIPT      3
+#define SC_TYPE                4
+#define SC_ENABLE      5
+#define SC_ACE_TYPE    6
+#define SC_ACE_NAME    7
+#define SC_END         8
+
+/* Service/host tuples */
+#define SH_SERVICE     0
+#define SH_MACHINE     1
+#define SH_ENABLE      2
+#define SH_OVERRIDE    3
+#define SH_SUCCESS     4
+#define SH_INPROGRESS  5
+#define SH_HOSTERROR   6
+#define SH_ERRMSG      7
+#define SH_LASTTRY     8
+#define SH_LASTSUCCESS 9
+#define SH_VALUE1      10
+#define SH_VALUE2      11
+#define SH_VALUE3      12
+#define SH_MODTIME     13
+#define SH_MODBY       14
+#define SH_MODWITH     15
+#define SH_END         16
+
+/* Service/host tuple add & updates */
+#define SHI_SERVICE    0
+#define SHI_MACHINE    1
+#define SHI_ENABLE     2
+#define SHI_VALUE1     3
+#define SHI_VALUE2     4
+#define SHI_VALUE3     5
+#define SHI_END                6
 
 #endif _infodefs_              /* Do not add anything after this line. */
-
This page took 0.097213 seconds and 4 git commands to generate.