Forgot to commit new log internal header file

This commit is contained in:
Philippe Teuwen 2013-03-09 10:56:51 +01:00
parent ad8b338a7b
commit 38966cb2fb
6 changed files with 37 additions and 7 deletions

View file

@ -18,7 +18,7 @@ libnfc_la_SOURCES = \
drivers.h \
iso7816.h \
log.h \
log_internal.h \
log-internal.h \
mirror-subr.h \
nfc-internal.h \
target-subr.h

33
libnfc/log-internal.h Normal file
View 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__

View file

@ -74,7 +74,7 @@ log_priority_to_str(const int priority)
#ifdef LOG
#include "log_internal.h"
#include "log-internal.h"
void
log_init(const nfc_context *context)

View file

@ -70,9 +70,6 @@ void log_put(const uint8_t group, const char *category, const uint8_t priority,
__attribute__((format(printf, 4, 5)))
# endif
;
void log_put_internal(const char *format, ...);
void log_vput_internal(const char *format, va_list args);
#else
// No logging
#define log_init(nfc_context) ((void) 0)

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/
#include "log_internal.h"
#include "log-internal.h"
#include <stdio.h>
#include <stdarg.h>

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/
#include "log_internal.h"
#include "log-internal.h"
#include <stdio.h>
#include <stdarg.h>