aboutsummaryrefslogtreecommitdiff
path: root/flx/output.h
diff options
context:
space:
mode:
authorWilly Tarreau <willy@wtap.(none)>2006-07-26 10:46:55 +0200
committerWilly Tarreau <willy@wtap.(none)>2006-07-26 10:46:55 +0200
commitfcb250efba23ae522c4c8cb03c47dd40edcf9603 (patch)
tree3756bd1748842a3f1049d857e8412f148a8741b9 /flx/output.h
parentInitial commit (diff)
downloadflxutils-fcb250efba23ae522c4c8cb03c47dd40edcf9603.tar.xz
[RELEASE] flxutils-0.1.4.2v0.1.4.2
Diffstat (limited to 'flx/output.h')
-rw-r--r--flx/output.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/flx/output.h b/flx/output.h
new file mode 100644
index 0000000..0609357
--- /dev/null
+++ b/flx/output.h
@@ -0,0 +1,33 @@
+#ifndef __OUTPUT_H__
+#define __OUTPUT_H__
+
+#include "source_type.h"
+
+//#define DOFREE (1<<0)
+//#define DOFLUSH (1<<1)
+//#define DOINIT (1<<2)
+//#define GOSUBTREE (1<<3)
+//#define GOBASE (1<<4)
+//#define GOPARENT (1<<5)
+
+typedef struct s_db_output t_db_output;
+
+struct s_db_output {
+ void *outputs; /* list of output destination */
+};
+
+extern int output_write(t_db_output *out, void *tree, int number);
+extern t_db_output *output_alloc();
+extern t_db_output *output_free(t_db_output *old);
+extern int output_add(t_db_output *out, char *desc, t_source_type *sourcestype);
+
+int ft_foreach(void *data, t_ft *tree, int flag, int (*fct_doit)());
+
+int ft_free(t_ft *tree, void *(*fct_free)(void *data, void *desc), void *data);
+t_file_desc *fct_free_file_desc(void *data, t_file_desc *desc);
+
+#endif /* __OUTPUT_H__ */
+
+
+
+