nRF Connect SDK API
3.4.99
Toggle main menu visibility
Loading...
Searching...
No Matches
fs_event.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
7
#ifndef _FS_EVENT_H_
8
#define _FS_EVENT_H_
9
15
16
#include <string.h>
17
#include <zephyr/toolchain.h>
18
19
#include <
app_event_manager.h
>
20
#include <
app_event_manager_profiler_tracer.h
>
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
enum
fs_request
{
27
FS_REQUEST_CREATE_FILE
,
28
FS_REQUEST_PARSE_FILE
,
/* Triggered to detect user changes */
29
};
30
32
struct
fs_event
{
33
struct
app_event_header
header
;
34
35
enum
fs_request
req
;
36
const
char
*
mnt_point
;
37
};
38
39
APP_EVENT_TYPE_DECLARE
(
fs_event
);
40
41
int
fs_event_helper_file_write
(
42
const
char
*mnt_point,
43
const
char
*file_path,
44
char
const
*file_contents,
45
size_t
contents_len);
46
47
#ifdef __cplusplus
48
}
49
#endif
50
54
55
#endif
/* _FS_EVENT_H_ */
app_event_manager.h
Application Event Manager header.
app_event_manager_profiler_tracer.h
Application Event Manager profiler tracer header.
APP_EVENT_TYPE_DECLARE
#define APP_EVENT_TYPE_DECLARE(ename)
Declare an event type.
Definition
app_event_manager.h:143
fs_request
fs_request
Definition
fs_event.h:26
FS_REQUEST_CREATE_FILE
@ FS_REQUEST_CREATE_FILE
Definition
fs_event.h:27
FS_REQUEST_PARSE_FILE
@ FS_REQUEST_PARSE_FILE
Definition
fs_event.h:28
fs_event_helper_file_write
int fs_event_helper_file_write(const char *mnt_point, const char *file_path, char const *file_contents, size_t contents_len)
fs_event::mnt_point
const char * mnt_point
Definition
fs_event.h:36
fs_event::header
struct app_event_header header
Definition
fs_event.h:33
fs_event::req
enum fs_request req
Definition
fs_event.h:35
fs_event
Definition
fs_event.h:32
applications
connectivity_bridge
src
events
fs_event.h
Generated on
for nRF Connect SDK API by
1.17.0