Skip to content

Commit

Permalink
Fixed some parameter-directions and small bugs.
Browse files Browse the repository at this point in the history
Signed-off-by: Lewis Gunsch <lewis@gunsch.ca>
  • Loading branch information
lgunsch committed Aug 10, 2011
1 parent d289f56 commit 95bdd36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libzmq.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace ZMQ {
[CCode (cname = "zmq_free_fn", type = "void (*)(void *, void *)")]
public delegate void free_fn (void *data);

[CCode (cprefix = "zmq_msg_", cname = "zmq_msg_t", destroy_function = "zmq_msg_close", has_copy_function=false)]
[CCode (cprefix = "zmq_msg_", cname = "zmq_msg_t", destroy_function = "zmq_msg_close", has_copy_function=true)]
public struct Msg {
public const uchar MORE;
public const uchar SHARED;
Expand All @@ -81,7 +81,7 @@ namespace ZMQ {
public size_t size ();

[CCode (instance_pos = -1)]
public int move (owned Msg dest);
public int move (Msg dest);
}

[CCode (cname = "int", cprefix = "ZMQ_")]
Expand Down Expand Up @@ -141,8 +141,8 @@ namespace ZMQ {
public int getsockopt < T > (SocketOption option, T optval, size_t optvallen);
public int bind (string addr);
public int connect (string addr);
public int send (Msg msg, SendRecvOption flags = 0);
public int recv (Msg msg, SendRecvOption flags = 0);
public int send (owned Msg msg, SendRecvOption flags = 0);
public int recv (ref Msg msg, SendRecvOption flags = 0);
}

public const short POLLIN;
Expand Down

0 comments on commit 95bdd36

Please sign in to comment.