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