shithub: vcardfs

ref: 9828f53e5b542da92dfdffc124dd9941d308cb1d
dir: /README.md/

View raw version
# 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/vcf/
	   ctl
	   import
	   export
	   John_Doe/
	      export
	      fn/
	         data
	         params/
	            ...
	      n/
	         data
	         ...
	      tel/
	         data
	         ...
	   Jane_Doe/
	      ...

Future plans:

- export: line breaks
- 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*)`
- ...