forked from enlightenment/efl
67 lines
2.7 KiB
C#
67 lines
2.7 KiB
C#
|
using System;
|
||
|
using System.Runtime.InteropServices;
|
||
|
|
||
|
using static eldbus.EldbusServiceNativeFunctions;
|
||
|
|
||
|
namespace eldbus {
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|