summaryrefslogtreecommitdiff
path: root/src/pipe.hpp
diff options
context:
space:
mode:
authorAJ Lewis <aj.lewis@quantum.com>2011-11-09 15:22:20 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-11-09 15:22:20 +0100
commitc79abee6bcaa996f50be71bd1d3075e3affb469d (patch)
treeddbbe8d56fd65f0949b3f990472365a4b3e01f63 /src/pipe.hpp
parent89962a825697dd9eca057c032ec61de71b075539 (diff)
Get AIX 6.1 compiling again by making msg_t class explicit
Older versions of gcc have problems with in-line forward declarations when there's a naming conflict with a global symbol. Signed-off-by: AJ Lewis <aj.lewis@quantum.com> Expand the original patch to all such forward declarations. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/pipe.hpp')
-rw-r--r--src/pipe.hpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/pipe.hpp b/src/pipe.hpp
index 75a2021..f438257 100644
--- a/src/pipe.hpp
+++ b/src/pipe.hpp
@@ -34,23 +34,26 @@
namespace zmq
{
+ class object_t;
+ class pipe_t;
+
// Create a pipepair for bi-directional transfer of messages.
// First HWM is for messages passed from first pipe to the second pipe.
// Second HWM is for messages passed from second pipe to the first pipe.
// Delay specifies how the pipe behaves when the peer terminates. If true
// pipe receives all the pending messages before terminating, otherwise it
// terminates straight away.
- int pipepair (class object_t *parents_ [2], class pipe_t* pipes_ [2],
+ int pipepair (zmq::object_t *parents_ [2], zmq::pipe_t* pipes_ [2],
int hwms_ [2], bool delays_ [2]);
struct i_pipe_events
{
virtual ~i_pipe_events () {}
- virtual void read_activated (class pipe_t *pipe_) = 0;
- virtual void write_activated (class pipe_t *pipe_) = 0;
- virtual void hiccuped (class pipe_t *pipe_) = 0;
- virtual void terminated (class pipe_t *pipe_) = 0;
+ virtual void read_activated (zmq::pipe_t *pipe_) = 0;
+ virtual void write_activated (zmq::pipe_t *pipe_) = 0;
+ virtual void hiccuped (zmq::pipe_t *pipe_) = 0;
+ virtual void terminated (zmq::pipe_t *pipe_) = 0;
};
// Note that pipe can be stored in three different arrays.
@@ -64,8 +67,8 @@ namespace zmq
public array_item_t <3>
{
// This allows pipepair to create pipe objects.
- friend int pipepair (class object_t *parents_ [2],
- class pipe_t* pipes_ [2], int hwms_ [2], bool delays_ [2]);
+ friend int pipepair (zmq::object_t *parents_ [2],
+ zmq::pipe_t* pipes_ [2], int hwms_ [2], bool delays_ [2]);
public: