Skip to content

Commit

Permalink
add missing namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ekarak committed Jun 12, 2015
1 parent 0c5fa05 commit 5f7804f
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 51 deletions.
3 changes: 2 additions & 1 deletion lib/openzwave-shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ var debugAddon = addonLocation+'Debug/'+addonFileName;
var releaseAddon = addonLocation+'Release/'+addonFileName;

if (fs.existsSync(debugAddon)) {
console.log("loading up DEBUG addon");
console.log("loading up DEBUG addon: "+debugAddon);
addon = require(debugAddon).Emitter;
} else {
console.log("loading up RELEASE addon: "+releaseAddon);
addon = require(releaseAddon).Emitter;
}

Expand Down
6 changes: 3 additions & 3 deletions src/openzwave-config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace OZW {
* Set Config Parameters
*/
// ===================================================================
NAN_METHOD(SetConfigParam)
NAN_METHOD(OZW::SetConfigParam)
// ===================================================================
{
NanScope();
Expand Down Expand Up @@ -60,7 +60,7 @@ namespace OZW {
* Configuration::StaticGetCommandClassId.
*/
// ===================================================================
NAN_METHOD(RequestConfigParam)
NAN_METHOD(OZW::RequestConfigParam)
// ===================================================================
{
NanScope();
Expand All @@ -79,7 +79,7 @@ namespace OZW {
* device.
* */
// ===================================================================
NAN_METHOD(RequestAllConfigParams)
NAN_METHOD(OZW::RequestAllConfigParams)
// ===================================================================
{
NanScope();
Expand Down
28 changes: 14 additions & 14 deletions src/openzwave-driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ using namespace node;
namespace OZW {

// ===================================================================
NAN_METHOD(Connect)
NAN_METHOD(OZW::Connect)
// ===================================================================
{
NanScope();
Expand All @@ -47,7 +47,7 @@ namespace OZW {
}

// ===================================================================
NAN_METHOD(Disconnect)
NAN_METHOD(OZW::Disconnect)
// ===================================================================
{
NanScope();
Expand All @@ -67,7 +67,7 @@ namespace OZW {
* out all known configuration, a soft reset just restarts the chip.
*/
// ===================================================================
NAN_METHOD(HardReset)
NAN_METHOD(OZW::HardReset)
// ===================================================================
{
NanScope();
Expand All @@ -78,7 +78,7 @@ namespace OZW {
}

// ===================================================================
NAN_METHOD(SoftReset)
NAN_METHOD(OZW::SoftReset)
// ===================================================================
{
NanScope();
Expand All @@ -89,7 +89,7 @@ namespace OZW {
}

// ===================================================================
NAN_METHOD(BeginControllerCommand)
NAN_METHOD(OZW::BeginControllerCommand)
// ===================================================================
{
NanScope();
Expand Down Expand Up @@ -135,7 +135,7 @@ namespace OZW {
}

// ===================================================================
NAN_METHOD(CancelControllerCommand)
NAN_METHOD(OZW::CancelControllerCommand)
// ===================================================================
{
NanScope();
Expand All @@ -144,7 +144,7 @@ namespace OZW {
}

// ===================================================================
NAN_METHOD(GetControllerNodeId)
NAN_METHOD(OZW::GetControllerNodeId)
// ===================================================================
{
NanScope();
Expand All @@ -153,7 +153,7 @@ namespace OZW {
}

// ===================================================================
NAN_METHOD(GetSUCNodeId)
NAN_METHOD(OZW::GetSUCNodeId)
// ===================================================================
{
NanScope();
Expand All @@ -167,7 +167,7 @@ namespace OZW {
* are secondary controllers.
*/
// ===================================================================
NAN_METHOD(IsPrimaryController)
NAN_METHOD(OZW::IsPrimaryController)
// ===================================================================
{
NanScope();
Expand All @@ -181,7 +181,7 @@ namespace OZW {
* receive information about network changes.
*/
// ===================================================================
NAN_METHOD(IsStaticUpdateController)
NAN_METHOD(OZW::IsStaticUpdateController)
// ===================================================================
{
NanScope();
Expand All @@ -194,7 +194,7 @@ namespace OZW {
* associated with other controllers to enable events to be passed on.
*/
// ===================================================================
NAN_METHOD(IsBridgeController)
NAN_METHOD(OZW::IsBridgeController)
// ===================================================================
{
NanScope();
Expand All @@ -205,7 +205,7 @@ namespace OZW {
/* Get the version of the Z-Wave API library used by a controller.
*/
// ===================================================================
NAN_METHOD(GetLibraryVersion)
NAN_METHOD(OZW::GetLibraryVersion)
// ===================================================================
{
NanScope();
Expand All @@ -229,7 +229,7 @@ namespace OZW {
* use the IsBridgeController method.
*/
// ===================================================================
NAN_METHOD(GetLibraryTypeName)
NAN_METHOD(OZW::GetLibraryTypeName)
// ===================================================================
{
NanScope();
Expand All @@ -238,7 +238,7 @@ namespace OZW {
}

// ===================================================================
NAN_METHOD(GetSendQueueCount)
NAN_METHOD(OZW::GetSendQueueCount)
// ===================================================================
{
NanScope();
Expand Down
12 changes: 6 additions & 6 deletions src/openzwave-groups.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace OZW {
* will be a number between 1 and 4.
*/
// ===================================================================
NAN_METHOD(GetNumGroups)
NAN_METHOD(OZW::GetNumGroups)
// ===================================================================
{
NanScope();
Expand All @@ -43,7 +43,7 @@ namespace OZW {
*
*/
// ===================================================================
NAN_METHOD(GetAssociations)
NAN_METHOD(OZW::GetAssociations)
// ===================================================================
{
NanScope();
Expand Down Expand Up @@ -73,7 +73,7 @@ namespace OZW {
*
*/
// ===================================================================
NAN_METHOD(GetMaxAssociations)
NAN_METHOD(OZW::GetMaxAssociations)
// ===================================================================
{
NanScope();
Expand All @@ -92,7 +92,7 @@ namespace OZW {
*
*/
// ===================================================================
NAN_METHOD(GetGroupLabel)
NAN_METHOD(OZW::GetGroupLabel)
// ===================================================================
{
NanScope();
Expand All @@ -111,7 +111,7 @@ namespace OZW {
*
*/
// ===================================================================
NAN_METHOD(AddAssociation)
NAN_METHOD(OZW::AddAssociation)
// ===================================================================
{
NanScope();
Expand All @@ -131,7 +131,7 @@ namespace OZW {
*
*/
// ===================================================================
NAN_METHOD(RemoveAssociation)
NAN_METHOD(OZW::RemoveAssociation)
// ===================================================================
{
NanScope();
Expand Down
8 changes: 4 additions & 4 deletions src/openzwave-network.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace OZW {
* for testing network reliability.
*/
// ===================================================================
NAN_METHOD(TestNetworkNode)
NAN_METHOD(OZW::TestNetworkNode)
// ===================================================================
{
NanScope();
Expand All @@ -44,7 +44,7 @@ namespace OZW {
* network for testing network reliability.
*/
// ===================================================================
NAN_METHOD(TestNetwork)
NAN_METHOD(OZW::TestNetwork)
// ===================================================================
{
NanScope();
Expand All @@ -60,7 +60,7 @@ namespace OZW {
* Heal network node by requesting the node rediscover their neighbors.
*/
// ===================================================================
NAN_METHOD(HealNetworkNode)
NAN_METHOD(OZW::HealNetworkNode)
// ===================================================================
{
NanScope();
Expand All @@ -79,7 +79,7 @@ namespace OZW {
* Can take a while on larger networks.
*/
// ===================================================================
NAN_METHOD(HealNetwork)
NAN_METHOD(OZW::HealNetwork)
// ===================================================================
{
NanScope();
Expand Down
12 changes: 6 additions & 6 deletions src/openzwave-nodes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace OZW {
* Gets the neighbors for a node
*/
// ===================================================================
NAN_METHOD(GetNodeNeighbors)
NAN_METHOD(OZW::GetNodeNeighbors)
// ===================================================================
{
NanScope();
Expand All @@ -43,7 +43,7 @@ namespace OZW {
}

// ===================================================================
NAN_METHOD(SwitchAllOn)
NAN_METHOD(OZW::SwitchAllOn)
// ===================================================================
{
NanScope();
Expand All @@ -54,7 +54,7 @@ namespace OZW {
}

// ===================================================================
NAN_METHOD(SwitchAllOff)
NAN_METHOD(OZW::SwitchAllOff)
// ===================================================================
{
NanScope();
Expand All @@ -68,7 +68,7 @@ namespace OZW {
* Write a new location string to the device, if supported.
*/
// ===================================================================
NAN_METHOD(SetLocation)
NAN_METHOD(OZW::SetLocation)
// ===================================================================
{
NanScope();
Expand All @@ -85,7 +85,7 @@ namespace OZW {
* Write a new name string to the device, if supported.
*/
// ===================================================================
NAN_METHOD(SetName)
NAN_METHOD(OZW::SetName)
// ===================================================================
{
NanScope();
Expand All @@ -109,7 +109,7 @@ namespace OZW {
* This is the same as the query state starting from the beginning.
*/
// ===================================================================
NAN_METHOD(RefreshNodeInfo)
NAN_METHOD(OZW::RefreshNodeInfo)
// ===================================================================
{
NanScope();
Expand Down
14 changes: 7 additions & 7 deletions src/openzwave-polling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace OZW {

// Get the time period between polls of a node's state
// ===================================================================
NAN_METHOD(GetPollInterval)
NAN_METHOD(OZW::GetPollInterval)
// ===================================================================
{
NanScope();
Expand All @@ -43,7 +43,7 @@ namespace OZW {
* network does not have to cope with more than one poll per second).
*/
// ===================================================================
NAN_METHOD(SetPollInterval)
NAN_METHOD(OZW::SetPollInterval)
// ===================================================================
{
NanScope();
Expand All @@ -57,7 +57,7 @@ namespace OZW {
* Enable/Disable polling on a COMMAND_CLASS basis.
*/
// ===================================================================
NAN_METHOD(EnablePoll)
NAN_METHOD(OZW::EnablePoll)
// ===================================================================
{
NanScope();
Expand All @@ -80,7 +80,7 @@ namespace OZW {
}

// ===================================================================
NAN_METHOD(DisablePoll)
NAN_METHOD(OZW::DisablePoll)
// ===================================================================
{
NanScope();
Expand All @@ -104,7 +104,7 @@ namespace OZW {

// Determine the polling of a device's state.
// ===================================================================
NAN_METHOD(IsPolled)
NAN_METHOD(OZW::IsPolled)
// ===================================================================
{
NanScope();
Expand All @@ -130,7 +130,7 @@ namespace OZW {
}

// ===================================================================
NAN_METHOD(SetPollIntensity)
NAN_METHOD(OZW::SetPollIntensity)
// ===================================================================
{
NanScope();
Expand Down Expand Up @@ -158,7 +158,7 @@ namespace OZW {

// Get the polling intensity of a device's state.
// ===================================================================
NAN_METHOD(GetPollIntensity)
NAN_METHOD(OZW::GetPollIntensity)
// ===================================================================
{
NanScope();
Expand Down
Loading

0 comments on commit 5f7804f

Please sign in to comment.