~EventThreadCallback()
{
- if (!isDisposeQueued)
- {
- isDisposeQueued = true;
- DisposeQueue.Instance.Add(this);
- }
+ //if (!isDisposeQueued)
+ //{
+ //isDisposeQueued = true;
+ //DisposeQueue.Instance.Add(this);
+ //}
}
public void Dispose()
if (swigCMemOwn)
{
swigCMemOwn = false;
- NDalicManualPINVOKE.delete_EventThreadCallback(swigCPtr);
+ //NDalicManualPINVOKE.delete_EventThreadCallback(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Window_SetTransparency")]
public static extern global::System.IntPtr SetTransparency(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
- [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Adaptor_FeedKeyEvent")]
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Window_FeedKeyEvent")]
public static extern void Window_FeedKeyEvent(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_MakeCallback")]
{
public const int daliVer1 = 1;
public const int daliVer2 = 2;
- public const int daliVer3 = 61002;
+ public const int daliVer3 = 61003;
public const int nuiVer1 = 0;
public const int nuiVer2 = 2;
- public const int nuiVer3 = 61002;
+ public const int nuiVer3 = 61003;
public const string nuiRelease = "";
private Interop.Connection.ConnectionAddressChangedCallback _connectionAddressChangedCallback;
private Interop.Connection.ConnectionTypeChangedCallback _connectionTypeChangedCallback;
private Interop.Connection.ConnectionAddressChangedCallback _proxyAddressChangedCallback;
+ private Interop.Connection.EthernetCableStateChangedCallback _ethernetCableStateChangedCallback;
internal static ConnectionInternalManager Instance
{
private void EthernetCableStateChangedStart()
{
- int ret = Interop.Connection.SetEthernetCableStateChagedCallback(GetHandle(), EthernetCableStateChangedCallback, IntPtr.Zero);
+ _ethernetCableStateChangedCallback = (EthernetCableState state, IntPtr user_data) =>
+ {
+ if (_EthernetCableStateChanged != null)
+ {
+ _EthernetCableStateChanged(null, new EthernetCableStateEventArgs(state));
+ }
+ };
+ int ret = Interop.Connection.SetEthernetCableStateChagedCallback(GetHandle(),
+ _ethernetCableStateChangedCallback, IntPtr.Zero);
if ((ConnectionError)ret != ConnectionError.None)
{
- Log.Error(Globals.LogTag, "It failed to register ethernet cable state changed callback, " + (ConnectionError)ret);
+ Log.Error(Globals.LogTag,
+ "It failed to register ethernet cable state changed callback, " +
+ (ConnectionError)ret);
ConnectionErrorFactory.ThrowConnectionException(ret);
}
}
int ret = Interop.Connection.UnsetEthernetCableStateChagedCallback(GetHandle());
if ((ConnectionError)ret != ConnectionError.None)
{
- Log.Error(Globals.LogTag, "It failed to unregister ethernet cable state changed callback, " + (ConnectionError)ret);
+ Log.Error(Globals.LogTag,
+ "It failed to unregister ethernet cable state changed callback, " +
+ (ConnectionError)ret);
ConnectionErrorFactory.ThrowConnectionException(ret);
}
}
- private void EthernetCableStateChangedCallback(EthernetCableState state, IntPtr user_data)
- {
- if (_EthernetCableStateChanged != null)
- {
- _EthernetCableStateChanged(null, new EthernetCableStateEventArgs(state));
- }
- }
-
internal event EventHandler<AddressEventArgs> IPAddressChanged
{
add