1/*
2  Copyright (c) 2010 Frank Lahm <franklahm@gmail.com>
3
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  GNU General Public License for more details.
13*/
14
15#ifndef AFPFUNC_HELPERS
16#define AFPFUNC_HELPERS
17
18#ifdef HAVE_CONFIG_H
19#include "config.h"
20#endif /* HAVE_CONFIG_H */
21
22#include <string.h>
23#include <stdio.h>
24#include <stdlib.h>
25#include <errno.h>
26
27#include <atalk/util.h>
28#include <atalk/cnid.h>
29#include <atalk/logger.h>
30#include <atalk/volume.h>
31#include <atalk/directory.h>
32#include <atalk/queue.h>
33#include <atalk/bstrlib.h>
34#include <atalk/globals.h>
35
36#include "file.h"
37#include "filedir.h"
38#include "directory.h"
39#include "dircache.h"
40#include "hash.h"
41#include "afp_config.h"
42#include "volume.h"
43
44#include "test.h"
45#include "subtests.h"
46
47extern char **cnamewrap(const char *name);
48
49extern int getfiledirparms(AFPObj *obj, uint16_t vid, cnid_t did, const char *name);
50extern int createdir(AFPObj *obj, uint16_t vid, cnid_t did, const char *name);
51extern int createfile(AFPObj *obj, uint16_t vid, cnid_t did, const char *name);
52extern int delete(AFPObj *obj, uint16_t vid, cnid_t did, const char *name);
53extern int enumerate(AFPObj *obj, uint16_t vid, cnid_t did);
54extern uint16_t openvol(AFPObj *obj, const char *name);
55
56#endif  /* AFPFUNC_HELPERS */
57