Go to the source code of this file.
Functions | |
| int | afp_config_parse (AFPObj *obj, char *processname) |
| void | afp_config_free (AFPObj *obj) |
| int | load_charset (struct vol *vol) |
| int | load_volumes (AFPObj *obj, lv_flags_t flags) |
| Initialize volumes and load ini configfile. | |
| void | unload_volumes (AFPObj *obj) |
| struct vol * | getvolumes (void) |
| struct vol * | getvolbyvid (const uint16_t) |
| struct vol * | getvolbypath (AFPObj *obj, const char *path) |
| Search volume by path, creating user home vols as necessary. | |
| struct vol * | getvolbyname (const char *name) |
| void | volume_free (struct vol *vol) |
| Free all resources allocated in a struct vol in load_volumes(). | |
| void | volume_unlink (struct vol *volume) |
| struct extmap * | getdefextmap (void) |
| struct extmap * | getextmap (const char *path) |
|
extern |
get rid of any allocated afp_option buffers.
|
extern |
Initialize an AFPObj and options from ini config file
| struct extmap * getdefextmap | ( | void | ) |
| struct extmap * getextmap | ( | const char * | path | ) |
|
extern |
Search volume by path, creating user home vols as necessary.
Path may be absolute or relative. Ordinary volume structs are created when the ini config is initially parsed (load_volumes()), but user volumes are as load_volumes() only can create the user volume of the logged in user in an AFP session in afpd, but not when called from e.g. cnid_metad or dbd. Both cnid_metad and dbd thus need a way to lookup and create struct vols for user home by path. This is what this func does as well.
| [in,out] | obj | handle |
| [in] | path | path, may be relative or absolute |
|
extern |
|
extern |
|
extern |
Load charsets for a volume
|
extern |
Initialize volumes and load ini configfile.
| [in] | obj | handle |
| [in] | flags | flags controlling volume load behaviour:
|
|
extern |
|
extern |
Free all resources allocated in a struct vol in load_volumes().
Actually opening a volume (afp_openvol()) will allocate additional resources which are freed in closevol()
|
extern |
Remove a volume from the linked list of volumes