netatalk  4.6.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
netatalk_conf.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2012 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 AFP_CONFIG_H
16#define AFP_CONFIG_H
17
18#include <stdint.h>
19
20#include <atalk/globals.h>
21#include <atalk/volume.h>
22
23extern int afp_config_parse(AFPObj *obj, char *processname);
24extern void afp_config_free(AFPObj *obj);
25extern int load_charset(struct vol *vol);
26extern int load_afp_conf_vols(AFPObj *obj, lv_flags_t flags);
27extern void unload_volumes(AFPObj *obj);
28extern struct vol *getvolumes(void);
29extern int conf_cnid_scheme_in_use(const AFPObj *obj,
30 const char *scheme);
31extern struct vol *getvolbyvid(const uint16_t);
32extern struct vol *getvolbypath(AFPObj *obj, const char *path);
33extern struct vol *getvolbyname(const char *name);
34extern void volume_free(struct vol *vol);
35extern void volume_unlink(struct vol *volume);
37#define NETATALK_READBUF_LIMIT ((uint64_t)1 << 30)
38
39extern int netatalk_readbuf_clamp(int readbuf, uint32_t quantum,
40 uint64_t limit);
41
42/* Extension type/creator mapping */
43struct extmap *getdefextmap(void);
44struct extmap *getextmap(const char *path);
45
46#endif
struct extmap * getdefextmap(void)
Definition netatalk_conf.c:2509
struct extmap * getextmap(const char *)
Definition netatalk_conf.c:2485
unsigned char quantum
Definition etc/papd/main.c:74
lv_flags_t
Definition include/atalk/volume.h:123
struct vol * getvolbypath(AFPObj *obj, const char *path)
Search volume by path, creating user home vols as necessary.
Definition netatalk_conf.c:2966
int load_afp_conf_vols(AFPObj *obj, lv_flags_t flags)
Initialize volumes and load ini configfile.
Definition netatalk_conf.c:2635
int load_charset(struct vol *vol)
Definition netatalk_conf.c:2609
void volume_unlink(struct vol *volume)
Definition netatalk_conf.c:2554
void volume_free(struct vol *vol)
Free all resources allocated in a struct vol in load_afp_conf_vols().
Definition netatalk_conf.c:2581
void unload_volumes(AFPObj *obj)
Definition netatalk_conf.c:2808
int conf_cnid_scheme_in_use(const AFPObj *obj, const char *scheme)
Whether any configured volume resolves to the given CNID scheme.
Definition netatalk_conf.c:2841
struct vol * getvolbyvid(const uint16_t)
Definition netatalk_conf.c:2867
struct vol * getvolbyname(const char *name)
Definition netatalk_conf.c:3187
int netatalk_readbuf_clamp(int readbuf, uint32_t quantum, uint64_t limit)
Definition netatalk_conf.c:804
void afp_config_free(AFPObj *obj)
Definition netatalk_conf.c:3889
struct vol * getvolumes(void)
Definition netatalk_conf.c:2827
int afp_config_parse(AFPObj *obj, char *processname)
Definition netatalk_conf.c:3206
Definition globals.h:190
Definition include/atalk/volume.h:27
Definition include/atalk/directory.h:140
Definition include/atalk/volume.h:33