[vala-extra-vapis] Provides binding for libmemcachedutil.h.
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala-extra-vapis] Provides binding for libmemcachedutil.h.
- Date: Thu, 19 Nov 2015 00:05:29 +0000 (UTC)
commit 0100f4286dd1fa9995a013139725915a37fa4d27
Author: Guillaume Poirier-Morency <guillaumepoiriermorency gmail com>
Date: Sat Jul 11 15:19:25 2015 -0400
Provides binding for libmemcachedutil.h.
Provides a pool of Memcached.Context and various utilities to flush,
ping, get a pid and check the version.
libmemcachedutil.deps | 1 +
libmemcachedutil.vapi | 30 ++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/libmemcachedutil.deps b/libmemcachedutil.deps
new file mode 100644
index 0000000..b4cab6e
--- /dev/null
+++ b/libmemcachedutil.deps
@@ -0,0 +1 @@
+libmemcached
diff --git a/libmemcachedutil.vapi b/libmemcachedutil.vapi
new file mode 100644
index 0000000..96914ca
--- /dev/null
+++ b/libmemcachedutil.vapi
@@ -0,0 +1,30 @@
+namespace Memcached {
+ [Compact, CCode (cname = "memcached_pool_st", has_type_id = false, free_function =
"memcached_pool_destroy", cheader_filename = "libmemcachedutil-1.0/pool.h")]
+ public class Pool {
+ [CCode (cname = "memcached_pool")]
+ public Pool ([CCode (array_length_type = "size_t")] uint8[] option_string);
+ [Deprecated (since = "0.46", replacement = "Pool"), CCode (cname = "memcached_pool_create")]
+ public Pool.from_context (Memcached.Context mmc, uint32 initial, uint32 max);
+ [Deprecated (since = "0.53", replacement = "fetch")]
+ public unowned Memcached.Context pop (bool block, out Memcached.ReturnCode rc);
+ [Deprecated (since = "0.53", replacement = "release")]
+ public Memcached.ReturnCode push (Memcached.Context mmc);
+ public Memcached.ReturnCode release (Memcached.Context mmc);
+ public unowned Memcached.Context fetch (Posix.timespec relative_time, out Memcached.ReturnCode rc);
+ public Memcached.ReturnCode behavior_set (Memcached.Behavior flag, uint64 data);
+ public Memcached.ReturnCode behavior_get (Memcached.Behavior flag, out uint64 data);
+ }
+ [CCode (cprefix = "libmemcached_util_", cheader_filename = "libmemcachedutil-1.0/util.h")]
+ namespace Util {
+ // flush.h
+ public bool flush (string hostname, in_port_t port, out Memcached.ReturnCode ret);
+ // pid.h
+ public Posix.pid_t getpid (string hostname, in_port_t port, out Memcached.ReturnCode ret);
+ public Posix.pid_t getpid2 (string hostname, in_port_t port, string username, string password, out
Memcached.ReturnCode ret);
+ // ping.h
+ public bool ping (string hostname, in_port_t port, out Memcached.ReturnCode ret);
+ public bool ping2 (string hostname, in_port_t port, string username, string password, out
Memcached.ReturnCode ret);
+ // version.h
+ public bool version_check (Memcached.Context mmc, uint8 major_version, uint8 minor_version, uint8
micro_version);
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]