fsautoproc
Basic file transformation automation management utility
Loading...
Searching...
No Matches
xx.h
Go to the documentation of this file.
1
3#ifndef FSAUTOPROC_XX_H
4#define FSAUTOPROC_XX_H
5
6#include <stddef.h>
7#include <stdint.h>
8
11#define XXBUFSZE 65536
12
15struct xxreq_s {
16 uint8_t* b;
17 const char* fp;
18 const struct fsstat_s* pst;
19 const struct fsstat_s* cst;
20 uint64_t pxx;
21 const char* cause;
22};
23
31uint64_t xxupdate(const struct xxreq_s* req);
32
33#endif//FSAUTOPROC_XX_H
Stat structure for storing the last modified time and file size.
Definition fs.h:10
File hash request structure for processing file hash changes.
Definition xx.h:15
const char * fp
Filepath to hash.
Definition xx.h:17
const struct fsstat_s * pst
Previous file stat info, may be NULL.
Definition xx.h:18
uint8_t * b
Buffer for reading file data.
Definition xx.h:16
const char * cause
Optional cause string for logging, may be NULL.
Definition xx.h:21
const struct fsstat_s * cst
Current file stat info.
Definition xx.h:19
uint64_t pxx
Previous xxHash64 value, or 0 if unknown.
Definition xx.h:20
uint64_t xxupdate(const struct xxreq_s *req)
Processes a file hash request. If the file's last modified time or size differ from the previous stat...
Definition xx.c:51