Debian Codegraph @

src/log_json.h

raw symbols SCIP
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3 * Copyright (C) 2025 Linutronix GmbH
4 */
5
6 #ifndef _LOG_JSON_H_
7 #define _LOG_JSON_H_
8
9 #include <netdb.h>
10 #include <sys/socket.h>
11 #include <sys/types.h>
12
13 struct log_json_thread_context {
14 struct sockaddr_storage dest;
15 pthread_t pid;
16 int socket;
17 volatile int stop;
18 };
19
20 struct log_json_thread_context *log_json_thread_create(void);
21 void log_json_thread_stop(struct log_json_thread_context *ctx);
22 void log_json_thread_free(struct log_json_thread_context *ctx);
23 void log_json_thread_wait_for_finish(struct log_json_thread_context *ctx);
24
25 #endif /* _LOG_JSON_H_ */