1 /* 2 * Copyright 2001-2004 Brandon Long 3 * All Rights Reserved. 4 * 5 * ClearSilver Templating System 6 * 7 * This code is made available under the terms of the ClearSilver License. 8 * http://www.clearsilver.net/license.hdf 9 * 10 */ 11 12 /* 13 * revision-controlled file system (RCFS) with meta-info storage 14 */ 15 #ifndef __RCFS_H_ 16 #define __RCFS_H_ 1 17 18 typedef struct _rcfs RCFS; 19 20 NEOERR * rcfs_init (RCFS **rcfs); 21 NEOERR * rcfs_destroy (RCFS **rcfs); 22 23 NEOERR * rcfs_load (const char *path, int version, char **data); 24 NEOERR * rcfs_save (const char *path, const char *data, const char *user, 25 const char *log); 26 NEOERR * rcfs_lock (const char *path, int *lock); 27 void rcfs_unlock (int lock); 28 NEOERR * rcfs_meta_load (const char *path, HDF **meta); 29 NEOERR * rcfs_meta_save (const char *path, HDF *meta); 30 NEOERR * rcfs_listdir (const char *path, ULIST **list); 31 NEOERR * rcfs_link (const char *src_path, const char *dest_path); 32 NEOERR * rcfs_unlink (const char *path); 33 34 #endif /* __RCFS_H_ */ 35