meta: rename legacy object module to 'ds'
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#include <string.h>
|
||||
|
||||
struct b_directory {
|
||||
struct b_object base;
|
||||
struct b_dsref base;
|
||||
HANDLE handle;
|
||||
struct b_path *abs_path;
|
||||
};
|
||||
@@ -23,12 +23,12 @@ struct iteration_state {
|
||||
bool child_search_complete;
|
||||
};
|
||||
|
||||
static void directory_release(struct b_object *obj);
|
||||
static void directory_release(struct b_dsref *obj);
|
||||
|
||||
static struct b_object_type directory_type = {
|
||||
static struct b_dsref_type directory_type = {
|
||||
.t_name = "corelib::directory",
|
||||
.t_flags = B_OBJECT_FUNDAMENTAL,
|
||||
.t_id = B_OBJECT_TYPE_PATH,
|
||||
.t_flags = B_DSREF_FUNDAMENTAL,
|
||||
.t_id = B_DSREF_TYPE_PATH,
|
||||
.t_instance_size = sizeof(struct b_directory),
|
||||
.t_release = directory_release,
|
||||
};
|
||||
@@ -89,7 +89,7 @@ enum b_status b_directory_open(
|
||||
}
|
||||
|
||||
struct b_directory *dir
|
||||
= (struct b_directory *)b_object_type_instantiate(&directory_type);
|
||||
= (struct b_directory *)b_dsref_type_instantiate(&directory_type);
|
||||
if (!path) {
|
||||
CloseHandle(dir_handle);
|
||||
b_path_release(new_path);
|
||||
@@ -361,6 +361,6 @@ bool b_directory_iterator_is_valid(const struct b_directory_iterator *it)
|
||||
return true;
|
||||
}
|
||||
|
||||
static void directory_release(struct b_object *obj)
|
||||
static void directory_release(struct b_dsref *obj)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user