Forgot to commit new log internal header file
This commit is contained in:
parent
ad8b338a7b
commit
38966cb2fb
6 changed files with 37 additions and 7 deletions
|
@ -18,7 +18,7 @@ libnfc_la_SOURCES = \
|
||||||
drivers.h \
|
drivers.h \
|
||||||
iso7816.h \
|
iso7816.h \
|
||||||
log.h \
|
log.h \
|
||||||
log_internal.h \
|
log-internal.h \
|
||||||
mirror-subr.h \
|
mirror-subr.h \
|
||||||
nfc-internal.h \
|
nfc-internal.h \
|
||||||
target-subr.h
|
target-subr.h
|
||||||
|
|
33
libnfc/log-internal.h
Normal file
33
libnfc/log-internal.h
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
/*-
|
||||||
|
* Copyright (C) 2013 Romuald Conty
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU Lesser General Public License as published by the
|
||||||
|
* Free Software Foundation, either version 3 of the License, or (at your
|
||||||
|
* option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 Lesser General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __LOG_INTERNAL_H__
|
||||||
|
#define __LOG_INTERNAL_H__
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include "config.h"
|
||||||
|
#endif // HAVE_CONFIG_H
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
// Internal methods so different platforms can route the logging
|
||||||
|
// Offering both forms of the variadic function
|
||||||
|
// These are implemented in the log_<platform> specific file
|
||||||
|
void log_put_internal(const char *format, ...);
|
||||||
|
void log_vput_internal(const char *format, va_list args);
|
||||||
|
|
||||||
|
#endif // __LOG_INTERNAL_H__
|
|
@ -74,7 +74,7 @@ log_priority_to_str(const int priority)
|
||||||
|
|
||||||
#ifdef LOG
|
#ifdef LOG
|
||||||
|
|
||||||
#include "log_internal.h"
|
#include "log-internal.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
log_init(const nfc_context *context)
|
log_init(const nfc_context *context)
|
||||||
|
|
|
@ -70,9 +70,6 @@ void log_put(const uint8_t group, const char *category, const uint8_t priority,
|
||||||
__attribute__((format(printf, 4, 5)))
|
__attribute__((format(printf, 4, 5)))
|
||||||
# endif
|
# endif
|
||||||
;
|
;
|
||||||
void log_put_internal(const char *format, ...);
|
|
||||||
void log_vput_internal(const char *format, va_list args);
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
// No logging
|
// No logging
|
||||||
#define log_init(nfc_context) ((void) 0)
|
#define log_init(nfc_context) ((void) 0)
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "log_internal.h"
|
#include "log-internal.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "log_internal.h"
|
#include "log-internal.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue