using System.Runtime.InteropServices;
using static Oobe.Common.Services.Vconf;
-internal static partial class Interop
+namespace Oobe.Common.Services.Interoperability
{
- internal static partial class Vconf
+ internal static partial class Interop
{
- private const string LIBRARY_VCONF = "libvconf.so.0";
+ internal static partial class Vconf
+ {
+ private const string LIBRARY_VCONF = "libvconf.so.0";
- [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_get_bool")]
- internal static extern int VconfGetBool(string key, out bool val);
+ [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_get_bool")]
+ internal static extern int VconfGetBool(string key, out bool val);
- [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_set_bool")]
- internal static extern int VconfSetBool(string key, bool intval);
+ [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_set_bool")]
+ internal static extern int VconfSetBool(string key, bool intval);
- [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_get_int")]
- internal static extern int VconfGetInt(string key, out int val);
+ [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_get_int")]
+ internal static extern int VconfGetInt(string key, out int val);
- [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_set_int")]
- internal static extern int VconfSetInt(string key, int intval);
+ [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_set_int")]
+ internal static extern int VconfSetInt(string key, int intval);
- [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_get_str")]
- internal static extern string VconfGetStr(string key);
+ [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_get_str")]
+ internal static extern string VconfGetStr(string key);
- [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_set_str")]
- internal static extern int VconfSetStr(string key, string value);
+ [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_set_str")]
+ internal static extern int VconfSetStr(string key, string value);
- [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_notify_key_changed")]
- internal static extern void VconfNotifyKeyChanged(string key, NotificationCallback callback, IntPtr userData);
+ [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_notify_key_changed")]
+ internal static extern void VconfNotifyKeyChanged(string key, NotificationCallback callback, IntPtr userData);
- [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_ignore_key_changed")]
- internal static extern void VconfIgnoreKeyChanged(string key, NotificationCallback callback);
+ [DllImport(LIBRARY_VCONF, EntryPoint = "vconf_ignore_key_changed")]
+ internal static extern void VconfIgnoreKeyChanged(string key, NotificationCallback callback);
+ }
}
}