[vala-extra-vapis] Memcached.Context constructor takes a uint8[]?.



commit b0bcfadf2dc1c1da65c054978f752a582edac224
Author: Guillaume Poirier-Morency <guillaumepoiriermorency gmail com>
Date:   Sun Jul 5 00:16:07 2015 -0400

    Memcached.Context constructor takes a uint8[]?.
    
    Otherwise, the length of the provided configuration string has to be
    provided as the second argument. It is more consistent with the rest of
    the API that uses uint8[] as key with size_t lengths.

 libmemcached.vapi |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libmemcached.vapi b/libmemcached.vapi
index 32b0e7a..7231918 100644
--- a/libmemcached.vapi
+++ b/libmemcached.vapi
@@ -31,14 +31,14 @@ namespace Memcached {
   [IntegerType (rank = 6), CCode (cname = "in_port_t")]
   public struct in_port_t {}
 
-  [Compact, CCode (cname = "memcached_st", lower_case_cprefix = "memcached_")]
+  [Compact, CCode (cname = "memcached_st", has_type_id = false, lower_case_cprefix = "memcached_")]
   public class Context {
     // memcached.h
     public void servers_reset ();
     [CCode (cname = "memcached_create")]
     private static Memcached.Context _create (Memcached.Context? ptr = null);
     [CCode (cname = "memcached")]
-    public Context (string? str = null, size_t length = 0);
+    public Context ([CCode (array_length_type = "size_t")] uint8[]? str = null);
     public Memcached.ReturnCode reset ();
     public void reset_last_disconnected_server ();
     [CCode (cname = "_vala_memcached_clone")]


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