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 16 /** 17 * @brief Allows user to set a server IP address at runtime 18 * 19 * @details This function allows the user to set an IPv4 or IPv6 address at runtime. It can be 20 * called either before or after the backend has been initialized. If it gets called when 21 * the net logger backend context is running, it'll release it and create another one with 22 * the new address next time process() gets called. 23 * 24 * @param addr String that contains the IP address. 25 * 26 * @return True if parsing could be done, false otherwise. 27 */ 28 bool log_backend_net_set_addr(const char *addr); 29 30 #ifdef __cplusplus 31 } 32 #endif 33 34 #endif /* ZEPHYR_LOG_BACKEND_NET_H_ */ 35