branches: front
Clone
clone: git://shithub.us/sirjofri/vcardfs gits://shithub.us/sirjofri/vcardfs
push: hjgit://shithub.us/sirjofri/vcardfs
Last commit
5e39bdc9
– sirjofri <sirjofri@sirjofri.de>
authored
on 2024/11/08 09:43
removes TODO note from readme
About
# VCARD filesystem and library
## Contents
- `libvcard`: library for parsing and writing vcard data
- `vcardfs`: vcard filesystem
## Usage
### vcardfs
Usage: `vcardfs [-m mtpt] [-s srv] [database.vcf]`
Default database is at: /usr/$user/lib/vcarddb.vcf
/mnt/vard/
ctl
import
export
John_Doe/
export
0:groupname.fn/
data
group
params/
...
0:n/
data
...
0:tel/
data
...
Jane_Doe/
...
Interaction:
- `rm /mnt/vcard/John_Doe` deletes the whole card
- `rm /mnt/vcard/John_Doe/fn` deletes the selected line
- `rm /mnt/vcard/John_Doe/fn/params/type` deletes the param
- `rm /mnt/vcard/John_Doe/fn/group` will delete the group association (not implemented yet)
- `mkdir /mnt/vcard/John_Doe/tel` will create a new phone number field
Future plans:
- import: update existing entries (how?)
- files: output with newline at the end?
### libvcard
- see `libvcard/vcard.h`
- `Vcard* vcparse(char *str)`
- `Vcard* vcparsefile(char *file)`
- `char* vcmserialize(Vcard*)`
- ...