From 6ce237f52319787322849090377b90372d77e349 Mon Sep 17 00:00:00 2001 From: Simon Busch Date: Sun, 29 Jan 2012 17:00:03 +0100 Subject: Rework IPC client creation to detect device automatically on startup Signed-off-by: Simon Busch --- vapi/samsung-ipc-1.0.vapi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'vapi/samsung-ipc-1.0.vapi') diff --git a/vapi/samsung-ipc-1.0.vapi b/vapi/samsung-ipc-1.0.vapi index 6caa82f..ebef347 100644 --- a/vapi/samsung-ipc-1.0.vapi +++ b/vapi/samsung-ipc-1.0.vapi @@ -1200,11 +1200,17 @@ namespace SamsungIpc public delegate int TransportCb(uint8[] data); public delegate void LogHandlerCb(string message); + [CCode (cname = "ipc_init")] + public void init(); + [CCode (cname = "ipc_shutdown")] + public void shutdown(); + [Compact] [CCode (cname = "struct ipc_client", cprefix = "ipc_client_")] public class Client { - public Client(DeviceType device_type, ClientType client_type); + public Client(ClientType client_type); + public Client.for_device(DeviceType device_type, ClientType client_type); [CCode (delagate_target_pos = 0.9)] public int set_log_handler(LogHandlerCb log_cb); public int set_io_handlers(TransportCb write_cb, TransportCb read_cb); -- cgit v1.1