/* * Copyright (c) 2022 * by AVM GmbH Berlin, Germany * * Licence: Free, use with no restriction. * * vim: expandtab fileencoding=utf-8 shiftwidth=4 softtabstop=4 */ #ifdef __cplusplus extern "C" { #endif #ifdef __GNUC__ #define PRINTF_ATTR(xformat,xarg) __attribute__ ((__format__(__printf__, (xformat), (xarg)))) #else #define PRINTF_ATTR(xformat,xarg) #endif void *ftplog_init(const char* dump_file_name, const char* msg_prefix); void ftplog_msg(const char *format, ...) PRINTF_ATTR(1, 2); #ifdef __cplusplus } #endif