shithub: vcardfs

ref: f4a258fdbe0f2b82de6de38f491e31a4bb1a4c3f
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:

- ctl: make commands work (write/save, new)
- export: uppercase properties, 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)`
- ...