Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / bozo / bosprototypes.h
CommitLineData
805e021f
CE
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 */
16int bnode_CoreName(struct bnode *abnode, char *acoreName, char *abuffer);
17int bnode_GetString(struct bnode *abnode, char *abuffer, afs_int32 alen);
18int bnode_GetParm(struct bnode *abnode, afs_int32 aindex, char *abuffer,
19 afs_int32 alen);
20int bnode_GetStat(struct bnode *abnode, afs_int32 * astatus);
21int bnode_RestartP(struct bnode *abnode);
22int bnode_HasCore(struct bnode *abnode);
23int bnode_WaitAll(void);
24int bnode_SetGoal(struct bnode *abnode, int agoal);
25int bnode_SetFileGoal(struct bnode *abnode, int agoal);
26int bnode_ApplyInstance(int (*aproc)(struct bnode *, void *), void *arock);
27int bnode_Register(char *, struct bnode_ops *, int);
28int bnode_DeleteName(char *);
29int bnode_Hold(struct bnode *);
30int bnode_Release(struct bnode *);
31int bnode_Delete(struct bnode *);
32int bnode_PendingTimeout(struct bnode *abnode);
33void bnode_Int(int asignal);
34int bnode_Init(void);
35int bnode_FreeTokens(struct bnode_token *alist);
36int bnode_ParseLine(char *aline, struct bnode_token **alist);
37int bnode_NewProc(struct bnode *abnode, char *aexecString, char *coreName,
38 struct bnode_proc **aproc);
39int bnode_StopProc(struct bnode_proc *aproc, int asignal);
40
41/* bosserver.c */
42void bozo_Log(const char *format, ... );
43int bozo_ReBozo(void);
44int WriteBozoFile(char *aname);
45int bozo_CreatePidFile(char *ainst, char *aname, pid_t apid);
46int bozo_DeletePidFile(char *ainst, char *aname);
47
48/* bosoprocs.c */
49int GetRequiredDirPerm(const char *path);
50void *bozo_ShutdownAndExit(void *arock /* really int asignal */);
51int initBosEntryStats(void);
52int DirAccessOK(void);
53
54/* inline functions */
55static_inline struct bozo_key *
56ktc_to_bozoptr(struct ktc_encryptionKey *key) {
57 return (struct bozo_key *)key;
58}
59
60#endif