1 /*
2  * Copyright (C) 2018-2022 Intel Corporation.
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef _CHANNELS_H
7 #define _CHANNELS_H
8 
9 #define BASE_DIR_MASK		(IN_CLOSE_WRITE | IN_DELETE_SELF | IN_MOVE_SELF)
10 #define UPTIME_MASK		IN_CLOSE_WRITE
11 #define MAXEVENTS 15
12 #define HEART_RATE (6 * 1000) /* ms */
13 
14 struct channel_t {
15 	char *name;
16 	int fd;
17 	void (*channel_fn)(struct channel_t *);
18 };
19 extern int create_detached_thread(pthread_t *pid,
20 				void *(*fn)(void *), void *arg);
21 extern int init_channels(void);
22 
23 
24 #endif
25