summaryrefslogtreecommitdiff
path: root/src/BtAllowedFastMessage.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-12-24 15:55:59 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-12-24 15:55:59 +0000
commita413cb50f7035fdaa1c85b6247b98946b3342ef1 (patch)
treec8144080a3006de3bbd8ca6a43cbc9e8a49b3c23 /src/BtAllowedFastMessage.h
parent708b9f4a3da70e963968c0a013dea6777c6b276e (diff)
Diffstat (limited to 'src/BtAllowedFastMessage.h')
-rw-r--r--src/BtAllowedFastMessage.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/BtAllowedFastMessage.h b/src/BtAllowedFastMessage.h
index 8ace1619..75b03460 100644
--- a/src/BtAllowedFastMessage.h
+++ b/src/BtAllowedFastMessage.h
@@ -43,12 +43,12 @@ typedef SharedHandle<BtAllowedFastMessage> BtAllowedFastMessageHandle;
class BtAllowedFastMessage : public SimpleBtMessage {
private:
- uint32_t index;
- char* msg;
+ int32_t index;
+ unsigned char* msg;
static uint32_t MESSAGE_LENGTH;
public:
- BtAllowedFastMessage(uint32_t index = 0)
+ BtAllowedFastMessage(int32_t index = 0)
:SimpleBtMessage(),
index(index),
msg(0) {}
@@ -61,18 +61,18 @@ public:
ID = 17
};
- void setIndex(uint32_t index) {
+ void setIndex(int32_t index) {
this->index = index;
}
- uint32_t getIndex() const { return index; }
+ int32_t getIndex() const { return index; }
static BtAllowedFastMessageHandle create(const unsigned char* data, uint32_t dataLength);
- virtual int32_t getId() const { return ID; }
+ virtual uint8_t getId() const { return ID; }
virtual void doReceivedAction();
- virtual const char* getMessage();
+ virtual const unsigned char* getMessage();
virtual uint32_t getMessageLength();