Browse Source
Fixed currentUpdatedHandlerId variable appearing multiple times in several build units. (#120)
* Fixed currentUpdatedHandlerId variable appearing multiple times in several build units
master
kasedy
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
1 deletions
-
lib/framework/StatefulService.cpp
-
lib/framework/StatefulService.h
|
@ -0,0 +1,3 @@ |
|
|
|
|
|
#include <StatefulService.h>
|
|
|
|
|
|
|
|
|
|
|
|
update_handler_id_t StateUpdateHandlerInfo::currentUpdatedHandlerId = 0; |
|
@ -14,9 +14,9 @@ |
|
|
|
|
|
|
|
|
typedef size_t update_handler_id_t; |
|
|
typedef size_t update_handler_id_t; |
|
|
typedef std::function<void(const String& originId)> StateUpdateCallback; |
|
|
typedef std::function<void(const String& originId)> StateUpdateCallback; |
|
|
static update_handler_id_t currentUpdatedHandlerId; |
|
|
|
|
|
|
|
|
|
|
|
typedef struct StateUpdateHandlerInfo { |
|
|
typedef struct StateUpdateHandlerInfo { |
|
|
|
|
|
static update_handler_id_t currentUpdatedHandlerId; |
|
|
update_handler_id_t _id; |
|
|
update_handler_id_t _id; |
|
|
StateUpdateCallback _cb; |
|
|
StateUpdateCallback _cb; |
|
|
bool _allowRemove; |
|
|
bool _allowRemove; |
|
|