fx.io: update all path parameters to be fx_values

This commit is contained in:
2026-07-12 22:15:14 +01:00
parent e9a1bfbde2
commit 24bcb18543
9 changed files with 178 additions and 142 deletions
+7 -12
View File
@@ -50,7 +50,7 @@ FX_API fx_type_id fx_directory_iterator_get_type(void);
FX_API fx_result fx_directory_open(
fx_directory *root,
const fx_path *path,
fx_value path,
fx_directory_open_flags flags,
fx_directory **out);
FX_API fx_result fx_directory_open_temp(fx_directory **out);
@@ -60,22 +60,17 @@ FX_API const char *fx_directory_get_path_cstr(const fx_directory *dir);
FX_API const char *fx_directory_get_rel_path_cstr(const fx_directory *dir);
FX_API fx_result fx_directory_delete(fx_directory *dir);
FX_API bool fx_directory_path_exists(
const fx_directory *root,
const fx_path *path);
FX_API bool fx_directory_path_is_file(
const fx_directory *root,
const fx_path *path);
FX_API bool fx_directory_path_exists(const fx_directory *root, fx_value path);
FX_API bool fx_directory_path_is_file(const fx_directory *root, fx_value path);
FX_API bool fx_directory_path_is_directory(
const fx_directory *root,
const fx_path *path);
fx_value path);
FX_API fx_result fx_directory_path_stat(
const fx_directory *root,
const fx_path *path,
fx_value path,
struct fx_file_info *out);
FX_API fx_result fx_directory_path_unlink(
const fx_directory *root,
const fx_path *path);
FX_API fx_result
fx_directory_path_unlink(const fx_directory *root, fx_value path);
FX_API fx_iterator *fx_directory_begin(
fx_directory *dir,
+2 -1
View File
@@ -5,6 +5,7 @@
#include <fx/macros.h>
#include <fx/misc.h>
#include <fx/stream.h>
#include <fx/value.h>
FX_DECLS_BEGIN;
@@ -55,7 +56,7 @@ FX_API fx_type_id fx_file_get_type(void);
FX_API fx_result fx_file_open(
FX_TYPE_FWDREF(fx_directory) * root,
const FX_TYPE_FWDREF(fx_path) * path,
fx_value path,
fx_file_mode mode,
fx_file **out);
FX_API fx_result fx_file_open_temp(fx_file_mode mode, fx_file **out);