From a3a96e8fdd7fd91c609972217b3ad971eb929c80 Mon Sep 17 00:00:00 2001
From: Mattias Andrée <maandree@operamail.com>
Date: Thu, 4 Sep 2014 06:44:14 +0200
Subject: add get_capabilities
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Mattias Andrée <maandree@operamail.com>
---
 src/libgamma/AdjustmentMethod.java | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

(limited to 'src')

diff --git a/src/libgamma/AdjustmentMethod.java b/src/libgamma/AdjustmentMethod.java
index 0b6ed00..7b98377 100644
--- a/src/libgamma/AdjustmentMethod.java
+++ b/src/libgamma/AdjustmentMethod.java
@@ -153,6 +153,16 @@ public enum AdjustmentMethod
 	return libgamma_method_default_site_variable(this.value);
     }
     
+    /**
+     * Return the capabilities of the adjustment method.
+     * 
+     * @return   The capabilities of the adjustment method.
+     */
+    public AdjustmentMethodCapabilities get_capabilities()
+    {
+	return new AdjustmentMethodCapabilities(libgamma_method_capabilities(this.value));
+    }
+    
     
     
     /**
@@ -201,6 +211,15 @@ public enum AdjustmentMethod
      */
     private static native int libgamma_is_method_available(int method);
     
+    /**
+     * Return the capabilities of an adjustment method.
+     * 
+     * @param   method  The adjustment method (display server and protocol).
+     * @return          Input parameter to the constructor of {@link AdjustmentMethodCapabilities}.
+     */
+    private static native long libgamma_method_capabilities(int method);
+
+    
     /**
      * Return the default site for an adjustment method.
      * 
-- 
cgit v1.2.3-70-g09d2