cbd9f29898b3c4921b5a63fc859d8ed20828d2f2
[satune.git] / src / Tuner / tunable.h
1 #ifndef TUNABLE_H
2 #define TUNABLE_H
3 #include "classlist.h"
4
5
6 struct Tuner {
7 };
8
9 struct TunableDesc {
10         int lowValue;
11         int highValue;
12         int defaultValue;
13 };
14
15 Tuner * allocTuner();
16 void deleteTuner(Tuner *This);
17
18 int getTunable(Tuner *This, TunableParam param, TunableDesc * descriptor);
19 int getVarTunable(Tuner *This, VarType vartype, TunableParam param, TunableDesc * descriptor);
20
21 #define GETTUNABLE(This, param, descriptor) getTunable(This, param, descriptor)
22 #define GETVARTUNABLE(This, vartype, param, descriptor) getTunable(This, param, descriptor)
23
24 static TunableDesc onoff={0, 1, 1};
25 static TunableDesc offon={0, 1, 0};
26 enum Tunables {DECOMPOSEORDER, MUSTREACHGLOBAL, MUSTREACHLOCAL, MUSTREACHPRUNE, OPTIMIZEORDERSTRUCTURE};
27 typedef enum Tunables Tunables;
28 #endif