bozo: Tidy header includes
[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 #include <rx/rxkad.h>
14
15 /* bnode.c */
16 int bnode_CoreName(struct bnode *abnode, char *acoreName, char *abuffer);
17 int bnode_GetString(struct bnode *abnode, char *abuffer, afs_int32 alen);
18 int bnode_GetParm(struct bnode *abnode, afs_int32 aindex, char *abuffer,
19                   afs_int32 alen);
20 int bnode_GetStat(struct bnode *abnode, afs_int32 * astatus);
21 int bnode_RestartP(struct bnode *abnode);
22 int bnode_HasCore(struct bnode *abnode);
23 int bnode_WaitAll(void);
24 int bnode_SetGoal(struct bnode *abnode, int agoal);
25 int bnode_SetFileGoal(struct bnode *abnode, int agoal);
26 int bnode_ApplyInstance(int (*aproc)(struct bnode *, void *), void *arock);
27 int bnode_Register(char *, struct bnode_ops *, int);
28 int bnode_DeleteName(char *);
29 int bnode_Hold(struct bnode *);
30 int bnode_Release(struct bnode *);
31 int bnode_Delete(struct bnode *);
32 int bnode_PendingTimeout(struct bnode *abnode);
33 void bnode_Int(int asignal);
34 int bnode_Init(void);
35 int bnode_FreeTokens(struct bnode_token *alist);
36 int bnode_ParseLine(char *aline, struct bnode_token **alist);
37 int bnode_NewProc(struct bnode *abnode, char *aexecString, char *coreName,
38                   struct bnode_proc **aproc);
39 int bnode_StopProc(struct bnode_proc *aproc, int asignal);
40 int bnode_Deactivate(struct bnode *abnode);
41
42 /* bosserver.c */
43 void bozo_Log(char *format, ... );
44 int bozo_ReBozo(void);
45 int WriteBozoFile(char *aname);
46
47 /* bosoprocs.c */
48 int GetRequiredDirPerm(const char *path);
49 void *bozo_ShutdownAndExit(void *arock /* really int asignal */);
50 int initBosEntryStats(void);
51 int DirAccessOK(void);
52
53 /* fsbnodeops.c */
54 char *copystr(char *a);
55
56 /* bosoprocs.c */
57 void *bozo_ShutdownAndExit(void *arock /* really int asignal */);
58
59 static_inline struct bozo_key *
60 ktc_to_bozoptr(struct ktc_encryptionKey *key) {
61     return (struct bozo_key *)key;
62 }
63
64 #endif