summaryrefslogtreecommitdiffstats
path: root/sys/objdir.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/objdir.h')
-rw-r--r--sys/objdir.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/objdir.h b/sys/objdir.h
index e86e582..4ef6d04 100644
--- a/sys/objdir.h
+++ b/sys/objdir.h
@@ -8,10 +8,9 @@ int objdir_new(jove_owned_obj_t *untyped_obj);
/*Returns the n'th entry of the object directory passed.
* If the passed object is not an objdir, returns NULL and sets errno to EBADOBJ.
* If the passed entry index is out of bounds, returns NULL and sets errno to EOOB.*/
-jove_owned_obj_t *objdir_getlocal(jove_owned_obj_t *objdir_obj, uint16_t entry);
-/*Same as objdir_getlocal except does not block if entry obj is taken.*/
-jove_owned_obj_t *objdir_trygetlocal(jove_owned_obj_t *objdir_obj, uint16_t entry);
-jove_obj_t objdir_peeklocal(jove_owned_obj_t *objdir_obj, uint16_t entry);
+jove_owned_obj_t *objdir_getlocal(jove_obj_t *objdir_obj, uint16_t entry);
+jove_owned_obj_t *objdir_getlocal_locked(jove_owned_obj_t *objdir, objpath_part_t entry);
+jove_obj_t objdir_peeklocal(jove_obj_t *objdir_obj, uint16_t entry);
/*Recursively seeks through an object directory for an object following the passed
* path variable.
@@ -20,11 +19,12 @@ jove_obj_t objdir_peeklocal(jove_owned_obj_t *objdir_obj, uint16_t entry);
* If any object excluding the object at the end of the path is not an objdir,
* returns NULL and sets errno to EBADOBJ.
* If any entry in the path is out of bounds, returns NULL and sets errno to EBADOBJ.*/
-jove_owned_obj_t *objdir_getobj(jove_owned_obj_t *objdir_obj, const uint16_t *path, size_t path_len);
-/*Same as objdir_getobj but does not block if child objects are locked.*/
-jove_owned_obj_t *objdir_trygetobj(jove_owned_obj_t *objdir_obj, const uint16_t *path, size_t path_len);
+jove_owned_obj_t *objdir_getobj(jove_obj_t *objdir_obj, const uint16_t *path, size_t path_len);
+jove_owned_obj_t *objdir_getobj_locked(jove_owned_obj_t *objdir,
+ const objpath_part_t *path,
+ size_t path_len);
-bool objdir_compare(jove_owned_obj_t *objdir_obj, objpath_part_t entry, jove_obj_t *obj);
+bool objdir_compare(jove_obj_t *objdir_obj, objpath_part_t entry, jove_obj_t *obj);
void objdir_swapobj(jove_owned_obj_t *a, jove_owned_obj_t *b);
#endif