1ecab39ce5 2019-05-02 1: #ifndef XVFS_COMMON_H_1B4B28D60EBAA11D5FF85642FA7CA22C29E8E817
1ecab39ce5 2019-05-02 2: #define XVFS_COMMON_H_1B4B28D60EBAA11D5FF85642FA7CA22C29E8E817 1
1ecab39ce5 2019-05-02 3:
f74a2e47ab 2019-05-02 4: #include <tcl.h>
f74a2e47ab 2019-05-02 5:
1ecab39ce5 2019-05-02 6: #define XVFS_PROTOCOL_VERSION 1
f74a2e47ab 2019-05-02 7:
32b55a907b 2019-05-02 8: typedef const char **(*xvfs_proc_getChildren_t)(const char *path, Tcl_WideInt *count);
32b55a907b 2019-05-02 9: typedef const unsigned char *(*xvfs_proc_getData_t)(const char *path, Tcl_WideInt start, Tcl_WideInt *length);
d121970301 2019-05-02 10: typedef int (*xvfs_proc_getInfo_t)(const char *path, Tcl_StatBuf *statBuf);
e5b6962adf 2019-05-02 11:
e5b6962adf 2019-05-02 12: struct Xvfs_FSInfo {
e5b6962adf 2019-05-02 13: int protocolVersion;
d121970301 2019-05-02 14: const char *name;
e5b6962adf 2019-05-02 15: xvfs_proc_getChildren_t getChildrenProc;
e5b6962adf 2019-05-02 16: xvfs_proc_getData_t getDataProc;
d121970301 2019-05-02 17: xvfs_proc_getInfo_t getInfoProc;
e5b6962adf 2019-05-02 18: };
acfc5037c6 2019-05-02 19:
acfc5037c6 2019-05-02 20: #if XVFS_MODE == standalone
acfc5037c6 2019-05-02 21: #define Xvfs_Register(interp, fsInfo) xvfs_standalone_register(interp, fsInfo)
acfc5037c6 2019-05-02 22: #endif
f74a2e47ab 2019-05-02 23:
e5b6962adf 2019-05-02 24: int Xvfs_Register(Tcl_Interp *interp, struct Xvfs_FSInfo *fsInfo);
1ecab39ce5 2019-05-02 25:
1ecab39ce5 2019-05-02 26: #endif