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