summaryrefslogtreecommitdiff
path: root/src/command.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/command.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/command.hpp')
-rw-r--r--src/command.hpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/command.hpp b/src/command.hpp
index ecf2d93..8378369 100644
--- a/src/command.hpp
+++ b/src/command.hpp
@@ -27,12 +27,18 @@
namespace zmq
{
+ class object_t;
+ class own_t;
+ struct i_engine;
+ class pipe_t;
+ class socket_base_t;
+
// This structure defines the commands that can be sent between threads.
struct command_t
{
// Object to process the command.
- class object_t *destination;
+ zmq::object_t *destination;
enum type_t
{
@@ -67,7 +73,7 @@ namespace zmq
// Sent to socket to let it know about the newly created object.
struct {
- class own_t *object;
+ zmq::own_t *object;
} own;
// Attach the engine to the session. If engine is NULL, it informs
@@ -79,7 +85,7 @@ namespace zmq
// Sent from session to socket to establish pipe(s) between them.
// Caller have used inc_seqnum beforehand sending the command.
struct {
- class pipe_t *pipe;
+ zmq::pipe_t *pipe;
} bind;
// Sent by pipe writer to inform dormant pipe reader that there
@@ -112,7 +118,7 @@ namespace zmq
// Sent by I/O object ot the socket to request the shutdown of
// the I/O object.
struct {
- class own_t *object;
+ zmq::own_t *object;
} term_req;
// Sent by socket to I/O object to start its shutdown.
@@ -128,7 +134,7 @@ namespace zmq
// Transfers the ownership of the closed socket
// to the reaper thread.
struct {
- class socket_base_t *socket;
+ zmq::socket_base_t *socket;
} reap;
// Closed socket notifies the reaper that it's already deallocated.