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