shithub: vcardfs

ref: ad8274ef26c101c9d03d8c4ca6376e3a90a67734
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)`
- ...