Skip to content

Commit

Permalink
Moved device method to Device enum.
Browse files Browse the repository at this point in the history
Signed-off-by: Lewis Gunsch <lewis@gunsch.ca>
  • Loading branch information
lgunsch committed Sep 7, 2011
1 parent cbb9742 commit d0a3e40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/msgqueue.vala
Expand Up @@ -16,7 +16,7 @@ public static int main(string [] argv) {
backend.bind ("tcp://*:5560");

// Start built-in device
device (Device.QUEUE, frontend, backend);
Device.QUEUE.device (frontend, backend);

return 0;
}
Expand Down
6 changes: 3 additions & 3 deletions libzmq.vapi
Expand Up @@ -176,8 +176,8 @@ namespace ZMQ {
public enum Device {
STREAMER,
FORWARDER,
QUEUE
QUEUE;
[CCode (cname = "zmq_device")]
public int device (Socket insocket, Socket outsocket);
}

int device (Device device, Socket insocket, Socket outsocket);
}

0 comments on commit d0a3e40

Please sign in to comment.