T258: refactor creation of new cspaces to make it cleaner
[barrelfish] / include / barrelfish / capabilities.h
index 584378e..2915856 100644 (file)
@@ -29,9 +29,9 @@ __BEGIN_DECLS
 
 errval_t cnode_create(struct capref *ret_dest, struct cnoderef *cnoderef,
                  cslot_t slots, cslot_t *retslots);
-errval_t cnode_create_foreign(struct capref *ret_dest, struct cnoderef *cnoderef,
-                              enum objtype cntype);
+errval_t cnode_create_foreign_l2(struct capref dest_l1, cslot_t dest_slot, struct cnoderef *cnoderef);
 errval_t cnode_create_l2(struct capref *ret_dest, struct cnoderef *cnoderef);
+errval_t cnode_create_l1(struct capref *ret_dest, struct cnoderef *cnoderef);
 errval_t cnode_create_raw(struct capref dest, struct cnoderef *cnoderef,
                           enum objtype cntype, cslot_t slots, cslot_t *retslots);
 errval_t cnode_create_with_guard(struct capref dest, struct cnoderef *cnoderef,