Zephyr Project API
3.6.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
log_backend_net.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 David Corbeil
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_LOG_BACKEND_NET_H_
8
#define ZEPHYR_LOG_BACKEND_NET_H_
9
10
#include <
stdbool.h
>
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
28
bool
log_backend_net_set_addr
(
const
char
*addr);
29
39
#if defined(CONFIG_NET_HOSTNAME_ENABLE)
40
void
log_backend_net_hostname_set
(
char
*hostname,
size_t
len);
41
#else
42
static
inline
void
log_backend_net_hostname_set
(
const
char
*hostname,
size_t
len)
43
{
44
ARG_UNUSED(hostname);
45
ARG_UNUSED(len);
46
}
47
#endif
48
49
#ifdef __cplusplus
50
}
51
#endif
52
53
#endif
/* ZEPHYR_LOG_BACKEND_NET_H_ */
log_backend_net_set_addr
bool log_backend_net_set_addr(const char *addr)
Allows user to set a server IP address at runtime.
log_backend_net_hostname_set
static void log_backend_net_hostname_set(const char *hostname, size_t len)
update the hostname
Definition
log_backend_net.h:42
stdbool.h
include
zephyr
logging
log_backend_net.h
Generated on Sun Aug 4 2024 12:32:28 for Zephyr Project API by
1.9.8