More tweaks to try & get Haiku Trash working
h/t Jérôme for all the hand-holding for Luc & me
This commit is contained in:
parent
61f4c24d0f
commit
8ba9fb85e1
2 changed files with 4 additions and 2 deletions
|
|
@ -52,7 +52,9 @@
|
||||||
#include <storage/Path.h>
|
#include <storage/Path.h>
|
||||||
#include <support/TypeConstants.h>
|
#include <support/TypeConstants.h>
|
||||||
|
|
||||||
status_t haiku_trash(const char *f)
|
static const char *kAttrOriginalPath = "_trk/original_path";
|
||||||
|
|
||||||
|
extern "C" status_t haiku_trash(const char *f)
|
||||||
{
|
{
|
||||||
status_t err;
|
status_t err;
|
||||||
attr_info ai;
|
attr_info ai;
|
||||||
|
|
|
||||||
|
|
@ -331,7 +331,7 @@ typedef struct safer_dirent
|
||||||
char d_name[FILENAME_MAX];
|
char d_name[FILENAME_MAX];
|
||||||
} safer_dirent;
|
} safer_dirent;
|
||||||
|
|
||||||
extern "C" status_t haiku_trash(const char *f);
|
extern status_t haiku_trash(const char *f);
|
||||||
|
|
||||||
#define dirent safer_dirent
|
#define dirent safer_dirent
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue