Skip to content

Commit

Permalink
Convert reporting from C to C++ (#3424)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Nov 30, 2020
1 parent 0c22d2f commit c940fd3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void emberAfPluginReportingStackStatusCallback(EmberStatus status)
}
}

void emberAfPluginReportingInitCallback(void)
extern "C" void emberAfPluginReportingInitCallback(void)
{
// On device initialization, any attributes that have been set up to report
// should generate an attribute report.
Expand All @@ -171,7 +171,7 @@ void emberAfPluginReportingInitCallback(void)
scheduleTick();
}

void emberAfPluginReportingTickEventHandler(void)
extern "C" void emberAfPluginReportingTickEventHandler(void)
{
EmberApsFrame * apsFrame = NULL;
EmberAfStatus status;
Expand Down
8 changes: 4 additions & 4 deletions src/app/util/types_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -1963,10 +1963,6 @@ typedef struct
#define emberAfPluginColorControlServerComputePwmFromHsvCallback(endpoint) (void) 0
#define emberAfPluginColorControlServerComputePwmFromTempCallback(endpoint) (void) 0

#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus

/**
* @brief Macro that copies the token value from non-volatile storage into a RAM
* location. This macro can only be used with tokens that are defined using
Expand Down Expand Up @@ -2002,4 +1998,8 @@ typedef struct

uint32_t halCommonGetInt32uMillisecondTick(void);

#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus

#endif // TYPES_STUB_H

0 comments on commit c940fd3

Please sign in to comment.