From ac90a9e42258b6d152aee4f5ebb2eaac152afeed Mon Sep 17 00:00:00 2001 From: frankmorgner Date: Thu, 7 Oct 2010 13:12:48 +0000 Subject: [PATCH] added copyright and author git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@302 96b47cad-a561-4643-ad3b-153ac7d7599c --- picc_to_pcsc/src/picc_to_pcsc.c | 19 ++++++++++++++++++- picc_to_pcsc/src/picc_to_pcsc.h | 26 ++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/picc_to_pcsc/src/picc_to_pcsc.c b/picc_to_pcsc/src/picc_to_pcsc.c index 95a0a68..028eef8 100644 --- a/picc_to_pcsc/src/picc_to_pcsc.c +++ b/picc_to_pcsc/src/picc_to_pcsc.c @@ -1,4 +1,21 @@ -#define _GNU_SOURCE +/* + * Copyright (C) 2010 Dominik Oepen, Frank Morgner + * + * This file is part of picc_to_pcsc. + * + * picc_to_pcsc 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. + * + * picc_to_pcsc 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 + * picc_to_pcsc. If not, see . + */ #include #include #include diff --git a/picc_to_pcsc/src/picc_to_pcsc.h b/picc_to_pcsc/src/picc_to_pcsc.h index 9312ed3..832edbf 100644 --- a/picc_to_pcsc/src/picc_to_pcsc.h +++ b/picc_to_pcsc/src/picc_to_pcsc.h @@ -1,8 +1,31 @@ +/* + * Copyright (C) 2010 Dominik Oepen, Frank Morgner + * + * This file is part of picc_to_pcsc. + * + * picc_to_pcsc 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. + * + * picc_to_pcsc 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 + * picc_to_pcsc. If not, see . + */ #ifndef PICC_TO_PCSC #define PICC_TO_PCSC #define PICCDEV "/dev/ttyACM0" + +#ifdef __cplusplus +extern "C" { +#endif + typedef void (*sighandler_t)(int); static sighandler_t register_sig(int signo, sighandler_t sighandler); @@ -13,4 +36,7 @@ void setup(void); void cleanup(void); void printHex(char *title, unsigned char *msg, unsigned int length); +#ifdef __cplusplus +} +#endif #endif