forked from enlightenment/efl
25 lines
480 B
C#
25 lines
480 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace eldbus {
|
|
|
|
public static class Config
|
|
{
|
|
[DllImport(efl.Libs.Eldbus)] private static extern int eldbus_init();
|
|
[DllImport(efl.Libs.Eldbus)] private static extern int eldbus_shutdown();
|
|
|
|
public static void Init()
|
|
{
|
|
if (eldbus_init() == 0)
|
|
throw new efl.EflException("Failed to initialize Eldbus");
|
|
}
|
|
|
|
public static void Shutdown()
|
|
{
|
|
eldbus_shutdown();
|
|
}
|
|
|
|
}
|
|
|
|
}
|