package nanomsg;

import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.PointerByReference;
import com.sun.jna.ptr.IntByReference;


public class NativeLibrary {
    public static native int nn_socket (int domain, int protocol);
    public static native int nn_close (int s);
    public static native int nn_bind (int s, String addr);
    public static native int nn_connect (int s, String addr);
    public static native int nn_send (int s, byte[] buff, int len, int flags);
    public static native int nn_recv (int s, PointerByReference buff, int len, int flags);
    public static native int nn_setsockopt (int s, int level, int option, Pointer optval, int optvallen);
    public static native int nn_getsockopt (int s, int level, int option, Pointer optval, Pointer optvallen);
    public static native int nn_freemsg (Pointer msg);
    public static native int nn_errno ();
    public static native int nn_device (int s1, int s2);
    public static native void nn_term();

    public static native String nn_strerror (int errnum);
    public static native Pointer nn_symbol (int i, IntByReference value);

    static {
        Native.register("nanomsg");
    }
}

@@ -179,18 +179,16 @@
 brary %7B%0A
-  
   public
@@ -244,18 +244,16 @@
 tocol);%0A
-  
   public
@@ -287,26 +287,24 @@
  (int s);%0A  
- 
- 
 public stati
@@ -338,34 +338,32 @@
 , String addr);%0A
-  
   public static 
@@ -404,26 +404,24 @@
 ng addr);%0A  
- 
- 
 public stati
@@ -475,34 +475,32 @@
 en, int flags);%0A
-  
   public static 
@@ -572,18 +572,16 @@
 flags);%0A
-  
   public
@@ -668,34 +668,32 @@
 int optvallen);%0A
-  
   public static 
@@ -784,18 +784,16 @@
 allen);%0A
-  
   public
@@ -837,18 +837,16 @@
 r msg);%0A
-  
   public
@@ -877,18 +877,16 @@
 rno ();%0A
-  
   public
@@ -930,26 +930,24 @@
  int s2);%0A  
- 
- 
 public stati
@@ -972,18 +972,16 @@
 erm();%0A%0A
-  
   public
@@ -1030,18 +1030,16 @@
 num);%0A  
- 
- 
 public s
@@ -1101,18 +1101,16 @@
 alue);%0A%0A
-  
   static
@@ -1112,20 +1112,16 @@
 tatic %7B%0A
-    
     Nati
@@ -1144,16 +1144,14 @@
 omsg%22);%0A
-  
   %7D%0A%7D%0A

Fix code style on NativeLibrary.java.