umka/kocdecl.h

33 lines
688 B
C
Raw Normal View History

#ifndef KOS_H_INCLUDED
#define KOS_H_INCLUDED
2017-11-02 21:41:11 +01:00
#include <stdint.h>
#include <stdbool.h>
2017-11-02 21:41:11 +01:00
struct bdfe {
uint32_t attr;
uint32_t enc;
uint32_t ctime;
uint32_t cdate;
uint32_t atime;
uint32_t adate;
uint32_t mtime;
uint32_t mdate;
uint64_t size;
char name[264];
};
#define KF_READONLY 0x01
#define KF_HIDDEN 0x02
#define KF_SYSTEM 0x04
#define KF_LABEL 0x08
#define KF_FOLDER 0x10
uint32_t kos_time_to_epoch(uint32_t *time);
2018-04-24 14:51:06 +02:00
void *kos_fuse_init(int fd);
2017-11-02 21:41:11 +01:00
uint8_t *kos_fuse_readdir(const char *path, off_t offset);
void *kos_fuse_getattr(const char *path);
2017-11-16 02:16:20 +01:00
long *kos_fuse_read(const char *path, char *buf, size_t size, off_t offset);
#endif