nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
dfu_lock.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _DFU_LOCK_H_
8#define _DFU_LOCK_H_
9
10#include <zephyr/types.h>
11
19#ifdef __cplusplus
20extern "C" {
21#endif
22
26 const char *name;
27
44 void (*owner_changed)(const struct dfu_lock_owner *new_owner);
45};
46
61int dfu_lock_claim(const struct dfu_lock_owner *new_owner);
62
74int dfu_lock_release(const struct dfu_lock_owner *owner);
75
76#ifdef __cplusplus
77}
78#endif
79
84#endif /* _DFU_LOCK_H_ */
int dfu_lock_claim(const struct dfu_lock_owner *new_owner)
int dfu_lock_release(const struct dfu_lock_owner *owner)
const char * name
Definition dfu_lock.h:26
void(* owner_changed)(const struct dfu_lock_owner *new_owner)
Definition dfu_lock.h:44
DFU lock owner descriptor.
Definition dfu_lock.h:24