-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpfsxattr.h
More file actions
27 lines (21 loc) · 979 Bytes
/
pfsxattr.h
File metadata and controls
27 lines (21 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _PSYNC_FSXATTR_H
#define _PSYNC_FSXATTR_H
#include "pcompat.h"
#include "psynclib.h"
#if defined(P_OS_MACOSX)
#define PFS_XATTR_IGN , uint32_t ign
#else
#define PFS_XATTR_IGN
#endif
int psync_fs_setxattr(const char *path, const char *name, const char *value, size_t size, int flags PFS_XATTR_IGN);
int psync_fs_getxattr(const char *path, const char *name, char *value, size_t size PFS_XATTR_IGN);
int psync_fs_listxattr(const char *path, char *list, size_t size);
int psync_fs_removexattr(const char *path, const char *name);
void psync_fs_file_deleted(psync_fileid_t fileid);
void psync_fs_folder_deleted(psync_folderid_t folderid);
void psync_fs_task_deleted(uint64_t taskid);
void psync_fs_task_to_file(uint64_t taskid, psync_fileid_t fileid);
void psync_fs_task_to_folder(uint64_t taskid, psync_folderid_t folderid);
void psync_fs_static_to_task(uint64_t statictaskid, uint64_t taskid);
void psync_fs_file_to_task(psync_fileid_t fileid, uint64_t taskid);
#endif