Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/* syslog.h
Copyright (C) 2023 Timo Kokkonen <tjko@iki.fi>
SPDX-License-Identifier: GPL-3.0-or-later
This file is part of BrickPico.
BrickPico is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
BrickPico is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with BrickPico. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef _BRICKPICO_SYSLOG_H_
#define _BRICKPICO_SYSLOG_H_
#include "pico/cyw43_arch.h"
#include "log.h"
#define SYSLOG_DEFAULT_PORT 514
#define SYSLOG_MAX_MSG_LEN 256
int syslog_open(const ip_addr_t *server, u16_t port, int facility, const char *hostname);
void syslog_close();
int syslog_msg(int priority, const char *format, ...);
#endif /* _BRICKPICO_SYSLOG_H_ */
25fd866a6This file is pinned to the selected release. Download the original to open it in your design tool.