netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
afpfunc_helpers.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2010 Frank Lahm <[email protected]>
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 <errno.h>
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26
27#include <atalk/cnid.h>
28#include <atalk/directory.h>
29#include <atalk/globals.h>
30#include <atalk/logger.h>
31#include <atalk/queue.h>
32#include <atalk/util.h>
33#include <atalk/volume.h>
34
35#include "afp_config.h"
36#include "dircache.h"
37#include "directory.h"
38#include "file.h"
39#include "filedir.h"
40#include "hash.h"
41#include "subtests.h"
42#include "test.h"
43#include "volume.h"
44
45extern char **cnamewrap(const char *name);
46
47extern int getfiledirparms(AFPObj *obj, uint16_t vid, cnid_t did,
48 const char *name);
49extern int createdir(AFPObj *obj, uint16_t vid, cnid_t did, const char *name);
50extern int createfile(AFPObj *obj, uint16_t vid, cnid_t did, const char *name);
51extern int delete (AFPObj *obj, uint16_t vid, cnid_t did, const char *name);
52extern int enumerate(AFPObj *obj, uint16_t vid, cnid_t did);
53extern uint16_t openvol(AFPObj *obj, const char *name);
54
55#endif /* AFPFUNC_HELPERS */
uint32_t cnid_t
Definition adouble.h:156
uint16_t openvol(AFPObj *obj, const char *name)
Definition afpfunc_helpers.c:179
int getfiledirparms(AFPObj *obj, uint16_t vid, cnid_t did, const char *name)
Definition afpfunc_helpers.c:105
int enumerate(AFPObj *obj, uint16_t vid, cnid_t did)
Definition afpfunc_helpers.c:155
char ** cnamewrap(const char *name)
Definition afpfunc_helpers.c:92
int createdir(AFPObj *obj, uint16_t vid, cnid_t did, const char *name)
Definition afpfunc_helpers.c:119
int createfile(AFPObj *obj, uint16_t vid, cnid_t did, const char *name)
Definition afpfunc_helpers.c:131
cnid_t did
Definition nad_cp.c:92
static AFPObj obj
Definition netatalk.c:62
Definition globals.h:154