2017-12-06 16:03:55 -08:00
|
|
|
#pragma warning disable 1591
|
|
|
|
|
2017-11-23 16:49:22 -08:00
|
|
|
using System;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
using static eldbus.EldbusServiceNativeFunctions;
|
|
|
|
|
mono: fix space and brace warnings of StyleCop
Summary:
The following warning rules of StyleCop are checked.
Space rules : SA1000, SA1003, SA1008, SA1009, SA1010, SA1011
Brace rules : SA1500, SA1501, SA1502, SA1503, SA1513
Indentation is also applied.
Reviewers: lauromoura, felipealmeida, vitor.sousa, woohyun
Reviewed By: vitor.sousa
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8485
2019-04-02 07:51:05 -07:00
|
|
|
namespace eldbus
|
|
|
|
{
|
2017-11-23 16:49:22 -08:00
|
|
|
|
|
|
|
public static class EldbusServiceNativeFunctions
|
|
|
|
{
|
|
|
|
[DllImport(efl.Libs.Eldbus)] public static extern IntPtr
|
|
|
|
eldbus_service_interface_register(IntPtr conn, string path, IntPtr desc);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] public static extern IntPtr
|
|
|
|
eldbus_service_interface_fallback_register(IntPtr conn, string path, IntPtr desc);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] public static extern IntPtr
|
|
|
|
eldbus_service_interface_register2(IntPtr conn, string path, IntPtr desc);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] public static extern IntPtr
|
|
|
|
eldbus_service_interface_fallback_register2(IntPtr conn, string path, IntPtr desc);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] public static extern void
|
|
|
|
eldbus_service_interface_unregister(IntPtr iface);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] public static extern void
|
|
|
|
eldbus_service_object_unregister(IntPtr iface);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] public static extern IntPtr
|
|
|
|
eldbus_service_connection_get(IntPtr iface);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] public static extern IntPtr
|
|
|
|
eldbus_service_object_path_get(IntPtr iface);
|
|
|
|
|
|
|
|
// [DllImport(efl.Libs.Eldbus)] [return: MarshalAs(UnmanagedType.U1)] public static extern bool
|
|
|
|
// eldbus_service_signal_emit(IntPtr iface, uint signal_id, ...);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] public static extern IntPtr
|
|
|
|
eldbus_service_signal_new(IntPtr iface, uint signal_id);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] [return: MarshalAs(UnmanagedType.U1)] public static extern bool
|
|
|
|
eldbus_service_signal_send(IntPtr iface, IntPtr signal_msg);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] public static extern void
|
|
|
|
eldbus_service_object_data_set(IntPtr iface, string key, IntPtr data);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] public static extern IntPtr
|
|
|
|
eldbus_service_object_data_get(IntPtr iface, string key);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] public static extern IntPtr
|
|
|
|
eldbus_service_object_data_del(IntPtr iface, string key);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] [return: MarshalAs(UnmanagedType.U1)] public static extern bool
|
|
|
|
eldbus_service_property_changed(IntPtr iface, string name);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] [return: MarshalAs(UnmanagedType.U1)] public static extern bool
|
|
|
|
eldbus_service_property_invalidate_set(IntPtr iface, string name, [MarshalAs(UnmanagedType.U1)] bool is_invalidate);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] [return: MarshalAs(UnmanagedType.U1)] public static extern bool
|
|
|
|
eldbus_service_object_manager_attach(IntPtr iface);
|
|
|
|
|
|
|
|
[DllImport(efl.Libs.Eldbus)] [return: MarshalAs(UnmanagedType.U1)] public static extern bool
|
|
|
|
eldbus_service_object_manager_detach(IntPtr iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|