Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated API to OpenZWave main trunk rev.454

  • Loading branch information...
commit 028c692e6eb4f275407138bfcb642e39cda61645 1 parent 1d57943
Elias Karakoulakis authored
View
2  PocoStomp.cpp
@@ -454,7 +454,7 @@ void PocoStomp::run()
//
m_mutex->unlock();
//
- Poco::Thread::sleep(50);
+ Poco::Thread::sleep(25);
}
}
View
2  gen-cocoa/ozw.h
@@ -643,6 +643,7 @@ enum OpenZWaveDriverControllerCommand {
- (NSString *) GetLibraryVersion: (int32_t) _homeId; // throws TException
- (NSString *) GetLibraryTypeName: (int32_t) _homeId; // throws TException
- (int32_t) GetSendQueueCount: (int32_t) _homeId; // throws TException
+- (void) LogDriverStatistics: (int32_t) _homeId; // throws TException
- (int32_t) GetPollInterval; // throws TException
- (void) SetPollInterval: (int32_t) _seconds; // throws TException
- (BOOL) EnablePoll: (OpenZWaveRemoteValueID *) _valueId; // throws TException
@@ -658,6 +659,7 @@ enum OpenZWaveDriverControllerCommand {
- (BOOL) IsNodeSecurityDevice: (int32_t) _homeId : (uint8_t) _nodeId; // throws TException
- (int32_t) GetNodeMaxBaudRate: (int32_t) _homeId : (uint8_t) _nodeId; // throws TException
- (uint8_t) GetNodeVersion: (int32_t) _homeId : (uint8_t) _nodeId; // throws TException
+- (uint8_t) GetNodeSecurity: (int32_t) _homeId : (uint8_t) _nodeId; // throws TException
- (uint8_t) GetNodeBasic: (int32_t) _homeId : (uint8_t) _nodeId; // throws TException
- (uint8_t) GetNodeGeneric: (int32_t) _homeId : (uint8_t) _nodeId; // throws TException
- (uint8_t) GetNodeSpecific: (int32_t) _homeId : (uint8_t) _nodeId; // throws TException
View
783 gen-cocoa/ozw.m
@@ -5295,6 +5295,191 @@ - (NSString *) description {
@end
+@interface OpenZWaveLogDriverStatistics_args : NSObject <NSCoding> {
+ int32_t ___homeId;
+
+ BOOL ___homeId_isset;
+}
+
+#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
+@property (nonatomic, getter=_homeId, setter=set_homeId:) int32_t _homeId;
+#endif
+
+- (id) initWith_homeId: (int32_t) _homeId;
+
+- (void) read: (id <TProtocol>) inProtocol;
+- (void) write: (id <TProtocol>) outProtocol;
+
+- (int32_t) _homeId;
+- (void) set_homeId: (int32_t) _homeId;
+- (BOOL) _homeIdIsSet;
+
+@end
+
+@implementation OpenZWaveLogDriverStatistics_args
+
+- (id) initWith_homeId: (int32_t) _homeId
+{
+ self = [super init];
+ ___homeId = _homeId;
+ ___homeId_isset = YES;
+ return self;
+}
+
+- (id) initWithCoder: (NSCoder *) decoder
+{
+ self = [super init];
+ if ([decoder containsValueForKey: @"_homeId"])
+ {
+ ___homeId = [decoder decodeInt32ForKey: @"_homeId"];
+ ___homeId_isset = YES;
+ }
+ return self;
+}
+
+- (void) encodeWithCoder: (NSCoder *) encoder
+{
+ if (___homeId_isset)
+ {
+ [encoder encodeInt32: ___homeId forKey: @"_homeId"];
+ }
+}
+
+- (void) dealloc
+{
+ [super dealloc];
+}
+
+- (int32_t) _homeId {
+ return ___homeId;
+}
+
+- (void) set_homeId: (int32_t) _homeId {
+ ___homeId = _homeId;
+ ___homeId_isset = YES;
+}
+
+- (BOOL) _homeIdIsSet {
+ return ___homeId_isset;
+}
+
+- (void) unset_homeId {
+ ___homeId_isset = NO;
+}
+
+- (void) read: (id <TProtocol>) inProtocol
+{
+ NSString * fieldName;
+ int fieldType;
+ int fieldID;
+
+ [inProtocol readStructBeginReturningName: NULL];
+ while (true)
+ {
+ [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
+ if (fieldType == TType_STOP) {
+ break;
+ }
+ switch (fieldID)
+ {
+ case 1:
+ if (fieldType == TType_I32) {
+ int32_t fieldValue = [inProtocol readI32];
+ [self set_homeId: fieldValue];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ default:
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ break;
+ }
+ [inProtocol readFieldEnd];
+ }
+ [inProtocol readStructEnd];
+}
+
+- (void) write: (id <TProtocol>) outProtocol {
+ [outProtocol writeStructBeginWithName: @"LogDriverStatistics_args"];
+ if (___homeId_isset) {
+ [outProtocol writeFieldBeginWithName: @"_homeId" type: TType_I32 fieldID: 1];
+ [outProtocol writeI32: ___homeId];
+ [outProtocol writeFieldEnd];
+ }
+ [outProtocol writeFieldStop];
+ [outProtocol writeStructEnd];
+}
+
+- (NSString *) description {
+ NSMutableString * ms = [NSMutableString stringWithString: @"LogDriverStatistics_args("];
+ [ms appendString: @"_homeId:"];
+ [ms appendFormat: @"%i", ___homeId];
+ [ms appendString: @")"];
+ return [NSString stringWithString: ms];
+}
+
+@end
+
+@interface OpenZWaveLogDriverStatistics_result : NSObject <NSCoding> {
+}
+
+
+- (void) read: (id <TProtocol>) inProtocol;
+- (void) write: (id <TProtocol>) outProtocol;
+
+@end
+
+@implementation OpenZWaveLogDriverStatistics_result
+
+- (id) initWithCoder: (NSCoder *) decoder
+{
+ self = [super init];
+ return self;
+}
+
+- (void) encodeWithCoder: (NSCoder *) encoder
+{
+}
+
+- (void) read: (id <TProtocol>) inProtocol
+{
+ NSString * fieldName;
+ int fieldType;
+ int fieldID;
+
+ [inProtocol readStructBeginReturningName: NULL];
+ while (true)
+ {
+ [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
+ if (fieldType == TType_STOP) {
+ break;
+ }
+ switch (fieldID)
+ {
+ default:
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ break;
+ }
+ [inProtocol readFieldEnd];
+ }
+ [inProtocol readStructEnd];
+}
+
+- (void) write: (id <TProtocol>) outProtocol {
+ [outProtocol writeStructBeginWithName: @"LogDriverStatistics_result"];
+
+ [outProtocol writeFieldStop];
+ [outProtocol writeStructEnd];
+}
+
+- (NSString *) description {
+ NSMutableString * ms = [NSMutableString stringWithString: @"LogDriverStatistics_result("];
+ [ms appendString: @")"];
+ return [NSString stringWithString: ms];
+}
+
+@end
+
@interface OpenZWaveGetPollInterval_args : NSObject <NSCoding> {
}
@@ -7327,7 +7512,308 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"RequestNodeDynamic_result"];
+ [outProtocol writeStructBeginWithName: @"RequestNodeDynamic_result"];
+
+ if (__success_isset) {
+ [outProtocol writeFieldBeginWithName: @"success" type: TType_BOOL fieldID: 0];
+ [outProtocol writeBool: __success];
+ [outProtocol writeFieldEnd];
+ }
+ [outProtocol writeFieldStop];
+ [outProtocol writeStructEnd];
+}
+
+- (NSString *) description {
+ NSMutableString * ms = [NSMutableString stringWithString: @"RequestNodeDynamic_result("];
+ [ms appendString: @"success:"];
+ [ms appendFormat: @"%i", __success];
+ [ms appendString: @")"];
+ return [NSString stringWithString: ms];
+}
+
+@end
+
+@interface OpenZWaveIsNodeListeningDevice_args : NSObject <NSCoding> {
+ int32_t ___homeId;
+ uint8_t ___nodeId;
+
+ BOOL ___homeId_isset;
+ BOOL ___nodeId_isset;
+}
+
+#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
+@property (nonatomic, getter=_homeId, setter=set_homeId:) int32_t _homeId;
+@property (nonatomic, getter=_nodeId, setter=set_nodeId:) uint8_t _nodeId;
+#endif
+
+- (id) initWith_homeId: (int32_t) _homeId _nodeId: (uint8_t) _nodeId;
+
+- (void) read: (id <TProtocol>) inProtocol;
+- (void) write: (id <TProtocol>) outProtocol;
+
+- (int32_t) _homeId;
+- (void) set_homeId: (int32_t) _homeId;
+- (BOOL) _homeIdIsSet;
+
+- (uint8_t) _nodeId;
+- (void) set_nodeId: (uint8_t) _nodeId;
+- (BOOL) _nodeIdIsSet;
+
+@end
+
+@implementation OpenZWaveIsNodeListeningDevice_args
+
+- (id) initWith_homeId: (int32_t) _homeId _nodeId: (uint8_t) _nodeId
+{
+ self = [super init];
+ ___homeId = _homeId;
+ ___homeId_isset = YES;
+ ___nodeId = _nodeId;
+ ___nodeId_isset = YES;
+ return self;
+}
+
+- (id) initWithCoder: (NSCoder *) decoder
+{
+ self = [super init];
+ if ([decoder containsValueForKey: @"_homeId"])
+ {
+ ___homeId = [decoder decodeInt32ForKey: @"_homeId"];
+ ___homeId_isset = YES;
+ }
+ if ([decoder containsValueForKey: @"_nodeId"])
+ {
+ ___nodeId = [decoder decodeIntForKey: @"_nodeId"];
+ ___nodeId_isset = YES;
+ }
+ return self;
+}
+
+- (void) encodeWithCoder: (NSCoder *) encoder
+{
+ if (___homeId_isset)
+ {
+ [encoder encodeInt32: ___homeId forKey: @"_homeId"];
+ }
+ if (___nodeId_isset)
+ {
+ [encoder encodeInt: ___nodeId forKey: @"_nodeId"];
+ }
+}
+
+- (void) dealloc
+{
+ [super dealloc];
+}
+
+- (int32_t) _homeId {
+ return ___homeId;
+}
+
+- (void) set_homeId: (int32_t) _homeId {
+ ___homeId = _homeId;
+ ___homeId_isset = YES;
+}
+
+- (BOOL) _homeIdIsSet {
+ return ___homeId_isset;
+}
+
+- (void) unset_homeId {
+ ___homeId_isset = NO;
+}
+
+- (uint8_t) _nodeId {
+ return ___nodeId;
+}
+
+- (void) set_nodeId: (uint8_t) _nodeId {
+ ___nodeId = _nodeId;
+ ___nodeId_isset = YES;
+}
+
+- (BOOL) _nodeIdIsSet {
+ return ___nodeId_isset;
+}
+
+- (void) unset_nodeId {
+ ___nodeId_isset = NO;
+}
+
+- (void) read: (id <TProtocol>) inProtocol
+{
+ NSString * fieldName;
+ int fieldType;
+ int fieldID;
+
+ [inProtocol readStructBeginReturningName: NULL];
+ while (true)
+ {
+ [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
+ if (fieldType == TType_STOP) {
+ break;
+ }
+ switch (fieldID)
+ {
+ case 1:
+ if (fieldType == TType_I32) {
+ int32_t fieldValue = [inProtocol readI32];
+ [self set_homeId: fieldValue];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ case 2:
+ if (fieldType == TType_BYTE) {
+ uint8_t fieldValue = [inProtocol readByte];
+ [self set_nodeId: fieldValue];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ default:
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ break;
+ }
+ [inProtocol readFieldEnd];
+ }
+ [inProtocol readStructEnd];
+}
+
+- (void) write: (id <TProtocol>) outProtocol {
+ [outProtocol writeStructBeginWithName: @"IsNodeListeningDevice_args"];
+ if (___homeId_isset) {
+ [outProtocol writeFieldBeginWithName: @"_homeId" type: TType_I32 fieldID: 1];
+ [outProtocol writeI32: ___homeId];
+ [outProtocol writeFieldEnd];
+ }
+ if (___nodeId_isset) {
+ [outProtocol writeFieldBeginWithName: @"_nodeId" type: TType_BYTE fieldID: 2];
+ [outProtocol writeByte: ___nodeId];
+ [outProtocol writeFieldEnd];
+ }
+ [outProtocol writeFieldStop];
+ [outProtocol writeStructEnd];
+}
+
+- (NSString *) description {
+ NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeListeningDevice_args("];
+ [ms appendString: @"_homeId:"];
+ [ms appendFormat: @"%i", ___homeId];
+ [ms appendString: @",_nodeId:"];
+ [ms appendFormat: @"%i", ___nodeId];
+ [ms appendString: @")"];
+ return [NSString stringWithString: ms];
+}
+
+@end
+
+@interface OpenZWaveIsNodeListeningDevice_result : NSObject <NSCoding> {
+ BOOL __success;
+
+ BOOL __success_isset;
+}
+
+#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
+@property (nonatomic, getter=success, setter=setSuccess:) BOOL success;
+#endif
+
+- (id) initWithSuccess: (BOOL) success;
+
+- (void) read: (id <TProtocol>) inProtocol;
+- (void) write: (id <TProtocol>) outProtocol;
+
+- (BOOL) success;
+- (void) setSuccess: (BOOL) success;
+- (BOOL) successIsSet;
+
+@end
+
+@implementation OpenZWaveIsNodeListeningDevice_result
+
+- (id) initWithSuccess: (BOOL) success
+{
+ self = [super init];
+ __success = success;
+ __success_isset = YES;
+ return self;
+}
+
+- (id) initWithCoder: (NSCoder *) decoder
+{
+ self = [super init];
+ if ([decoder containsValueForKey: @"success"])
+ {
+ __success = [decoder decodeBoolForKey: @"success"];
+ __success_isset = YES;
+ }
+ return self;
+}
+
+- (void) encodeWithCoder: (NSCoder *) encoder
+{
+ if (__success_isset)
+ {
+ [encoder encodeBool: __success forKey: @"success"];
+ }
+}
+
+- (void) dealloc
+{
+ [super dealloc];
+}
+
+- (BOOL) success {
+ return __success;
+}
+
+- (void) setSuccess: (BOOL) success {
+ __success = success;
+ __success_isset = YES;
+}
+
+- (BOOL) successIsSet {
+ return __success_isset;
+}
+
+- (void) unsetSuccess {
+ __success_isset = NO;
+}
+
+- (void) read: (id <TProtocol>) inProtocol
+{
+ NSString * fieldName;
+ int fieldType;
+ int fieldID;
+
+ [inProtocol readStructBeginReturningName: NULL];
+ while (true)
+ {
+ [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
+ if (fieldType == TType_STOP) {
+ break;
+ }
+ switch (fieldID)
+ {
+ case 0:
+ if (fieldType == TType_BOOL) {
+ BOOL fieldValue = [inProtocol readBool];
+ [self setSuccess: fieldValue];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ default:
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ break;
+ }
+ [inProtocol readFieldEnd];
+ }
+ [inProtocol readStructEnd];
+}
+
+- (void) write: (id <TProtocol>) outProtocol {
+ [outProtocol writeStructBeginWithName: @"IsNodeListeningDevice_result"];
if (__success_isset) {
[outProtocol writeFieldBeginWithName: @"success" type: TType_BOOL fieldID: 0];
@@ -7339,7 +7825,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"RequestNodeDynamic_result("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeListeningDevice_result("];
[ms appendString: @"success:"];
[ms appendFormat: @"%i", __success];
[ms appendString: @")"];
@@ -7348,7 +7834,7 @@ - (NSString *) description {
@end
-@interface OpenZWaveIsNodeListeningDevice_args : NSObject <NSCoding> {
+@interface OpenZWaveIsNodeFrequentListeningDevice_args : NSObject <NSCoding> {
int32_t ___homeId;
uint8_t ___nodeId;
@@ -7376,7 +7862,7 @@ - (BOOL) _nodeIdIsSet;
@end
-@implementation OpenZWaveIsNodeListeningDevice_args
+@implementation OpenZWaveIsNodeFrequentListeningDevice_args
- (id) initWith_homeId: (int32_t) _homeId _nodeId: (uint8_t) _nodeId
{
@@ -7496,7 +7982,7 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"IsNodeListeningDevice_args"];
+ [outProtocol writeStructBeginWithName: @"IsNodeFrequentListeningDevice_args"];
if (___homeId_isset) {
[outProtocol writeFieldBeginWithName: @"_homeId" type: TType_I32 fieldID: 1];
[outProtocol writeI32: ___homeId];
@@ -7512,7 +7998,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeListeningDevice_args("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeFrequentListeningDevice_args("];
[ms appendString: @"_homeId:"];
[ms appendFormat: @"%i", ___homeId];
[ms appendString: @",_nodeId:"];
@@ -7523,7 +8009,7 @@ - (NSString *) description {
@end
-@interface OpenZWaveIsNodeListeningDevice_result : NSObject <NSCoding> {
+@interface OpenZWaveIsNodeFrequentListeningDevice_result : NSObject <NSCoding> {
BOOL __success;
BOOL __success_isset;
@@ -7544,7 +8030,7 @@ - (BOOL) successIsSet;
@end
-@implementation OpenZWaveIsNodeListeningDevice_result
+@implementation OpenZWaveIsNodeFrequentListeningDevice_result
- (id) initWithSuccess: (BOOL) success
{
@@ -7628,7 +8114,7 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"IsNodeListeningDevice_result"];
+ [outProtocol writeStructBeginWithName: @"IsNodeFrequentListeningDevice_result"];
if (__success_isset) {
[outProtocol writeFieldBeginWithName: @"success" type: TType_BOOL fieldID: 0];
@@ -7640,7 +8126,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeListeningDevice_result("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeFrequentListeningDevice_result("];
[ms appendString: @"success:"];
[ms appendFormat: @"%i", __success];
[ms appendString: @")"];
@@ -7649,7 +8135,7 @@ - (NSString *) description {
@end
-@interface OpenZWaveIsNodeFrequentListeningDevice_args : NSObject <NSCoding> {
+@interface OpenZWaveIsNodeBeamingDevice_args : NSObject <NSCoding> {
int32_t ___homeId;
uint8_t ___nodeId;
@@ -7677,7 +8163,7 @@ - (BOOL) _nodeIdIsSet;
@end
-@implementation OpenZWaveIsNodeFrequentListeningDevice_args
+@implementation OpenZWaveIsNodeBeamingDevice_args
- (id) initWith_homeId: (int32_t) _homeId _nodeId: (uint8_t) _nodeId
{
@@ -7797,7 +8283,7 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"IsNodeFrequentListeningDevice_args"];
+ [outProtocol writeStructBeginWithName: @"IsNodeBeamingDevice_args"];
if (___homeId_isset) {
[outProtocol writeFieldBeginWithName: @"_homeId" type: TType_I32 fieldID: 1];
[outProtocol writeI32: ___homeId];
@@ -7813,7 +8299,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeFrequentListeningDevice_args("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeBeamingDevice_args("];
[ms appendString: @"_homeId:"];
[ms appendFormat: @"%i", ___homeId];
[ms appendString: @",_nodeId:"];
@@ -7824,7 +8310,7 @@ - (NSString *) description {
@end
-@interface OpenZWaveIsNodeFrequentListeningDevice_result : NSObject <NSCoding> {
+@interface OpenZWaveIsNodeBeamingDevice_result : NSObject <NSCoding> {
BOOL __success;
BOOL __success_isset;
@@ -7845,7 +8331,7 @@ - (BOOL) successIsSet;
@end
-@implementation OpenZWaveIsNodeFrequentListeningDevice_result
+@implementation OpenZWaveIsNodeBeamingDevice_result
- (id) initWithSuccess: (BOOL) success
{
@@ -7929,7 +8415,7 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"IsNodeFrequentListeningDevice_result"];
+ [outProtocol writeStructBeginWithName: @"IsNodeBeamingDevice_result"];
if (__success_isset) {
[outProtocol writeFieldBeginWithName: @"success" type: TType_BOOL fieldID: 0];
@@ -7941,7 +8427,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeFrequentListeningDevice_result("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeBeamingDevice_result("];
[ms appendString: @"success:"];
[ms appendFormat: @"%i", __success];
[ms appendString: @")"];
@@ -7950,7 +8436,7 @@ - (NSString *) description {
@end
-@interface OpenZWaveIsNodeBeamingDevice_args : NSObject <NSCoding> {
+@interface OpenZWaveIsNodeRoutingDevice_args : NSObject <NSCoding> {
int32_t ___homeId;
uint8_t ___nodeId;
@@ -7978,7 +8464,7 @@ - (BOOL) _nodeIdIsSet;
@end
-@implementation OpenZWaveIsNodeBeamingDevice_args
+@implementation OpenZWaveIsNodeRoutingDevice_args
- (id) initWith_homeId: (int32_t) _homeId _nodeId: (uint8_t) _nodeId
{
@@ -8098,7 +8584,7 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"IsNodeBeamingDevice_args"];
+ [outProtocol writeStructBeginWithName: @"IsNodeRoutingDevice_args"];
if (___homeId_isset) {
[outProtocol writeFieldBeginWithName: @"_homeId" type: TType_I32 fieldID: 1];
[outProtocol writeI32: ___homeId];
@@ -8114,7 +8600,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeBeamingDevice_args("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeRoutingDevice_args("];
[ms appendString: @"_homeId:"];
[ms appendFormat: @"%i", ___homeId];
[ms appendString: @",_nodeId:"];
@@ -8125,7 +8611,7 @@ - (NSString *) description {
@end
-@interface OpenZWaveIsNodeBeamingDevice_result : NSObject <NSCoding> {
+@interface OpenZWaveIsNodeRoutingDevice_result : NSObject <NSCoding> {
BOOL __success;
BOOL __success_isset;
@@ -8146,7 +8632,7 @@ - (BOOL) successIsSet;
@end
-@implementation OpenZWaveIsNodeBeamingDevice_result
+@implementation OpenZWaveIsNodeRoutingDevice_result
- (id) initWithSuccess: (BOOL) success
{
@@ -8230,7 +8716,7 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"IsNodeBeamingDevice_result"];
+ [outProtocol writeStructBeginWithName: @"IsNodeRoutingDevice_result"];
if (__success_isset) {
[outProtocol writeFieldBeginWithName: @"success" type: TType_BOOL fieldID: 0];
@@ -8242,7 +8728,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeBeamingDevice_result("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeRoutingDevice_result("];
[ms appendString: @"success:"];
[ms appendFormat: @"%i", __success];
[ms appendString: @")"];
@@ -8251,7 +8737,7 @@ - (NSString *) description {
@end
-@interface OpenZWaveIsNodeRoutingDevice_args : NSObject <NSCoding> {
+@interface OpenZWaveIsNodeSecurityDevice_args : NSObject <NSCoding> {
int32_t ___homeId;
uint8_t ___nodeId;
@@ -8279,7 +8765,7 @@ - (BOOL) _nodeIdIsSet;
@end
-@implementation OpenZWaveIsNodeRoutingDevice_args
+@implementation OpenZWaveIsNodeSecurityDevice_args
- (id) initWith_homeId: (int32_t) _homeId _nodeId: (uint8_t) _nodeId
{
@@ -8399,7 +8885,7 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"IsNodeRoutingDevice_args"];
+ [outProtocol writeStructBeginWithName: @"IsNodeSecurityDevice_args"];
if (___homeId_isset) {
[outProtocol writeFieldBeginWithName: @"_homeId" type: TType_I32 fieldID: 1];
[outProtocol writeI32: ___homeId];
@@ -8415,7 +8901,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeRoutingDevice_args("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeSecurityDevice_args("];
[ms appendString: @"_homeId:"];
[ms appendFormat: @"%i", ___homeId];
[ms appendString: @",_nodeId:"];
@@ -8426,7 +8912,7 @@ - (NSString *) description {
@end
-@interface OpenZWaveIsNodeRoutingDevice_result : NSObject <NSCoding> {
+@interface OpenZWaveIsNodeSecurityDevice_result : NSObject <NSCoding> {
BOOL __success;
BOOL __success_isset;
@@ -8447,7 +8933,7 @@ - (BOOL) successIsSet;
@end
-@implementation OpenZWaveIsNodeRoutingDevice_result
+@implementation OpenZWaveIsNodeSecurityDevice_result
- (id) initWithSuccess: (BOOL) success
{
@@ -8531,7 +9017,7 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"IsNodeRoutingDevice_result"];
+ [outProtocol writeStructBeginWithName: @"IsNodeSecurityDevice_result"];
if (__success_isset) {
[outProtocol writeFieldBeginWithName: @"success" type: TType_BOOL fieldID: 0];
@@ -8543,7 +9029,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeRoutingDevice_result("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeSecurityDevice_result("];
[ms appendString: @"success:"];
[ms appendFormat: @"%i", __success];
[ms appendString: @")"];
@@ -8552,7 +9038,7 @@ - (NSString *) description {
@end
-@interface OpenZWaveIsNodeSecurityDevice_args : NSObject <NSCoding> {
+@interface OpenZWaveGetNodeMaxBaudRate_args : NSObject <NSCoding> {
int32_t ___homeId;
uint8_t ___nodeId;
@@ -8580,7 +9066,7 @@ - (BOOL) _nodeIdIsSet;
@end
-@implementation OpenZWaveIsNodeSecurityDevice_args
+@implementation OpenZWaveGetNodeMaxBaudRate_args
- (id) initWith_homeId: (int32_t) _homeId _nodeId: (uint8_t) _nodeId
{
@@ -8700,7 +9186,7 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"IsNodeSecurityDevice_args"];
+ [outProtocol writeStructBeginWithName: @"GetNodeMaxBaudRate_args"];
if (___homeId_isset) {
[outProtocol writeFieldBeginWithName: @"_homeId" type: TType_I32 fieldID: 1];
[outProtocol writeI32: ___homeId];
@@ -8716,7 +9202,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeSecurityDevice_args("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"GetNodeMaxBaudRate_args("];
[ms appendString: @"_homeId:"];
[ms appendFormat: @"%i", ___homeId];
[ms appendString: @",_nodeId:"];
@@ -8727,30 +9213,30 @@ - (NSString *) description {
@end
-@interface OpenZWaveIsNodeSecurityDevice_result : NSObject <NSCoding> {
- BOOL __success;
+@interface OpenZWaveGetNodeMaxBaudRate_result : NSObject <NSCoding> {
+ int32_t __success;
BOOL __success_isset;
}
#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
-@property (nonatomic, getter=success, setter=setSuccess:) BOOL success;
+@property (nonatomic, getter=success, setter=setSuccess:) int32_t success;
#endif
-- (id) initWithSuccess: (BOOL) success;
+- (id) initWithSuccess: (int32_t) success;
- (void) read: (id <TProtocol>) inProtocol;
- (void) write: (id <TProtocol>) outProtocol;
-- (BOOL) success;
-- (void) setSuccess: (BOOL) success;
+- (int32_t) success;
+- (void) setSuccess: (int32_t) success;
- (BOOL) successIsSet;
@end
-@implementation OpenZWaveIsNodeSecurityDevice_result
+@implementation OpenZWaveGetNodeMaxBaudRate_result
-- (id) initWithSuccess: (BOOL) success
+- (id) initWithSuccess: (int32_t) success
{
self = [super init];
__success = success;
@@ -8763,7 +9249,7 @@ - (id) initWithCoder: (NSCoder *) decoder
self = [super init];
if ([decoder containsValueForKey: @"success"])
{
- __success = [decoder decodeBoolForKey: @"success"];
+ __success = [decoder decodeInt32ForKey: @"success"];
__success_isset = YES;
}
return self;
@@ -8773,7 +9259,7 @@ - (void) encodeWithCoder: (NSCoder *) encoder
{
if (__success_isset)
{
- [encoder encodeBool: __success forKey: @"success"];
+ [encoder encodeInt32: __success forKey: @"success"];
}
}
@@ -8782,11 +9268,11 @@ - (void) dealloc
[super dealloc];
}
-- (BOOL) success {
+- (int32_t) success {
return __success;
}
-- (void) setSuccess: (BOOL) success {
+- (void) setSuccess: (int32_t) success {
__success = success;
__success_isset = YES;
}
@@ -8815,8 +9301,8 @@ - (void) read: (id <TProtocol>) inProtocol
switch (fieldID)
{
case 0:
- if (fieldType == TType_BOOL) {
- BOOL fieldValue = [inProtocol readBool];
+ if (fieldType == TType_I32) {
+ int32_t fieldValue = [inProtocol readI32];
[self setSuccess: fieldValue];
} else {
[TProtocolUtil skipType: fieldType onProtocol: inProtocol];
@@ -8832,11 +9318,11 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"IsNodeSecurityDevice_result"];
+ [outProtocol writeStructBeginWithName: @"GetNodeMaxBaudRate_result"];
if (__success_isset) {
- [outProtocol writeFieldBeginWithName: @"success" type: TType_BOOL fieldID: 0];
- [outProtocol writeBool: __success];
+ [outProtocol writeFieldBeginWithName: @"success" type: TType_I32 fieldID: 0];
+ [outProtocol writeI32: __success];
[outProtocol writeFieldEnd];
}
[outProtocol writeFieldStop];
@@ -8844,7 +9330,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"IsNodeSecurityDevice_result("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"GetNodeMaxBaudRate_result("];
[ms appendString: @"success:"];
[ms appendFormat: @"%i", __success];
[ms appendString: @")"];
@@ -8853,7 +9339,7 @@ - (NSString *) description {
@end
-@interface OpenZWaveGetNodeMaxBaudRate_args : NSObject <NSCoding> {
+@interface OpenZWaveGetNodeVersion_args : NSObject <NSCoding> {
int32_t ___homeId;
uint8_t ___nodeId;
@@ -8881,7 +9367,7 @@ - (BOOL) _nodeIdIsSet;
@end
-@implementation OpenZWaveGetNodeMaxBaudRate_args
+@implementation OpenZWaveGetNodeVersion_args
- (id) initWith_homeId: (int32_t) _homeId _nodeId: (uint8_t) _nodeId
{
@@ -9001,7 +9487,7 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"GetNodeMaxBaudRate_args"];
+ [outProtocol writeStructBeginWithName: @"GetNodeVersion_args"];
if (___homeId_isset) {
[outProtocol writeFieldBeginWithName: @"_homeId" type: TType_I32 fieldID: 1];
[outProtocol writeI32: ___homeId];
@@ -9017,7 +9503,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"GetNodeMaxBaudRate_args("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"GetNodeVersion_args("];
[ms appendString: @"_homeId:"];
[ms appendFormat: @"%i", ___homeId];
[ms appendString: @",_nodeId:"];
@@ -9028,30 +9514,30 @@ - (NSString *) description {
@end
-@interface OpenZWaveGetNodeMaxBaudRate_result : NSObject <NSCoding> {
- int32_t __success;
+@interface OpenZWaveGetNodeVersion_result : NSObject <NSCoding> {
+ uint8_t __success;
BOOL __success_isset;
}
#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
-@property (nonatomic, getter=success, setter=setSuccess:) int32_t success;
+@property (nonatomic, getter=success, setter=setSuccess:) uint8_t success;
#endif
-- (id) initWithSuccess: (int32_t) success;
+- (id) initWithSuccess: (uint8_t) success;
- (void) read: (id <TProtocol>) inProtocol;
- (void) write: (id <TProtocol>) outProtocol;
-- (int32_t) success;
-- (void) setSuccess: (int32_t) success;
+- (uint8_t) success;
+- (void) setSuccess: (uint8_t) success;
- (BOOL) successIsSet;
@end
-@implementation OpenZWaveGetNodeMaxBaudRate_result
+@implementation OpenZWaveGetNodeVersion_result
-- (id) initWithSuccess: (int32_t) success
+- (id) initWithSuccess: (uint8_t) success
{
self = [super init];
__success = success;
@@ -9064,7 +9550,7 @@ - (id) initWithCoder: (NSCoder *) decoder
self = [super init];
if ([decoder containsValueForKey: @"success"])
{
- __success = [decoder decodeInt32ForKey: @"success"];
+ __success = [decoder decodeIntForKey: @"success"];
__success_isset = YES;
}
return self;
@@ -9074,7 +9560,7 @@ - (void) encodeWithCoder: (NSCoder *) encoder
{
if (__success_isset)
{
- [encoder encodeInt32: __success forKey: @"success"];
+ [encoder encodeInt: __success forKey: @"success"];
}
}
@@ -9083,11 +9569,11 @@ - (void) dealloc
[super dealloc];
}
-- (int32_t) success {
+- (uint8_t) success {
return __success;
}
-- (void) setSuccess: (int32_t) success {
+- (void) setSuccess: (uint8_t) success {
__success = success;
__success_isset = YES;
}
@@ -9116,8 +9602,8 @@ - (void) read: (id <TProtocol>) inProtocol
switch (fieldID)
{
case 0:
- if (fieldType == TType_I32) {
- int32_t fieldValue = [inProtocol readI32];
+ if (fieldType == TType_BYTE) {
+ uint8_t fieldValue = [inProtocol readByte];
[self setSuccess: fieldValue];
} else {
[TProtocolUtil skipType: fieldType onProtocol: inProtocol];
@@ -9133,11 +9619,11 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"GetNodeMaxBaudRate_result"];
+ [outProtocol writeStructBeginWithName: @"GetNodeVersion_result"];
if (__success_isset) {
- [outProtocol writeFieldBeginWithName: @"success" type: TType_I32 fieldID: 0];
- [outProtocol writeI32: __success];
+ [outProtocol writeFieldBeginWithName: @"success" type: TType_BYTE fieldID: 0];
+ [outProtocol writeByte: __success];
[outProtocol writeFieldEnd];
}
[outProtocol writeFieldStop];
@@ -9145,7 +9631,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"GetNodeMaxBaudRate_result("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"GetNodeVersion_result("];
[ms appendString: @"success:"];
[ms appendFormat: @"%i", __success];
[ms appendString: @")"];
@@ -9154,7 +9640,7 @@ - (NSString *) description {
@end
-@interface OpenZWaveGetNodeVersion_args : NSObject <NSCoding> {
+@interface OpenZWaveGetNodeSecurity_args : NSObject <NSCoding> {
int32_t ___homeId;
uint8_t ___nodeId;
@@ -9182,7 +9668,7 @@ - (BOOL) _nodeIdIsSet;
@end
-@implementation OpenZWaveGetNodeVersion_args
+@implementation OpenZWaveGetNodeSecurity_args
- (id) initWith_homeId: (int32_t) _homeId _nodeId: (uint8_t) _nodeId
{
@@ -9302,7 +9788,7 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"GetNodeVersion_args"];
+ [outProtocol writeStructBeginWithName: @"GetNodeSecurity_args"];
if (___homeId_isset) {
[outProtocol writeFieldBeginWithName: @"_homeId" type: TType_I32 fieldID: 1];
[outProtocol writeI32: ___homeId];
@@ -9318,7 +9804,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"GetNodeVersion_args("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"GetNodeSecurity_args("];
[ms appendString: @"_homeId:"];
[ms appendFormat: @"%i", ___homeId];
[ms appendString: @",_nodeId:"];
@@ -9329,7 +9815,7 @@ - (NSString *) description {
@end
-@interface OpenZWaveGetNodeVersion_result : NSObject <NSCoding> {
+@interface OpenZWaveGetNodeSecurity_result : NSObject <NSCoding> {
uint8_t __success;
BOOL __success_isset;
@@ -9350,7 +9836,7 @@ - (BOOL) successIsSet;
@end
-@implementation OpenZWaveGetNodeVersion_result
+@implementation OpenZWaveGetNodeSecurity_result
- (id) initWithSuccess: (uint8_t) success
{
@@ -9434,7 +9920,7 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"GetNodeVersion_result"];
+ [outProtocol writeStructBeginWithName: @"GetNodeSecurity_result"];
if (__success_isset) {
[outProtocol writeFieldBeginWithName: @"success" type: TType_BYTE fieldID: 0];
@@ -9446,7 +9932,7 @@ - (void) write: (id <TProtocol>) outProtocol {
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"GetNodeVersion_result("];
+ NSMutableString * ms = [NSMutableString stringWithString: @"GetNodeSecurity_result("];
[ms appendString: @"success:"];
[ms appendFormat: @"%i", __success];
[ms appendString: @")"];
@@ -41647,6 +42133,40 @@ - (int32_t) GetSendQueueCount: (int32_t) _homeId
return [self recv_GetSendQueueCount];
}
+- (void) send_LogDriverStatistics: (int32_t) _homeId
+{
+ [outProtocol writeMessageBeginWithName: @"LogDriverStatistics" type: TMessageType_CALL sequenceID: 0];
+ [outProtocol writeStructBeginWithName: @"LogDriverStatistics_args"];
+ [outProtocol writeFieldBeginWithName: @"_homeId" type: TType_I32 fieldID: 1];
+ [outProtocol writeI32: _homeId];
+ [outProtocol writeFieldEnd];
+ [outProtocol writeFieldStop];
+ [outProtocol writeStructEnd];
+ [outProtocol writeMessageEnd];
+ [[outProtocol transport] flush];
+}
+
+- (void) recv_LogDriverStatistics
+{
+ int msgType = 0;
+ [inProtocol readMessageBeginReturningName: nil type: &msgType sequenceID: NULL];
+ if (msgType == TMessageType_EXCEPTION) {
+ TApplicationException * x = [TApplicationException read: inProtocol];
+ [inProtocol readMessageEnd];
+ @throw x;
+ }
+ OpenZWaveLogDriverStatistics_result * result = [[[OpenZWaveLogDriverStatistics_result alloc] init] autorelease];
+ [result read: inProtocol];
+ [inProtocol readMessageEnd];
+ return;
+}
+
+- (void) LogDriverStatistics: (int32_t) _homeId
+{
+ [self send_LogDriverStatistics: _homeId];
+ [self recv_LogDriverStatistics];
+}
+
- (void) send_GetPollInterval
{
[outProtocol writeMessageBeginWithName: @"GetPollInterval" type: TMessageType_CALL sequenceID: 0];
@@ -42246,6 +42766,47 @@ - (uint8_t) GetNodeVersion: (int32_t) _homeId : (uint8_t) _nodeId
return [self recv_GetNodeVersion];
}
+- (void) send_GetNodeSecurity: (int32_t) _homeId : (uint8_t) _nodeId
+{
+ [outProtocol writeMessageBeginWithName: @"GetNodeSecurity" type: TMessageType_CALL sequenceID: 0];
+ [outProtocol writeStructBeginWithName: @"GetNodeSecurity_args"];
+ [outProtocol writeFieldBeginWithName: @"_homeId" type: TType_I32 fieldID: 1];
+ [outProtocol writeI32: _homeId];
+ [outProtocol writeFieldEnd];
+ [outProtocol writeFieldBeginWithName: @"_nodeId" type: TType_BYTE fieldID: 2];
+ [outProtocol writeByte: _nodeId];
+ [outProtocol writeFieldEnd];
+ [outProtocol writeFieldStop];
+ [outProtocol writeStructEnd];
+ [outProtocol writeMessageEnd];
+ [[outProtocol transport] flush];
+}
+
+- (uint8_t) recv_GetNodeSecurity
+{
+ int msgType = 0;
+ [inProtocol readMessageBeginReturningName: nil type: &msgType sequenceID: NULL];
+ if (msgType == TMessageType_EXCEPTION) {
+ TApplicationException * x = [TApplicationException read: inProtocol];
+ [inProtocol readMessageEnd];
+ @throw x;
+ }
+ OpenZWaveGetNodeSecurity_result * result = [[[OpenZWaveGetNodeSecurity_result alloc] init] autorelease];
+ [result read: inProtocol];
+ [inProtocol readMessageEnd];
+ if ([result successIsSet]) {
+ return [result success];
+ }
+ @throw [TApplicationException exceptionWithType: TApplicationException_MISSING_RESULT
+ reason: @"GetNodeSecurity failed: unknown result"];
+}
+
+- (uint8_t) GetNodeSecurity: (int32_t) _homeId : (uint8_t) _nodeId
+{
+ [self send_GetNodeSecurity: _homeId : _nodeId];
+ return [self recv_GetNodeSecurity];
+}
+
- (void) send_GetNodeBasic: (int32_t) _homeId : (uint8_t) _nodeId
{
[outProtocol writeMessageBeginWithName: @"GetNodeBasic" type: TMessageType_CALL sequenceID: 0];
@@ -46808,6 +47369,14 @@ - (id) initWithRemoteManager: (id <OpenZWaveRemoteManager>) service
[mMethodMap setValue: invocation forKey: @"GetSendQueueCount"];
}
{
+ SEL s = @selector(process_LogDriverStatistics_withSequenceID:inProtocol:outProtocol:);
+ NSMethodSignature * sig = [self methodSignatureForSelector: s];
+ NSInvocation * invocation = [NSInvocation invocationWithMethodSignature: sig];
+ [invocation setSelector: s];
+ [invocation retainArguments];
+ [mMethodMap setValue: invocation forKey: @"LogDriverStatistics"];
+ }
+ {
SEL s = @selector(process_GetPollInterval_withSequenceID:inProtocol:outProtocol:);
NSMethodSignature * sig = [self methodSignatureForSelector: s];
NSInvocation * invocation = [NSInvocation invocationWithMethodSignature: sig];
@@ -46928,6 +47497,14 @@ - (id) initWithRemoteManager: (id <OpenZWaveRemoteManager>) service
[mMethodMap setValue: invocation forKey: @"GetNodeVersion"];
}
{
+ SEL s = @selector(process_GetNodeSecurity_withSequenceID:inProtocol:outProtocol:);
+ NSMethodSignature * sig = [self methodSignatureForSelector: s];
+ NSInvocation * invocation = [NSInvocation invocationWithMethodSignature: sig];
+ [invocation setSelector: s];
+ [invocation retainArguments];
+ [mMethodMap setValue: invocation forKey: @"GetNodeSecurity"];
+ }
+ {
SEL s = @selector(process_GetNodeBasic_withSequenceID:inProtocol:outProtocol:);
NSMethodSignature * sig = [self methodSignatureForSelector: s];
NSInvocation * invocation = [NSInvocation invocationWithMethodSignature: sig];
@@ -47968,6 +48545,23 @@ - (void) process_GetSendQueueCount_withSequenceID: (int32_t) seqID inProtocol: (
[args release];
}
+- (void) process_LogDriverStatistics_withSequenceID: (int32_t) seqID inProtocol: (id<TProtocol>) inProtocol outProtocol: (id<TProtocol>) outProtocol
+{
+ OpenZWaveLogDriverStatistics_args * args = [[OpenZWaveLogDriverStatistics_args alloc] init];
+ [args read: inProtocol];
+ [inProtocol readMessageEnd];
+ OpenZWaveLogDriverStatistics_result * result = [[OpenZWaveLogDriverStatistics_result alloc] init];
+ [mService LogDriverStatistics: [args _homeId]];
+ [outProtocol writeMessageBeginWithName: @"LogDriverStatistics"
+ type: TMessageType_REPLY
+ sequenceID: seqID];
+ [result write: outProtocol];
+ [outProtocol writeMessageEnd];
+ [[outProtocol transport] flush];
+ [result release];
+ [args release];
+}
+
- (void) process_GetPollInterval_withSequenceID: (int32_t) seqID inProtocol: (id<TProtocol>) inProtocol outProtocol: (id<TProtocol>) outProtocol
{
OpenZWaveGetPollInterval_args * args = [[OpenZWaveGetPollInterval_args alloc] init];
@@ -48223,6 +48817,23 @@ - (void) process_GetNodeVersion_withSequenceID: (int32_t) seqID inProtocol: (id<
[args release];
}
+- (void) process_GetNodeSecurity_withSequenceID: (int32_t) seqID inProtocol: (id<TProtocol>) inProtocol outProtocol: (id<TProtocol>) outProtocol
+{
+ OpenZWaveGetNodeSecurity_args * args = [[OpenZWaveGetNodeSecurity_args alloc] init];
+ [args read: inProtocol];
+ [inProtocol readMessageEnd];
+ OpenZWaveGetNodeSecurity_result * result = [[OpenZWaveGetNodeSecurity_result alloc] init];
+ [result setSuccess: [mService GetNodeSecurity: [args _homeId]: [args _nodeId]]];
+ [outProtocol writeMessageBeginWithName: @"GetNodeSecurity"
+ type: TMessageType_REPLY
+ sequenceID: seqID];
+ [result write: outProtocol];
+ [outProtocol writeMessageEnd];
+ [[outProtocol transport] flush];
+ [result release];
+ [args release];
+}
+
- (void) process_GetNodeBasic_withSequenceID: (int32_t) seqID inProtocol: (id<TProtocol>) inProtocol outProtocol: (id<TProtocol>) outProtocol
{
OpenZWaveGetNodeBasic_args * args = [[OpenZWaveGetNodeBasic_args alloc] init];
View
528 gen-cpp/RemoteManager.cpp
@@ -1250,6 +1250,143 @@ uint32_t RemoteManager_GetSendQueueCount_presult::read(::apache::thrift::protoco
return xfer;
}
+uint32_t RemoteManager_LogDriverStatistics_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ xfer += iprot->readI32(this->_homeId);
+ this->__isset._homeId = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t RemoteManager_LogDriverStatistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("RemoteManager_LogDriverStatistics_args");
+ xfer += oprot->writeFieldBegin("_homeId", ::apache::thrift::protocol::T_I32, 1);
+ xfer += oprot->writeI32(this->_homeId);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t RemoteManager_LogDriverStatistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("RemoteManager_LogDriverStatistics_pargs");
+ xfer += oprot->writeFieldBegin("_homeId", ::apache::thrift::protocol::T_I32, 1);
+ xfer += oprot->writeI32((*(this->_homeId)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t RemoteManager_LogDriverStatistics_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t RemoteManager_LogDriverStatistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("RemoteManager_LogDriverStatistics_result");
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t RemoteManager_LogDriverStatistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
uint32_t RemoteManager_GetPollInterval_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
@@ -3725,6 +3862,178 @@ uint32_t RemoteManager_GetNodeVersion_presult::read(::apache::thrift::protocol::
return xfer;
}
+uint32_t RemoteManager_GetNodeSecurity_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ xfer += iprot->readI32(this->_homeId);
+ this->__isset._homeId = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_BYTE) {
+ xfer += iprot->readByte(this->_nodeId);
+ this->__isset._nodeId = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t RemoteManager_GetNodeSecurity_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("RemoteManager_GetNodeSecurity_args");
+ xfer += oprot->writeFieldBegin("_homeId", ::apache::thrift::protocol::T_I32, 1);
+ xfer += oprot->writeI32(this->_homeId);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("_nodeId", ::apache::thrift::protocol::T_BYTE, 2);
+ xfer += oprot->writeByte(this->_nodeId);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t RemoteManager_GetNodeSecurity_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("RemoteManager_GetNodeSecurity_pargs");
+ xfer += oprot->writeFieldBegin("_homeId", ::apache::thrift::protocol::T_I32, 1);
+ xfer += oprot->writeI32((*(this->_homeId)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("_nodeId", ::apache::thrift::protocol::T_BYTE, 2);
+ xfer += oprot->writeByte((*(this->_nodeId)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t RemoteManager_GetNodeSecurity_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BYTE) {
+ xfer += iprot->readByte(this->success);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t RemoteManager_GetNodeSecurity_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("RemoteManager_GetNodeSecurity_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BYTE, 0);
+ xfer += oprot->writeByte(this->success);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t RemoteManager_GetNodeSecurity_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BYTE) {
+ xfer += iprot->readByte((*(this->success)));
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
uint32_t RemoteManager_GetNodeBasic_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
@@ -22279,6 +22588,59 @@ int32_t RemoteManagerClient::recv_GetSendQueueCount()
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetSendQueueCount failed: unknown result");
}
+void RemoteManagerClient::LogDriverStatistics(const int32_t _homeId)
+{
+ send_LogDriverStatistics(_homeId);
+ recv_LogDriverStatistics();
+}
+
+void RemoteManagerClient::send_LogDriverStatistics(const int32_t _homeId)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("LogDriverStatistics", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ RemoteManager_LogDriverStatistics_pargs args;
+ args._homeId = &_homeId;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void RemoteManagerClient::recv_LogDriverStatistics()
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("LogDriverStatistics") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ RemoteManager_LogDriverStatistics_presult result;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ return;
+}
+
int32_t RemoteManagerClient::GetPollInterval()
{
send_GetPollInterval();
@@ -23153,6 +23515,65 @@ int8_t RemoteManagerClient::recv_GetNodeVersion()
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetNodeVersion failed: unknown result");
}
+int8_t RemoteManagerClient::GetNodeSecurity(const int32_t _homeId, const int8_t _nodeId)
+{
+ send_GetNodeSecurity(_homeId, _nodeId);
+ return recv_GetNodeSecurity();
+}
+
+void RemoteManagerClient::send_GetNodeSecurity(const int32_t _homeId, const int8_t _nodeId)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("GetNodeSecurity", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ RemoteManager_GetNodeSecurity_pargs args;
+ args._homeId = &_homeId;
+ args._nodeId = &_nodeId;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+int8_t RemoteManagerClient::recv_GetNodeSecurity()
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("GetNodeSecurity") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ int8_t _return;
+ RemoteManager_GetNodeSecurity_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ return _return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetNodeSecurity failed: unknown result");
+}
+
int8_t RemoteManagerClient::GetNodeBasic(const int32_t _homeId, const int8_t _nodeId)
{
send_GetNodeBasic(_homeId, _nodeId);
@@ -29893,6 +30314,59 @@ void RemoteManagerProcessor::process_GetSendQueueCount(int32_t seqid, ::apache::
}
}
+void RemoteManagerProcessor::process_LogDriverStatistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (eventHandler_.get() != NULL) {
+ ctx = eventHandler_->getContext("RemoteManager.LogDriverStatistics", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "RemoteManager.LogDriverStatistics");
+
+ if (eventHandler_.get() != NULL) {
+ eventHandler_->preRead(ctx, "RemoteManager.LogDriverStatistics");
+ }
+
+ RemoteManager_LogDriverStatistics_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (eventHandler_.get() != NULL) {
+ eventHandler_->postRead(ctx, "RemoteManager.LogDriverStatistics", bytes);
+ }
+
+ RemoteManager_LogDriverStatistics_result result;
+ try {
+ iface_->LogDriverStatistics(args._homeId);
+ } catch (const std::exception& e) {
+ if (eventHandler_.get() != NULL) {
+ eventHandler_->handlerError(ctx, "RemoteManager.LogDriverStatistics");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("LogDriverStatistics", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (eventHandler_.get() != NULL) {
+ eventHandler_->preWrite(ctx, "RemoteManager.LogDriverStatistics");
+ }
+
+ oprot->writeMessageBegin("LogDriverStatistics", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (eventHandler_.get() != NULL) {
+ eventHandler_->postWrite(ctx, "RemoteManager.LogDriverStatistics", bytes);
+ }
+}
+
void RemoteManagerProcessor::process_GetPollInterval(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
{
void* ctx = NULL;
@@ -30702,6 +31176,60 @@ void RemoteManagerProcessor::process_GetNodeVersion(int32_t seqid, ::apache::thr
}
}
+void RemoteManagerProcessor::process_GetNodeSecurity(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (eventHandler_.get() != NULL) {
+ ctx = eventHandler_->getContext("RemoteManager.GetNodeSecurity", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "RemoteManager.GetNodeSecurity");
+
+ if (eventHandler_.get() != NULL) {
+ eventHandler_->preRead(ctx, "RemoteManager.GetNodeSecurity");
+ }
+
+ RemoteManager_GetNodeSecurity_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (eventHandler_.get() != NULL) {
+ eventHandler_->postRead(ctx, "RemoteManager.GetNodeSecurity", bytes);
+ }
+
+ RemoteManager_GetNodeSecurity_result result;
+ try {
+ result.success = iface_->GetNodeSecurity(args._homeId, args._nodeId);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (eventHandler_.get() != NULL) {
+ eventHandler_->handlerError(ctx, "RemoteManager.GetNodeSecurity");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("GetNodeSecurity", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (eventHandler_.get() != NULL) {
+ eventHandler_->preWrite(ctx, "RemoteManager.GetNodeSecurity");
+ }
+
+ oprot->writeMessageBegin("GetNodeSecurity", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (eventHandler_.get() != NULL) {
+ eventHandler_->postWrite(ctx, "RemoteManager.GetNodeSecurity", bytes);
+ }
+}
+
void RemoteManagerProcessor::process_GetNodeBasic(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
{
void* ctx = NULL;
View
242 gen-cpp/RemoteManager.h
@@ -22,6 +22,7 @@ class RemoteManagerIf {
virtual void GetLibraryVersion(std::string& _return, const int32_t _homeId) = 0;
virtual void GetLibraryTypeName(std::string& _return, const int32_t _homeId) = 0;
virtual int32_t GetSendQueueCount(const int32_t _homeId) = 0;
+ virtual void LogDriverStatistics(const int32_t _homeId) = 0;
virtual int32_t GetPollInterval() = 0;
virtual void SetPollInterval(const int32_t _seconds) = 0;
virtual bool EnablePoll(const RemoteValueID& _valueId) = 0;
@@ -37,6 +38,7 @@ class RemoteManagerIf {
virtual bool IsNodeSecurityDevice(const int32_t _homeId, const int8_t _nodeId) = 0;
virtual int32_t GetNodeMaxBaudRate(const int32_t _homeId, const int8_t _nodeId) = 0;
virtual int8_t GetNodeVersion(const int32_t _homeId, const int8_t _nodeId) = 0;
+ virtual int8_t GetNodeSecurity(const int32_t _homeId, const int8_t _nodeId) = 0;
virtual int8_t GetNodeBasic(const int32_t _homeId, const int8_t _nodeId) = 0;
virtual int8_t GetNodeGeneric(const int32_t _homeId, const int8_t _nodeId) = 0;
virtual int8_t GetNodeSpecific(const int32_t _homeId, const int8_t _nodeId) = 0;
@@ -179,6 +181,9 @@ class RemoteManagerNull : virtual public RemoteManagerIf {
int32_t _return = 0;
return _return;
}
+ void LogDriverStatistics(const int32_t /* _homeId */) {
+ return;
+ }
int32_t GetPollInterval() {
int32_t _return = 0;
return _return;
@@ -238,6 +243,10 @@ class RemoteManagerNull : virtual public RemoteManagerIf {
int8_t _return = 0;
return _return;
}
+ int8_t GetNodeSecurity(const int32_t /* _homeId */, const int8_t /* _nodeId */) {
+ int8_t _return = 0;
+ return _return;
+ }
int8_t GetNodeBasic(const int32_t /* _homeId */, const int8_t /* _nodeId */) {
int8_t _return = 0;
return _return;
@@ -1457,6 +1466,94 @@ class RemoteManager_GetSendQueueCount_presult {
};
+typedef struct _RemoteManager_LogDriverStatistics_args__isset {
+ _RemoteManager_LogDriverStatistics_args__isset() : _homeId(false) {}
+ bool _homeId;
+} _RemoteManager_LogDriverStatistics_args__isset;
+
+class RemoteManager_LogDriverStatistics_args {
+ public:
+
+ RemoteManager_LogDriverStatistics_args() : _homeId(0) {
+ }
+
+ virtual ~RemoteManager_LogDriverStatistics_args() throw() {}
+
+ int32_t _homeId;
+
+ _RemoteManager_LogDriverStatistics_args__isset __isset;
+
+ void __set__homeId(const int32_t val) {
+ _homeId = val;
+ }
+
+ bool operator == (const RemoteManager_LogDriverStatistics_args & rhs) const
+ {
+ if (!(_homeId == rhs._homeId))
+ return false;
+ return true;
+ }
+ bool operator != (const RemoteManager_LogDriverStatistics_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const RemoteManager_LogDriverStatistics_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class RemoteManager_LogDriverStatistics_pargs {
+ public:
+
+
+ virtual ~RemoteManager_LogDriverStatistics_pargs() throw() {}
+
+ const int32_t* _homeId;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class RemoteManager_LogDriverStatistics_result {
+ public:
+
+ RemoteManager_LogDriverStatistics_result() {
+ }
+
+ virtual ~RemoteManager_LogDriverStatistics_result() throw() {}
+
+
+ bool operator == (const RemoteManager_LogDriverStatistics_result & /* rhs */) const
+ {
+ return true;
+ }
+ bool operator != (const RemoteManager_LogDriverStatistics_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const RemoteManager_LogDriverStatistics_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class RemoteManager_LogDriverStatistics_presult {
+ public:
+
+
+ virtual ~RemoteManager_LogDriverStatistics_presult() throw() {}
+
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+};
+
class RemoteManager_GetPollInterval_args {
public:
@@ -3133,6 +3230,123 @@ class RemoteManager_GetNodeVersion_presult {
};
+typedef struct _RemoteManager_GetNodeSecurity_args__isset {
+ _RemoteManager_GetNodeSecurity_args__isset() : _homeId(false), _nodeId(false) {}
+ bool _homeId;
+ bool _nodeId;
+} _RemoteManager_GetNodeSecurity_args__isset;
+
+class RemoteManager_GetNodeSecurity_args {
+ public:
+
+ RemoteManager_GetNodeSecurity_args() : _homeId(0), _nodeId(0) {
+ }
+
+ virtual ~RemoteManager_GetNodeSecurity_args() throw() {}
+
+ int32_t _homeId;
+ int8_t _nodeId;
+
+ _RemoteManager_GetNodeSecurity_args__isset __isset;
+
+ void __set__homeId(const int32_t val) {
+ _homeId = val;
+ }
+
+ void __set__nodeId(const int8_t val) {
+ _nodeId = val;
+ }
+
+ bool operator == (const RemoteManager_GetNodeSecurity_args & rhs) const
+ {
+ if (!(_homeId == rhs._homeId))
+ return false;
+ if (!(_nodeId == rhs._nodeId))
+ return false;
+ return true;
+ }
+ bool operator != (const RemoteManager_GetNodeSecurity_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const RemoteManager_GetNodeSecurity_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class RemoteManager_GetNodeSecurity_pargs {
+ public:
+
+
+ virtual ~RemoteManager_GetNodeSecurity_pargs() throw() {}
+
+ const int32_t* _homeId;
+ const int8_t* _nodeId;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _RemoteManager_GetNodeSecurity_result__isset {
+ _RemoteManager_GetNodeSecurity_result__isset() : success(false) {}
+ bool success;
+} _RemoteManager_GetNodeSecurity_result__isset;
+
+class RemoteManager_GetNodeSecurity_result {
+ public:
+
+ RemoteManager_GetNodeSecurity_result() : success(0) {
+ }
+
+ virtual ~RemoteManager_GetNodeSecurity_result() throw() {}
+
+ int8_t success;
+
+ _RemoteManager_GetNodeSecurity_result__isset __isset;
+
+ void __set_success(const int8_t val) {
+ success = val;
+ }
+
+ bool operator == (const RemoteManager_GetNodeSecurity_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const RemoteManager_GetNodeSecurity_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const RemoteManager_GetNodeSecurity_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _RemoteManager_GetNodeSecurity_presult__isset {
+ _RemoteManager_GetNodeSecurity_presult__isset() : success(false) {}
+ bool success;
+} _RemoteManager_GetNodeSecurity_presult__isset;
+
+class RemoteManager_GetNodeSecurity_presult {
+ public:
+
+
+ virtual ~RemoteManager_GetNodeSecurity_presult() throw() {}
+
+ int8_t* success;
+
+ _RemoteManager_GetNodeSecurity_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+};
+
typedef struct _RemoteManager_GetNodeBasic_args__isset {
_RemoteManager_GetNodeBasic_args__isset() : _homeId(false), _nodeId(false) {}
bool _homeId;
@@ -15346,6 +15560,9 @@ class RemoteManagerClient : virtual public RemoteManagerIf {
int32_t GetSendQueueCount(const int32_t _homeId);
void send_GetSendQueueCount(const int32_t _homeId);
int32_t recv_GetSendQueueCount();
+ void LogDriverStatistics(const int32_t _homeId);
+ void send_LogDriverStatistics(const int32_t _homeId);
+ void recv_LogDriverStatistics();
int32_t GetPollInterval();
void send_GetPollInterval();
int32_t recv_GetPollInterval();
@@ -15391,6 +15608,9 @@ class RemoteManagerClient : virtual public RemoteManagerIf {
int8_t GetNodeVersion(const int32_t _homeId, const int8_t _nodeId);
void send_GetNodeVersion(const int32_t _homeId, const int8_t _nodeId);
int8_t recv_GetNodeVersion();
+ int8_t GetNodeSecurity(const int32_t _homeId, const int8_t _nodeId);
+ void send_GetNodeSecurity(const int32_t _homeId, const int8_t _nodeId);
+ int8_t recv_GetNodeSecurity();
int8_t GetNodeBasic(const int32_t _homeId, const int8_t _nodeId);
void send_GetNodeBasic(const int32_t _homeId, const int8_t _nodeId);
int8_t recv_GetNodeBasic();
@@ -15736,6 +15956,7 @@ class RemoteManagerProcessor : virtual public ::apache::thrift::TProcessor {
void process_GetLibraryVersion(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_GetLibraryTypeName(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_GetSendQueueCount(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_LogDriverStatistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_GetPollInterval(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_SetPollInterval(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_EnablePoll(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
@@ -15751,6 +15972,7 @@ class RemoteManagerProcessor : virtual public ::apache::thrift::TProcessor {
void process_IsNodeSecurityDevice(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_GetNodeMaxBaudRate(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_GetNodeVersion(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_GetNodeSecurity(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_GetNodeBasic(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_GetNodeGeneric(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_GetNodeSpecific(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
@@ -15870,6 +16092,7 @@ class RemoteManagerProcessor : virtual public ::apache::thrift::TProcessor {
processMap_["GetLibraryVersion"] = &RemoteManagerProcessor::process_GetLibraryVersion;
processMap_["GetLibraryTypeName"] = &RemoteManagerProcessor::process_GetLibraryTypeName;
processMap_["GetSendQueueCount"] = &RemoteManagerProcessor::process_GetSendQueueCount;
+ processMap_["LogDriverStatistics"] = &RemoteManagerProcessor::process_LogDriverStatistics;
processMap_["GetPollInterval"] = &RemoteManagerProcessor::process_GetPollInterval;
processMap_["SetPollInterval"] = &RemoteManagerProcessor::process_SetPollInterval;
processMap_["EnablePoll"] = &RemoteManagerProcessor::process_EnablePoll;
@@ -15885,6 +16108,7 @@ class RemoteManagerProcessor : virtual public ::apache::thrift::TProcessor {
processMap_["IsNodeSecurityDevice"] = &RemoteManagerProcessor::process_IsNodeSecurityDevice;
processMap_["GetNodeMaxBaudRate"] = &RemoteManagerProcessor::process_GetNodeMaxBaudRate;
processMap_["GetNodeVersion"] = &RemoteManagerProcessor::process_GetNodeVersion;
+ processMap_["GetNodeSecurity"] = &RemoteManagerProcessor::process_GetNodeSecurity;
processMap_["GetNodeBasic"] = &RemoteManagerProcessor::process_GetNodeBasic;
processMap_["GetNodeGeneric"] = &RemoteManagerProcessor::process_GetNodeGeneric;
processMap_["GetNodeSpecific"] = &RemoteManagerProcessor::process_GetNodeSpecific;
@@ -16097,6 +16321,13 @@ class RemoteManagerMultiface : virtual public RemoteManagerIf {
}
}
+ void LogDriverStatistics(const int32_t _homeId) {
+ size_t sz = ifaces_.size();
+ for (size_t i = 0; i < sz; ++i) {
+ ifaces_[i]->LogDriverStatistics(_homeId);
+ }
+ }
+
int32_t GetPollInterval() {
size_t sz = ifaces_.size();
for (size_t i = 0; i < sz; ++i) {
@@ -16258,6 +16489,17 @@ class RemoteManagerMultiface : virtual public RemoteManagerIf {
}
}
+ int8_t GetNodeSecurity(const int32_t _homeId, const int8_t _nodeId) {
+ size_t sz = ifaces_.size();
+ for (size_t i = 0; i < sz; ++i) {
+ if (i == sz - 1) {
+ return ifaces_[i]->GetNodeSecurity(_homeId, _nodeId);
+ } else {
+ ifaces_[i]->GetNodeSecurity(_homeId, _nodeId);
+ }
+ }
+ }
+
int8_t GetNodeBasic(const int32_t _homeId, const int8_t _nodeId) {
size_t sz = ifaces_.size();
for (size_t i = 0; i < sz; ++i) {
View
15 gen-cpp/RemoteManager_server.cpp
@@ -94,6 +94,13 @@ class RemoteManagerHandler : virtual public RemoteManagerIf {
return(function_result);
}
+ void LogDriverStatistics(const int32_t _homeId) {
+ Manager* mgr = Manager::Get();
+ g_criticalSection.lock();
+ mgr->LogDriverStatistics((::uint32 const) _homeId);
+ g_criticalSection.unlock();
+ }
+
int32_t GetPollInterval() {
Manager* mgr = Manager::Get();
g_criticalSection.lock();
@@ -213,6 +220,14 @@ class RemoteManagerHandler : virtual public RemoteManagerIf {
return(function_result);
}
+ int8_t GetNodeSecurity(const int32_t _homeId, const int8_t _nodeId) {
+ Manager* mgr = Manager::Get();
+ g_criticalSection.lock();
+ ::int8_t function_result = mgr->GetNodeSecurity((::uint32 const) _homeId, (::uint8 const) _nodeId);
+ g_criticalSection.unlock();
+ return(function_result);
+ }
+
int8_t GetNodeBasic(const int32_t _homeId, const int8_t _nodeId) {
Manager* mgr = Manager::Get();
g_criticalSection.lock();
View
10 gen-cpp/RemoteManager_server.skeleton.cpp
@@ -62,6 +62,11 @@ class RemoteManagerHandler : virtual public RemoteManagerIf {
printf("GetSendQueueCount\n");
}
+ void LogDriverStatistics(const int32_t _homeId) {
+ // Your implementation goes here
+ printf("LogDriverStatistics\n");
+ }
+
int32_t GetPollInterval() {
// Your implementation goes here
printf("GetPollInterval\n");
@@ -137,6 +142,11 @@ class RemoteManagerHandler : virtual public RemoteManagerIf {
printf("GetNodeVersion\n");
}
+ int8_t GetNodeSecurity(const int32_t _homeId, const int8_t _nodeId) {
+ // Your implementation goes here
+ printf("GetNodeSecurity\n");
+ }
+
int8_t GetNodeBasic(const int32_t _homeId, const int8_t _nodeId) {
// Your implementation goes here
printf("GetNodeBasic\n");
View
421 gen-csharp/OpenZWave/RemoteManager.cs
@@ -24,6 +24,7 @@ public interface Iface {
string GetLibraryVersion(int _homeId);
string GetLibraryTypeName(int _homeId);
int GetSendQueueCount(int _homeId);
+ void LogDriverStatistics(int _homeId);
int GetPollInterval();
void SetPollInterval(int _seconds);
bool EnablePoll(RemoteValueID _valueId);
@@ -39,6 +40,7 @@ public interface Iface {
bool IsNodeSecurityDevice(int _homeId, byte _nodeId);
int GetNodeMaxBaudRate(int _homeId, byte _nodeId);
byte GetNodeVersion(int _homeId, byte _nodeId);
+ byte GetNodeSecurity(int _homeId, byte _nodeId);
byte GetNodeBasic(int _homeId, byte _nodeId);
byte GetNodeGeneric(int _homeId, byte _nodeId);
byte GetNodeSpecific(int _homeId, byte _nodeId);
@@ -435,6 +437,36 @@ public int recv_GetSendQueueCount()
throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetSendQueueCount failed: unknown result");
}
+ public void LogDriverStatistics(int _homeId)
+ {
+ send_LogDriverStatistics(_homeId);
+ recv_LogDriverStatistics();
+ }
+
+ public void send_LogDriverStatistics(int _homeId)
+ {
+ oprot_.WriteMessageBegin(new TMessage("LogDriverStatistics", TMessageType.Call, seqid_));
+ LogDriverStatistics_args args = new LogDriverStatistics_args();
+ args._homeId = _homeId;
+ args.Write(oprot_);
+ oprot_.WriteMessageEnd();
+ oprot_.Transport.Flush();
+ }
+
+ public void recv_LogDriverStatistics()
+ {
+ TMessage msg = iprot_.ReadMessageBegin();
+ if (msg.Type == TMessageType.Exception) {
+ TApplicationException x = TApplicationException.Read(iprot_);
+ iprot_.ReadMessageEnd();
+ throw x;
+ }
+ LogDriverStatistics_result result = new LogDriverStatistics_result();
+ result.Read(iprot_);
+ iprot_.ReadMessageEnd();
+ return;
+ }
+
public int GetPollInterval()
{
send_GetPollInterval();
@@ -936,6 +968,40 @@ public byte recv_GetNodeVersion()
throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetNodeVersion failed: unknown result");
}
+ public byte GetNodeSecurity(int _homeId, byte _nodeId)
+ {
+ send_GetNodeSecurity(_homeId, _nodeId);
+ return recv_GetNodeSecurity();
+ }
+
+ public void send_GetNodeSecurity(int _homeId, byte _nodeId)
+ {
+ oprot_.WriteMessageBegin(new TMessage("GetNodeSecurity", TMessageType.Call, seqid_));
+ GetNodeSecurity_args args = new GetNodeSecurity_args();
+ args._homeId = _homeId;
+ args._nodeId = _nodeId;
+ args.Write(oprot_);
+ oprot_.WriteMessageEnd();
+ oprot_.Transport.Flush();
+ }
+
+ public byte recv_GetNodeSecurity()
+ {
+ TMessage msg = iprot_.ReadMessageBegin();
+ if (msg.Type == TMessageType.Exception) {
+ TApplicationException x = TApplicationException.Read(iprot_);
+ iprot_.ReadMessageEnd();
+ throw x;
+ }
+ GetNodeSecurity_result result = new GetNodeSecurity_result();
+ result.Read(iprot_);
+ iprot_.ReadMessageEnd();
+ if (result.__isset.success) {
+ return result.Success;
+ }
+ throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetNodeSecurity failed: unknown result");
+ }
+
public byte GetNodeBasic(int _homeId, byte _nodeId)
{