shithub: vcardfs

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