/*
 *  Copyright 2011 Rudolf Biczok
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.pamther.internal.nativelib.types;

import com.sun.jna.Pointer;
import com.sun.jna.Structure;

public class Conversation extends Structure {

	private static final String[] FIELD_ORDER = new String[] { "conv",
			"appdata_ptr" };

	public NativeConvCallbackHandler conv;
	public Pointer appdata_ptr;

	public Conversation() {
		this(null, null);
	}

	public Conversation(NativeConvCallbackHandler convCallBack, Pointer appdata_ptr) {
		super();
		this.conv = convCallBack;
		this.appdata_ptr = appdata_ptr;
		this.setFieldOrder(Conversation.FIELD_ORDER);
	}

	public static class ByReference extends Conversation implements
			Structure.ByReference {
	};

	public static class ByValue extends Conversation implements
			Structure.ByValue {
	};
}

@@ -651,36 +651,8 @@
 s;%0A%0A
-import com.sun.jna.Pointer;%0A
 impo
@@ -795,26 +795,8 @@
 onv%22
-,%0A%09%09%09%22appdata_ptr%22
  %7D;%0A
@@ -836,17 +836,57 @@
 r conv;%0A
-%09
+%0A%09/*%0A%09 * No need for this attribute %0A%09 * 
 public P
@@ -904,16 +904,21 @@
 ata_ptr;
+%0A%09 */
 %0A%0A%09publi
@@ -947,14 +947,8 @@
 his(
-null, 
 null
@@ -1017,29 +1017,8 @@
 Back
-, Pointer appdata_ptr
 ) %7B%0A
@@ -1060,42 +1060,8 @@
 ck;%0A
-%09%09this.appdata_ptr = appdata_ptr;%0A
 %09%09th

Remove appdata_ptr from structure