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