io: implement b_error support for file/directory operations
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#ifndef BLUELIB_IO_FILE_H_
|
||||
#define BLUELIB_IO_FILE_H_
|
||||
|
||||
#include <blue/core/error.h>
|
||||
#include <blue/core/misc.h>
|
||||
#include <blue/core/status.h>
|
||||
#include <blue/core/stream.h>
|
||||
#include <blue/object/object.h>
|
||||
|
||||
@@ -49,11 +49,11 @@ typedef struct b_file_info {
|
||||
|
||||
typedef struct b_file b_file;
|
||||
|
||||
BLUE_API b_status b_file_open(
|
||||
BLUE_API b_result b_file_open(
|
||||
struct b_directory *root, const struct b_path *path, b_file_mode mode,
|
||||
b_file **out);
|
||||
BLUE_API b_status b_file_open_temp(b_file_mode mode, b_file **out);
|
||||
BLUE_API b_status b_file_open_shadow(
|
||||
BLUE_API b_result b_file_open_temp(b_file_mode mode, b_file **out);
|
||||
BLUE_API b_result b_file_open_shadow(
|
||||
b_file *original, b_file_mode mode, b_file **out);
|
||||
|
||||
BLUE_API b_status b_file_open_stream(b_file *file, b_stream **out);
|
||||
|
||||
Reference in New Issue
Block a user