netatalk: afpfunc_helpers.h Source File

netatalk 4.5.0
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 <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 <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 */
cnid_t
uint32_t cnid_t
Definition adouble.h:156
afp_config.h
openvol
uint16_t openvol(AFPObj *obj, const char *name)
Definition afpfunc_helpers.c:179
getfiledirparms
int getfiledirparms(AFPObj *obj, uint16_t vid, cnid_t did, const char *name)
Definition afpfunc_helpers.c:105
enumerate
int enumerate(AFPObj *obj, uint16_t vid, cnid_t did)
Definition afpfunc_helpers.c:155
cnamewrap
char ** cnamewrap(const char *name)
Definition afpfunc_helpers.c:92
createdir
int createdir(AFPObj *obj, uint16_t vid, cnid_t did, const char *name)
Definition afpfunc_helpers.c:119
createfile
int createfile(AFPObj *obj, uint16_t vid, cnid_t did, const char *name)
Definition afpfunc_helpers.c:131
cnid.h
config.h
dircache.h
filedir.h
vid
static uint16_t vid
Definition fuzz.c:51
globals.h
directory.h
util.h
Netatalk utility functions.
volume.h
logger.h
did
cnid_t did
Definition nad_cp.c:93
obj
static AFPObj obj
Definition netatalk.c:69
queue.h
AFPObj
Definition globals.h:166
subtests.h
test.h