Code: Select all
struct zz_vfs_dri_s {
const char * name; /**< friendly name. */
zz_err_t (*reg)(zz_vfs_dri_t); /**< register driver. */
zz_err_t (*unreg)(zz_vfs_dri_t); /**< un-register driver. */
zz_u16_t (*ismine)(const char *); /**< is mine. */
zz_vfs_t (*new)(const char *, va_list); /**< create VFS. */
void (*del)(zz_vfs_t); /**< destroy VFS. */
const
char * (*uri)(zz_vfs_t); /**< get URI. */
zz_err_t (*open)(zz_vfs_t); /**< open. */
zz_err_t (*close)(zz_vfs_t); /**< close. */
zz_u32_t (*read)(zz_vfs_t, void *, zz_u32_t); /**< read. */
zz_u32_t (*tell)(zz_vfs_t); /**< get position. */
zz_u32_t (*size)(zz_vfs_t); /**< get size. */
zz_err_t (*seek)(zz_vfs_t,zz_u32_t,zz_u8_t); /**< offset,whence. */
};
zz_err_t (*seek)(zz_vfs_t,zz_u32_t,zz_u8_t);
zz_err_t is obviously a typedef

*seek is the name of the variable within the structure. no issue there.
(zz_vfs_t,zz_u32_t,zz_u8_t) .. what the? never see this behavior before, which is odd I thought I knew structs.