aboutsummaryrefslogtreecommitdiff
path: root/src/programlink.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-10-27 04:44:46 +0000
committerMike Buland <eichlan@xagasoft.com>2011-10-27 04:44:46 +0000
commit9906ffe3c54875133448134c09ec12a0949d48cd (patch)
tree0542fef3d27e796700b87b44394a3ad31dd5b852 /src/programlink.cpp
parent411f240da34bab53cd18aa8b7ba09834ede49b1c (diff)
parent029b5d159023f4dad607359dbfaa2479e21fe9e5 (diff)
downloadlibbu++-9906ffe3c54875133448134c09ec12a0949d48cd.tar.gz
libbu++-9906ffe3c54875133448134c09ec12a0949d48cd.tar.bz2
libbu++-9906ffe3c54875133448134c09ec12a0949d48cd.tar.xz
libbu++-9906ffe3c54875133448134c09ec12a0949d48cd.zip
Reorg'd! I merged in the release-fixup branch and fixed all random warnings.
I also cleaned up the build script, the symlink generation is faster and looks nicer, there's one think left to fix there, but it's not too bad.
Diffstat (limited to '')
-rw-r--r--src/programlink.cpp63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/programlink.cpp b/src/programlink.cpp
deleted file mode 100644
index f9453c2..0000000
--- a/src/programlink.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
1/*
2 * Copyright (C) 2007-2011 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
8#include "bu/programlink.h"
9#include "bu/programchain.h"
10
11using namespace Bu;
12
13Bu::ProgramLink::ProgramLink()
14{
15}
16
17Bu::ProgramLink::~ProgramLink()
18{
19}
20
21LinkMessage *Bu::ProgramLink::sendIRM( LinkMessage *pMsgOut )
22{
23 return pChain->broadcastIRM( pMsgOut, this );
24}
25
26void Bu::ProgramLink::setChain( ProgramChain *pNewChain )
27{
28 pChain = pNewChain;
29}
30
31/*
32void ProgramLink::postMessage( LinkMessage *pMsg, int nLvl )
33{
34 if( nLvl == msgToChain )
35 {
36 qMsgToChain.enqueue( pMsg );
37 }
38 else if( nLvl == msgToLink )
39 {
40 qMsgToLink.enqueue( pMsg );
41 }
42 else
43 {
44 // ERROR!
45 }
46}
47
48LinkMessage *ProgramLink::getMessage( int nLvl )
49{
50 if( nLvl == msgToChain )
51 {
52 return (LinkMessage *)qMsgToChain.dequeue();
53 }
54 else if( nLvl == msgToLink )
55 {
56 return (LinkMessage *)qMsgToLink.dequeue();
57 }
58 else
59 {
60 // ERROR!
61 }
62}
63*/