Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
tuple_compiler.h
Go to the documentation of this file.
1 /*
2  * tuple_compiler.h
3  * Copyright (c) 2007 Matti 'ccr' Hämäläinen
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice,
9  * this list of conditions, and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above copyright notice,
12  * this list of conditions, and the following disclaimer in the documentation
13  * provided with the distribution.
14  *
15  * This software is provided "as is" and without any warranty, express or
16  * implied. In no event shall the authors be liable for any damages arising from
17  * the use of this software.
18  */
19 
20 #ifndef LIBAUDCORE_TUPLE_COMPILER_H
21 #define LIBAUDCORE_TUPLE_COMPILER_H
22 
23 #include <glib.h>
24 #include <libaudcore/tuple.h>
25 
26 struct _TupleEvalNode;
27 typedef struct _TupleEvalNode TupleEvalNode;
28 
29 struct _TupleEvalContext;
30 typedef struct _TupleEvalContext TupleEvalContext;
31 
32 TupleEvalContext * tuple_evalctx_new(void);
33 void tuple_evalctx_reset(TupleEvalContext *ctx);
34 void tuple_evalctx_free(TupleEvalContext *ctx);
35 
36 void tuple_evalnode_free(TupleEvalNode *expr);
37 
38 TupleEvalNode *tuple_formatter_compile(TupleEvalContext *ctx, char *expr);
39 void tuple_formatter_eval (TupleEvalContext * ctx, TupleEvalNode * expr,
40  const Tuple * tuple, GString * out);
41 
42 #endif /* LIBAUDCORE_TUPLE_COMPILER_H */
void tuple_evalctx_reset(TupleEvalContext *ctx)
void tuple_evalnode_free(TupleEvalNode *expr)
TupleEvalContext * tuple_evalctx_new(void)
void tuple_formatter_eval(TupleEvalContext *ctx, TupleEvalNode *expr, const Tuple *tuple, GString *out)
TupleEvalNode * tuple_formatter_compile(TupleEvalContext *ctx, char *expr)
Basic Tuple handling API.
void tuple_evalctx_free(TupleEvalContext *ctx)