i3
src/output.c
Go to the documentation of this file.
00001 /*
00002  * vim:ts=4:sw=4:expandtab
00003  */
00004 
00005 #include "all.h"
00006 
00007 /*
00008  * Returns the output container below the given output container.
00009  *
00010  */
00011 Con *output_get_content(Con *output) {
00012     Con *child;
00013 
00014     TAILQ_FOREACH(child, &(output->nodes_head), nodes)
00015         if (child->type == CT_CON)
00016             return child;
00017 
00018     ELOG("output_get_content() called on non-output %p\n", output);
00019     assert(false);
00020 }