Layout.h

Go to the documentation of this file.
00001 #ifndef LAYOUT_H
00002 #define LAYOUT_H
00003 
00004 #include <stdlib.h>
00005 #include <assert.h>
00006 #include <stdio.h>
00007 #include "structs.h"
00008 
00009 /// constructor
00010 Layout *createLayout();
00011 /// destroyer 
00012 void destroyLayout(Layout *l);
00013 
00014 /* Filter stuff ************************************************************/
00015 ///add filter to the layout, returns 1 on success, 0 otherwise
00016 int addFilterSpec(Layout *l, FilterSpec *f);
00017 ///returns a pointer to a filter, given its name, NULL if not found
00018 FilterSpec *getFilterSpecByName(Layout *l, char *name);
00019 
00020 /** Given a tid, returns a pointer to the filter which is using it
00021  * @param layout the layout
00022  * @param tid the tid we are looking for
00023  * @param pFilterAddress the address of the filter pointer, so we can return the filter here
00024  * @param instanceAddress we return the instance holding the tid in the variable pointed by this address
00025  */
00026 void getFilterByTid(Layout *layout, int tid, FilterSpec **pFilterAddress, int *instanceAddress);
00027 
00028 /* Streams stuff ***********************************************************/
00029 ///adds a given stream to the layout, returns 1 on success, 0 otherwise
00030 int addStreamSpec(Layout *l, StreamSpec *s);
00031 ///returns a pointer to a stream, given its name, NULL if not found
00032 StreamSpec *getStreamSpecByName(Layout *l, char *name);
00033 #endif

Generated on Tue Jan 17 19:18:38 2006 for Void by  doxygen 1.4.6