-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
90 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
#include "kernel.h" | ||
|
||
typedef struct resman { | ||
avltree_t avltree; | ||
i32 next_id; | ||
} *resman_t; | ||
|
||
typedef struct descriptor { | ||
vfs_node_t node; | ||
i32 refrence_cout; | ||
} *describtor_t; | ||
|
||
#define resman_free(man) free(((void *)(man)) | ||
|
||
resman_t resman_alloc(); | ||
void resman_init(resman_t man); | ||
void resman_descriptors_init(); | ||
int resman_open(resman_t man, i32 working_dir, cstr path); | ||
int resman_close(resman_t man, i32 id); | ||
void resman_deinit(resman_t man); | ||
|
||
#define resman_open_root_dir(man) resman_open((man), 0, "/") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters