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