#define OPTION_GETTERS(extensionBaseFunctions, \
extensionPluginInfo, firstEffectOption) \
static inline CompOptionValue * \
animGetOptVal (CompWindow *w, \
int optionId) \
{ \
return (extensionBaseFunctions)->getPluginOptVal \
(w, (extensionPluginInfo), optionId - (firstEffectOption)); \
} \
\
Bool \
animGetB (CompWindow *w, \
int optionId) \
{ \
return animGetOptVal (w, optionId)->b; \
} \
\
int \
animGetI (CompWindow *w, \
int optionId) \
{ \
return animGetOptVal (w, optionId)->i; \
} \
\
float \
animGetF (CompWindow *w, \
int optionId) \
{ \
return animGetOptVal (w, optionId)->f; \
} \
\
char * \
animGetS (CompWindow *w, \
int optionId) \
{ \
return animGetOptVal (w, optionId)->s; \
} \
\
unsigned short * \
animGetC (CompWindow *w, \
int optionId) \
{ \
return animGetOptVal (w, optionId)->c; \
}
#define OPTION_GETTERS_HDR \
\
Bool \
animGetB (CompWindow *w, \
int optionId); \
\
int \
animGetI (CompWindow *w, \
int optionId); \
\
float \
animGetF (CompWindow *w, \
int optionId); \
\
char * \
animGetS (CompWindow *w, \
int optionId); \
\
unsigned short * \
animGetC (CompWindow *w, \
int optionId);