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