Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

applications: nrf_desktop: hwid fix c++ compatibility #19687

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

#include "config_event.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief Parse the configuration channel report.
*
Expand Down Expand Up @@ -130,6 +134,10 @@ bool config_channel_transport_rsp_receive(struct config_channel_transport *trans
*/
void config_channel_transport_disconnect(struct config_channel_transport *transport);

#ifdef __cplusplus
}
#endif

/**
* @}
*/
Expand Down
8 changes: 8 additions & 0 deletions applications/nrf_desktop/src/util/dfu_lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* @{
*/

#ifdef __cplusplus
extern "C" {
#endif

/** @brief DFU lock owner descriptor. */
struct dfu_lock_owner {
/** Owner name. */
Expand Down Expand Up @@ -69,6 +73,10 @@ int dfu_lock_claim(const struct dfu_lock_owner *new_owner);
*/
int dfu_lock_release(const struct dfu_lock_owner *owner);

#ifdef __cplusplus
}
#endif

/**
* @}
*/
Expand Down
8 changes: 8 additions & 0 deletions applications/nrf_desktop/src/util/hwid.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@
#ifndef _HWID_H_
#define _HWID_H_

#ifdef __cplusplus
extern "C" {
#endif

#define HWID_LEN 8

void hwid_get(uint8_t *buf, size_t buf_size);

#ifdef __cplusplus
}
#endif

#endif /* _HWID_H_ */