15abe3c5b3621227568d13cd1c1fb9e74eb30ce3
[openafs.git] / src / bozo / bosprototypes.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef _BOSPROTOTYPES_H_
11 #define _BOSPROTOTYPES_H_
12
13 /* bnode.c */
14 int bnode_CoreName(struct bnode *abnode, char *acoreName, char *abuffer);
15 int bnode_GetString(struct bnode *abnode, char *abuffer, afs_int32 alen);
16 int bnode_GetParm(struct bnode *abnode, afs_int32 aindex, char *abuffer, 
17                   afs_int32 alen);
18 int bnode_GetStat(struct bnode *abnode, afs_int32 * astatus);
19 int bnode_RestartP(struct bnode *abnode);
20 int bnode_HasCore(struct bnode *abnode);
21 int bnode_WaitAll(void);
22 int bnode_SetGoal(struct bnode *abnode, int agoal);
23 int bnode_SetFileGoal(struct bnode *abnode, int agoal);
24 int bnode_ApplyInstance(int (*aproc)(struct bnode *, void *), void *arock);
25 int bnode_Register(char *, struct bnode_ops *, int);
26 int bnode_DeleteName(char *);
27 int bnode_Hold(struct bnode *);
28 int bnode_Release(struct bnode *);
29 int bnode_Delete(struct bnode *);
30 int bnode_PendingTimeout(struct bnode *abnode);
31 void bnode_Int(int asignal);
32 int bnode_Init(void);
33 int bnode_FreeTokens(struct bnode_token *alist);
34 int bnode_ParseLine(char *aline, struct bnode_token **alist);
35 int bnode_NewProc(struct bnode *abnode, char *aexecString, char *coreName,
36                   struct bnode_proc **aproc);
37 int bnode_StopProc(struct bnode_proc *aproc, int asignal);
38 int bnode_Deactivate(struct bnode *abnode);
39
40 /* bosint.ss.c */
41 struct rx_call;
42 int BOZO_ExecuteRequest(register struct rx_call *z_call);
43
44 /* bosserver.c */
45 void bozo_Log(char *format, ... );
46 int bozo_ReBozo(void);
47 int WriteBozoFile(char *aname);
48
49 /* bosoprocs.c */
50 int GetRequiredDirPerm(const char *path);       
51 void *bozo_ShutdownAndExit(void *arock /* really int asignal */);
52 int initBosEntryStats(void);
53 int DirAccessOK(void);
54
55 /* fsbnodeops.c */
56 char *copystr(char *a);
57
58 /* bosoprocs.c */
59 void *bozo_ShutdownAndExit(void *arock /* really int asignal */);
60
61 #endif