]> andersk Git - moira.git/blob - clients/moira/f_defs.h
f9edf4fcc76cfd44a6ba32cc3767d8cc04652c3a
[moira.git] / clients / moira / f_defs.h
1 /*      This is the file f_defs.h for the SMS Client, which allows a
2  *      user to quickly and easily maintain most parts of the SMS database.
3  *      It Contains: useful definitions.
4  *
5  *      Created:        4/12/88
6  *      By:             Chris D. Peterson
7  *
8  *      $Source$
9  *      $Author$
10  *      $Header$
11  *
12  *      Copyright 1988 by the Massachusetts Institute of Technology.
13  *
14  *      For further information on copyright and distribution
15  *      see the file mit-copyright.h
16  */
17
18 #include "mit-copyright.h"
19
20 #ifndef _f_defs_
21 #define _f_defs_
22
23 /* attach.c */
24
25 int GetFS();                    /* Get information about named filsys. */
26 int GetFSM();                   /* Get filesys by machine */
27 int AddFS();                    /* Adds a new Filsys to the database. */
28 int ChangeFS();                 /* Changes information in a Filsys entry. */
29 int DeleteFS();                 /* Delete a filesystem from the database. */
30
31 int AddFSToGroup();             /* Add a filesystem to an fsgroup */
32 int RemoveFSFromGroup();        /* remove a filesystem from an fsgroup */
33 int ChangeFSGroupOrder();       /* change the sortorder on an fsgrouop */
34 int FSGroupHelp();              /* print info about fsgroups */
35
36 int GetFSAlias();               /* Gets the value for a Filsys alias. */
37 int CreateFSAlias();            /* Creates a new alias in the database. */
38 int DeleteFSAlias();            /* Deletes an FS alias from the database. */
39
40 int AttachHelp();               /* Help information specific to filsys. */
41
42 /* cluster.c */
43
44 int ShowMachineInfo();          /* Show information on a(many) machine(s). */
45 int ShowMachineQuery();         /* Show mach info based on complex query */
46 int AddMachine();               /* add a new machine to teh database. */
47 int UpdateMachine();            /* updates machine information. */
48 int DeleteMachine();            /* delete a machine from the database. */
49 int MachineToClusterMap();      /* show machines in clusters. */
50 int AddMachineToCluster();      /* add a machine to a new cluster. */
51 int RemoveMachineFromCluster(); /* remove a machine from a cluster. */
52
53 int ShowClusterInfo();          /* Show information about a cluster. */
54 int AddCluster();               /* adds a new cluster to the database. */
55 int UpdateCluster();            /* updates information about a cluster. */
56 int DeleteCluster();            /* removes a cluste from the database. */
57
58 int ShowClusterInfo();          /* show information about a cluster. */
59 int MachinesInCluster();        /* list all machines in a give cluster. */
60 int AddCluster();
61 int UpdateCluster();            /* add, update, and delete clusters. */
62 int DeleteCluster();
63
64 int ShowClusterData();          /* Show, add, and remove data  */
65 int AddClusterData();           /* associated with a cluster. */
66 int RemoveClusterData();
67
68 int ShowSubnetInfo();
69 int AddSubnet();
70 int UpdateSubnet();
71 int DeleteSubnet();
72
73 int ShowCname();
74 int AddCname();
75 int DeleteCname();
76
77 /* delete.c */
78
79 int DeleteList(), DeleteUser();
80
81 /* lists.c */
82
83 int ListByMember();             /* list all list to which a member belongs. */
84 int ListByAdministrator();      /* list all list to which a given member can
85                                  administer. */
86 int ListAllGroups();
87 int ListAllPublicMailLists();   /* List misc. types of lists. */
88 int ListAllMailLists();
89
90 int AddMember(), DeleteMember(); /* add and delete mamber of current list. */
91 int ListAllMembers();
92 int ListUserMembers();          /* List various members of the current list. */
93 int ListListMembers();
94 int ListStringMembers();
95
96 int ShowListInfo();             /* show info about a list. */
97 int UpdateList();               /* change info about a list. */
98 int InterRemoveItemFromLists(); /* Interactivly remove item from all lists */
99
100 int ListmaintMemberMenuEntry(); /* entry and exit functions for member menu. */
101 int ListmaintMemberMenuExit();
102 int ListHelp();                 /* help function for lists. */
103
104 /* nfs.c */
105
106 int ShowNFSService();           /* functions that manipulate nfs physical  */
107 int AddNFSService();            /* services. */
108 int UpdateNFSService();
109 int DeleteNFSService();
110
111 /* pobox.c */
112
113 int GetUserPOBox();             /* operate on user post office boxes. */
114 int SetUserPOBox();
115 int RemoveUserPOBox();
116
117 /* quota.c */
118
119 int ShowDefaultQuota();         /* show or change system default quota. */
120 int ChangeDefaultQuota();
121
122 int GetQuota();                 /* modify a user's quota. */
123 int GetQuotaByFilesys();
124 int AddQuota();
125 int UpdateQuota();
126 int DeleteQuota();
127
128 /* user.c */
129
130 int ShowUserByLogin();          /* misc. ways to show user. */
131 int ShowUserByName();
132 int ShowUserByClass();
133 int ShowUserById();
134 int AddNewUser();               /* add a new user to the database. */
135 int RegisterUser();             /* register a user. */
136 int UpdateUser();               /* modify info about a user. */
137 int DeactivateUser();           /* change a user's status to DELETED */
138 int ChangeUserPOBox();          /* change the PO box of a user. */
139 int DeleteUserByUid();          /* detete a user by uid. */
140 int GetKrbmap();                /* fetch a user->kerberos mapping */
141 int AddKrbmap();
142 int DeleteKrbmap();
143 int GetDirFlags();
144 int SetDirFlags();
145
146 /* printer.c */
147 int AddPcap();
148 int GetPcap();
149 int ChngPcap();
150 int DeletePcap();
151 int GetPalladium(), AddPalladium(), ChngPalladium(), DeletePalladium();
152 int ShowPalladiumAlias(), AddPalladiumAlias(), DeletePalladiumAlias();
153
154 /* zephyr.c */
155 int AddZephyr();
156 int GetZephyr();
157 int ChngZephyr();
158 int DeleteZephyr();
159
160 /* dcm.c */
161 int EnableDcm(), InProgress(), DcmFailed(), Dcm();
162 int enabledcm(), showserv(), addserv(), updateserv(), delserv();
163 int showhost(), resetsrverr(), resetsrvc(), resethosterr();
164 int resethost(), sethostor(), addhost(), updatehost(), delhost();
165 int inprogress(), failed(), dcm();
166
167 /* misc.c */
168 int TableStats(), ShowClients(), ShowValue(), ShowAlias();
169
170 /* utils.c */
171
172 /*
173  * For descriptions of all of these functions see the
174  * internals documentation.
175  */
176
177 void EncryptMITID();            /* Encrypts an mit id number. */
178 char **CopyInfo();              /* Copies a NULL terminated array of strings */
179 void FreeInfo();                /* Frees a NULL terminated array of strings. */
180 void FreeQueue();               /* Frees an entire queue. */
181 void FreeAndClear();            /* Frees a single pointer. */
182 void Loop();                    /* Performs an operation on every item in
183                                    a queue. */
184 void QueryLoop();               /* Queries the user before performing
185                                    an operation on every item in
186                                    a queue. */
187 void RemoveHyphens();           /* Removes the hyphens from a string. */
188 void SlipInNewName();           /* Slips a new name into an argument list in
189                                    the correct place. */
190 int CountArgs();                /* Counts the strings in a NULL terminated
191                                    array. */
192 int GetValueFromUser();         /* Updates value by asking the user. */
193 int GetYesNoValueFromUser();    /* Updates yes/no value by asking the user. */
194 int GetFSTypes();               /* Gets Filesystem types from a user. */
195 int NullFunc();                 /* NULL return function. */
196 int Print();                    /* Prints out array of strings. */
197 int PrintByType();              /* Prints out array of strings by type. */
198 int PrintHelp();                /* Prints out help information. */
199 int StoreInfo();                /* Stores info returned from and SMS query
200                                    in a queue. */
201 int Scream();                   /* Query Return function that yells if called*/
202 int ToggleVerboseMode();        /* Turns on and off the verbose variable. */
203 char *CanonicalizeHostname();   /* this is what it does. */
204 char *NullPrint();              /* Prints nothing, returns argv[0]. */
205 char *Strsave();                /* allocated space for a copy of the string. */
206 char *atot();                   /* convert unix time to date string */
207 struct qelem *QueueTop();       /* Finds the top of a queue. */
208 Bool Confirm();                 /* Confirms a delete operation, with user. */
209 Bool YesNoQuestion();           /* Asks a user a yes no type question. */
210 Bool YesNoQuitQuestion();       /* Asks a user a yes - no - quit question. */
211
212 #endif /* _f_defs_ */           /* Do Not Add Anything After This Line */
213
214
This page took 0.039934 seconds and 3 git commands to generate.