[vala-extra-vapis] Added free_function in Cipher Class (#44)



commit a7289582b464214680bca81889abcc745bfeda06
Author: paulo ricardo <pauloricardojm hotmail com br>
Date:   Mon Feb 13 19:55:31 2017 -0200

    Added free_function in Cipher Class (#44)
    
    * Added free_function in Cipher Class
    
    When compile a source code using Cipher class, the compiler gives: undefined reference to 
`gcry_cipher_free'
    This fix the error.

 gcrypt.vapi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gcrypt.vapi b/gcrypt.vapi
index c85692a..ac3a8d6 100644
--- a/gcrypt.vapi
+++ b/gcrypt.vapi
@@ -560,7 +560,7 @@ namespace GCrypt {
                        CBC_MAC   /* Enable CBC message auth. code (MAC). */
                }
                [Compact]
-               [CCode (cname = "gcry_cipher_hd_t", lower_case_cprefix = "gcry_cipher_")]
+               [CCode (cname = "gcry_cipher_hd_t", lower_case_cprefix = "gcry_cipher_", free_function = 
"gcry_cipher_close")]
                public class Cipher {
                        public static Error open (out Cipher cipher, Algorithm algo, Mode mode, Flag flags);
                        public void close ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]