00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef _ALIAS_H
00012 #define _ALIAS_H
00013
00014 #ifndef _BE_BUILD_H
00015 #include <BeBuild.h>
00016 #endif
00017 #include <SupportDefs.h>
00018
00019 class BPath;
00020 class BDataIO;
00021
00022 status_t resolve_link(const char *path, BPath *result,
00023 bool block = false);
00024 status_t write_alias(const char *path, BDataIO *s,
00025 size_t *len = NULL);
00026 status_t write_alias(const char *path, void *buf, size_t *len);
00027
00028 status_t read_alias(BDataIO *s, BPath *result, size_t *len = NULL,
00029 bool block = false);
00030 status_t read_alias(const void *buf, BPath *result, size_t *len,
00031 bool block = false);
00032
00033 #endif