aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-28 05:17:14 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-28 05:17:52 +0200
commit4e0dc2bed9493b2ae8b380e757da3a07757c3f78 (patch)
tree7dfd09268ae32e5acd0358c8bfd13b53f1587c26 /test
parentadd LIBGAMMA_CONNECTOR_TYPE_COUNT, LIBGAMMA_SUBPIXEL_ORDER_COUNT and LIBGAMMA_CRTC_INFO_COUNT (diff)
downloadlibgamma-4e0dc2bed9493b2ae8b380e757da3a07757c3f78.tar.gz
libgamma-4e0dc2bed9493b2ae8b380e757da3a07757c3f78.tar.bz2
libgamma-4e0dc2bed9493b2ae8b380e757da3a07757c3f78.tar.xz
namespace some definitions
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--test/test.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/test.c b/test/test.c
index 65a65b6..43541d0 100644
--- a/test/test.c
+++ b/test/test.c
@@ -25,14 +25,14 @@ static const char* method_name(int method)
{
switch (method)
{
- case GAMMA_METHOD_DUMMY: return "dummy";
- case GAMMA_METHOD_X_RANDR: return "RandR X extension";
- case GAMMA_METHOD_X_VIDMODE: return "VidMode X extension";
- case GAMMA_METHOD_LINUX_DRM: return "Linux DRM";
- case GAMMA_METHOD_W32_GDI: return "Windows GDI";
- case GAMMA_METHOD_QUARTZ_CORE_GRAPHICS: return "Quartz using Core Graphics";
+ case LIBGAMMA_METHOD_DUMMY: return "dummy";
+ case LIBGAMMA_METHOD_X_RANDR: return "RandR X extension";
+ case LIBGAMMA_METHOD_X_VIDMODE: return "VidMode X extension";
+ case LIBGAMMA_METHOD_LINUX_DRM: return "Linux DRM";
+ case LIBGAMMA_METHOD_W32_GDI: return "Windows GDI";
+ case LIBGAMMA_METHOD_QUARTZ_CORE_GRAPHICS: return "Quartz using Core Graphics";
default:
-#if GAMMA_METHOD_COUNT != 6
+#if LIBGAMMA_METHOD_COUNT != 6
# warning List of adjustment methods is out of date
#endif
return "(unknown)";
@@ -42,11 +42,11 @@ static const char* method_name(int method)
int main(void)
{
- int* methods = malloc(GAMMA_METHOD_COUNT * sizeof(int));
- size_t n = libgamma_list_methods(methods, GAMMA_METHOD_COUNT, 0);
+ int* methods = malloc(LIBGAMMA_METHOD_COUNT * sizeof(int));
+ size_t n = libgamma_list_methods(methods, LIBGAMMA_METHOD_COUNT, 0);
size_t i;
- if (n > GAMMA_METHOD_COUNT)
+ if (n > LIBGAMMA_METHOD_COUNT)
{
printf("Warning: you should to recompile the program, libgamma has been updated.\n");
methods = realloc(methods, n * sizeof(int));