Stream: Add stub

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
fs: pipe: Rename stream to pipe

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
fs: pipe: Add pipe reference count

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
lib: avl: Add tree cleanup functions

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
lib: avl: Fix rotation parent bug

Rotations didn't fix all the parental references. Now they do.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
lib: avl: Add list like functionality

In order to provide fast next and previous pointers, list like
functions have been added.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
fs: pipe: Add comments and data buffer code

Basically made the start of the fifo part of the pipe. Administration
is now complete, let's get cracking with the data.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
Merge remote-tracking branch 'avl/master' into pipe

Add data cleanup functions to the tree, in order to flush the pipe

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>

Conflicts:
	src/lib/avl/tree.c
fs: pipe: Add code to flushing

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
lib: tree: Add thread safety to the tree structure

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
Merge remote-tracking branch 'avl/master' into pipe

Ported thread safety over to andromeda dependencies

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>

Conflicts:
	.gitignore
	src/lib/avl/Makefile
	src/lib/avl/tree.c
Merge branch 'testing' into pipe
fs: pipe: Add code to actually write to the buffer

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
lib: tree: Add callback to tree cleanup

In the old situation the data would be freed, or not. This has some
problems.

The new situation solves those problems by adding in a callback to deal
with the data in a much more elegant way. Basically this clean up code
now is responsible for cleaning up the data.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
fs: pipe: Add reading code to pipe

And finally we should be able to read from the buffer.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>