afsd: Make mountdir check kernel-specific
[openafs.git] / src / afsd / afsd.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 AFSD_AFSD_H
11 #define AFSD_AFSD_H
12
13 #ifdef IGNORE_SOME_GCC_WARNINGS
14 # pragma GCC diagnostic warning "-Wstrict-prototypes"
15 #endif
16
17 extern int afsd_debug;
18 extern int afsd_verbose;
19 extern char afsd_cacheMountDir[];
20
21 void afsd_init(void);
22 int afsd_parse(int argc, char **argv);
23 int afsd_run(void);
24
25 /* a function that is called from afsd_fork in a new process/thread */
26 typedef void* (*afsd_callback_func) (void *rock);
27
28 /* afsd.c expects these to be implemented; it does not implement them itself! */
29 void afsd_mount_afs(const char *rn, const char *mountdir);
30 int afsd_check_mount(const char *rn, const char *mountdir);
31 void afsd_set_rx_rtpri(void);
32 void afsd_set_afsd_rtpri(void);
33 int afsd_call_syscall();
34 int afsd_fork(int wait, afsd_callback_func cbf, void *rock);
35 int afsd_daemon(int nochdir, int noclose);
36
37 #endif /* AFSD_AFSD_H */