Skip to content

Commit

Permalink
Merge branch 'define_getFieldOrder'
Browse files Browse the repository at this point in the history
  • Loading branch information
ymnk committed Dec 5, 2013
2 parents cde963c + d54f284 commit 730c563
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.jcraft</groupId>
<artifactId>jsch.agentproxy.examples</artifactId>
<version>0.0.6</version>
<version>0.0.7</version>
<name>examples to demonstrate how to use jsch-agent-proxy</name>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion jsch-agent-proxy-connector-factory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.jcraft</groupId>
<artifactId>jsch.agentproxy</artifactId>
<version>0.0.6</version>
<version>0.0.7</version>
</parent>

<artifactId>jsch.agentproxy.connector-factory</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsch-agent-proxy-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.jcraft</groupId>
<artifactId>jsch.agentproxy</artifactId>
<version>0.0.6</version>
<version>0.0.7</version>
</parent>

<artifactId>jsch.agentproxy.core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsch-agent-proxy-jsch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.jcraft</groupId>
<artifactId>jsch.agentproxy</artifactId>
<version>0.0.6</version>
<version>0.0.7</version>
</parent>

<artifactId>jsch.agentproxy.jsch</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsch-agent-proxy-pageant/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.jcraft</groupId>
<artifactId>jsch.agentproxy</artifactId>
<version>0.0.6</version>
<version>0.0.7</version>
</parent>

<artifactId>jsch.agentproxy.pageant</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
import com.sun.jna.platform.win32.Kernel32;
import com.sun.jna.platform.win32.WinNT;

import java.util.Arrays;
import java.util.List;

public class PageantConnector implements Connector {

private User32 libU = null;
Expand Down Expand Up @@ -90,12 +93,20 @@ public class COPYDATASTRUCT32 extends Structure {
public int dwData;
public int cbData;
public Pointer lpData;

protected List getFieldOrder() {
return Arrays.asList(new String[] { "dwData", "cbData", "lpData" });
}
}

public class COPYDATASTRUCT64 extends Structure {
public int dwData;
public long cbData;
public Pointer lpData;

protected List getFieldOrder() {
return Arrays.asList(new String[] { "dwData", "cbData", "lpData" });
}
}

public void query(Buffer buffer) throws AgentProxyException {
Expand Down
2 changes: 1 addition & 1 deletion jsch-agent-proxy-sshagent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.jcraft</groupId>
<artifactId>jsch.agentproxy</artifactId>
<version>0.0.6</version>
<version>0.0.7</version>
</parent>

<artifactId>jsch.agentproxy.sshagent</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsch-agent-proxy-sshj/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.jcraft</groupId>
<artifactId>jsch.agentproxy</artifactId>
<version>0.0.6</version>
<version>0.0.7</version>
</parent>

<artifactId>jsch.agentproxy.sshj</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsch-agent-proxy-svnkit-trilead-ssh2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.jcraft</groupId>
<artifactId>jsch.agentproxy</artifactId>
<version>0.0.6</version>
<version>0.0.7</version>
</parent>

<artifactId>jsch.agentproxy.svnkit-trilead-ssh2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsch-agent-proxy-usocket-jna/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.jcraft</groupId>
<artifactId>jsch.agentproxy</artifactId>
<version>0.0.6</version>
<version>0.0.7</version>
</parent>

<artifactId>jsch.agentproxy.usocket-jna</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
import com.sun.jna.Structure;

import java.io.IOException;
import java.util.Arrays;
import java.util.List;

public class JNAUSocketFactory implements USocketFactory {

Expand All @@ -54,6 +56,10 @@ public interface CLibrary extends Library {
public static class SockAddr extends Structure {
public short sun_family;
public byte[] sun_path;

protected List getFieldOrder() {
return Arrays.asList(new String[] { "sun_family", "sun_path" });
}
}

public JNAUSocketFactory() throws AgentProxyException {
Expand Down
2 changes: 1 addition & 1 deletion jsch-agent-proxy-usocket-junixsocket/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.jcraft</groupId>
<artifactId>jsch.agentproxy</artifactId>
<version>0.0.6</version>
<version>0.0.7</version>
</parent>

<artifactId>jsch.agentproxy.usocket-junixsocket</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsch-agent-proxy-usocket-nc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.jcraft</groupId>
<artifactId>jsch.agentproxy</artifactId>
<version>0.0.6</version>
<version>0.0.7</version>
</parent>

<artifactId>jsch.agentproxy.usocket-nc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<groupId>com.jcraft</groupId>
<artifactId>jsch.agentproxy</artifactId>
<version>0.0.6</version>
<version>0.0.7</version>
<packaging>pom</packaging>
<name>jsch-agent-proxy: a parent of modules</name>

Expand Down

0 comments on commit 730c563

Please sign in to comment.