aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-03 05:34:26 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-03 05:34:26 +0200
commitc78bcc08698138d4619cf6093e457edf7931a4af (patch)
tree190f5c12a397b071b2d396fe8645dde02edd0693 /src
parentfunctions from libgamma-facade that will not be moved into classes (diff)
downloadlibgammamm-c78bcc08698138d4619cf6093e457edf7931a4af.tar.gz
libgammamm-c78bcc08698138d4619cf6093e457edf7931a4af.tar.bz2
libgammamm-c78bcc08698138d4619cf6093e457edf7931a4af.tar.xz
test libgamma::method_capabilities
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/test.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test.cc b/src/test.cc
index 0c63f88..fabaa00 100644
--- a/src/test.cc
+++ b/src/test.cc
@@ -27,6 +27,7 @@ int main(void)
libgamma::Partition* partition;
libgamma::CRTC* crtc;
libgamma::CRTCInformation info;
+ libgamma::MethodCapabilities caps;
int method;
std::string* str;
@@ -137,6 +138,23 @@ int main(void)
std::cout << "gamma_error: " << info.gamma_error << std::endl;
std::cout << std::endl;
+ libgamma::method_capabilities(&caps, method);
+ std::cout << "crtc_information: " << caps.crtc_information << std::endl;
+ std::cout << "default_site_known: " << caps.default_site_known << std::endl;
+ std::cout << "multiple_sites: " << caps.multiple_sites << std::endl;
+ std::cout << "multiple_partitions: " << caps.multiple_partitions << std::endl;
+ std::cout << "multiple_crtcs: " << caps.multiple_crtcs << std::endl;
+ std::cout << "partitions_are_graphics_cards: " << caps.partitions_are_graphics_cards << std::endl;
+ std::cout << "site_restore: " << caps.site_restore << std::endl;
+ std::cout << "partition_restore: " << caps.partition_restore << std::endl;
+ std::cout << "crtc_restore: " << caps.crtc_restore << std::endl;
+ std::cout << "identical_gamma_sizes: " << caps.identical_gamma_sizes << std::endl;
+ std::cout << "fixed_gamma_size: " << caps.fixed_gamma_size << std::endl;
+ std::cout << "fixed_gamma_depth: " << caps.fixed_gamma_depth << std::endl;
+ std::cout << "real: " << caps.real << std::endl;
+ std::cout << "fake: " << caps.fake << std::endl;
+ std::cout << std::endl;
+
delete crtc;
delete partition;
delete site;