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