[Pcsclite-cvs-commit] CVS PCSC/src
CVS User rousseau
ludovic.rousseau@free.fr
Tue, 12 Apr 2005 07:40:59 +0000
Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv7707
Modified Files:
debuglog.c
Log Message:
define some/most functions as INTERNAL (see misc.h) so the function symbols
are not visible in libpcsclite.so
This will prevent function names collision with homonym functions
defined in a library or program linked with libpcsclite.so
--- /cvsroot/pcsclite/PCSC/src/debuglog.c 2005/03/17 08:22:19 1.38
+++ /cvsroot/pcsclite/PCSC/src/debuglog.c 2005/04/12 07:40:58 1.39
@@ -8,7 +8,7 @@
* Copyright (C) 1999-2005
* Ludovic Rousseau <ludovic.rousseau@free.fr>
*
- * $Id: debuglog.c,v 1.38 2005/03/17 08:22:19 rousseau Exp $
+ * $Id: debuglog.c,v 1.39 2005/04/12 07:40:58 rousseau Exp $
*/
#include "config.h"
@@ -27,6 +27,7 @@
#include "debuglog.h"
#include "sys_generic.h"
#include "strlcpycat.h"
+#include "misc.h"
/* Max string size when dumping a 256 bytes longs APDU
* Should be bigger than 256*3+30 */
@@ -216,7 +217,7 @@
}
}
-int DebugLogSetCategory(const int dbginfo)
+INTERNAL int DebugLogSetCategory(const int dbginfo)
{
#define DEBUG_INFO_LENGTH 80
char text[DEBUG_INFO_LENGTH];
@@ -240,7 +241,7 @@
return LogCategory;
}
-void DebugLogCategory(const int category, const unsigned char *buffer,
+INTERNAL void DebugLogCategory(const int category, const unsigned char *buffer,
const int len)
{
if ((category & DEBUG_CATEGORY_APDU)