X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fmove.h;h=df644a6b8b7b217b1c3dfd8b433a00e5d94621eb;hb=0ed29f567866ad00a2cb14ce2e6eb5a29b277011;hp=64b12b80cc7b937c8c2773989fa312a41b43adda;hpb=f58dde28504cd78267439ec232be9689ff82d47c;p=i3%2Fi3 diff --git a/include/move.h b/include/move.h index 64b12b80..df644a6b 100644 --- a/include/move.h +++ b/include/move.h @@ -17,3 +17,13 @@ * */ void tree_move(Con *con, int direction); + +typedef enum { BEFORE, + AFTER } position_t; + +/** + * This function detaches 'con' from its parent and inserts it either before or + * after 'target'. + * + */ +void insert_con_into(Con *con, Con *target, position_t position);