]> andersk Git - moira.git/blob - dbck/dbck.h
Rewrite functions to avoid having SQL DECLARE SECTIONs around function
[moira.git] / dbck / dbck.h
1 /* $Header$
2  *
3  * Declarations for Moira database consistancy checker
4  *
5  *  (c) Copyright 1988 by the Massachusetts Institute of Technology.
6  *  For copying and distribution information, please see the file
7  *  <mit-copyright.h>.
8  */
9
10 #include <moira_site.h>
11 #include <mit-copyright.h>
12
13 #ifndef NULL
14 #define NULL ((void*)0)
15 #endif
16
17 #define MODE_ASK 1
18 #define MODE_NO 2
19 #define MODE_PREEN 3
20 #define MODE_YES 4
21
22 extern int debug, mode, fast, dcmenable, warn;
23 extern struct hash *users, *machines, *clusters, *lists;
24 extern struct hash *filesys, *nfsphys, *strings, *subnets, *string_dups;
25
26 #define MAX_ID_VALUE 32765
27 #define MIN_ID_VALUE 100
28
29 #define dprintf         if (debug) printf
30
31 struct user {
32   char login[9];
33   char potype;
34   char *fullname;
35   int status;
36   int users_id;
37   int pobox_id;
38   int comment;
39   int modby;
40   int fmodby;
41   int pmodby;
42   int sigwho;
43 };
44
45 struct machine {
46   char name[33];
47   char owner_type;
48   int owner_id;
49   int snet_id;
50   int mach_id;
51   int clucount;
52   int acomment;
53   int ocomment;
54   int creator;
55   int modby;
56 };
57
58 struct subnet {
59   char name[33];
60   char owner_type;
61   int owner_id;
62   int snet_id;
63   int modby;
64 };
65
66 struct cluster {
67     char name[33];
68     int clu_id;
69     int modby;
70 };
71
72 struct list {
73     char name[33];
74     char acl_type;
75     int list_id;
76     int  acl_id;
77     int members;
78 };
79
80 struct string {
81     char *name;
82     int string_id;
83     int refc;
84 };
85
86 struct filesys {
87     char name[33];
88     char dir[81];
89     char type;
90     int filsys_id;
91     int mach_id;
92     int owner;
93     int owners;
94     int phys_id;
95 };
96
97 struct nfsphys {
98     char dir[33];
99     int mach_id;
100     int nfsphys_id;
101     int allocated;
102     int count;
103 };
This page took 0.040807 seconds and 5 git commands to generate.