Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

command.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: command.h,v $
00003                              -------------------
00004     cvs         : $Id: command.h,v 1.3 2003/02/05 11:59:57 aquamaniac Exp $
00005     begin       : Tue Dec 03 2002
00006     copyright   : (C) 2002 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *                                                                         *
00011  *   This library is free software; you can redistribute it and/or         *
00012  *   modify it under the terms of the GNU Lesser General Public            *
00013  *   License as published by the Free Software Foundation; either          *
00014  *   version 2.1 of the License, or (at your option) any later version.    *
00015  *                                                                         *
00016  *   This library is distributed in the hope that it will be useful,       *
00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00019  *   Lesser General Public License for more details.                       *
00020  *                                                                         *
00021  *   You should have received a copy of the GNU Lesser General Public      *
00022  *   License along with this library; if not, write to the Free Software   *
00023  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
00024  *   MA  02111-1307  USA                                                   *
00025  *                                                                         *
00026  ***************************************************************************/
00027 
00028 
00029 #ifndef CMD_COMMAND_H
00030 #define CMD_COMMAND_H "$Id"
00031 
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035 
00036 
00037 #define CTCOMMAND_RESULT_OK                 0
00038 #define CTCOMMAND_RESULT_BAD_TYPE           1
00039 #define CTCOMMAND_RESULT_BAD_ARGNUM         2
00040 #define CTCOMMAND_RESULT_BAD_ARGUMENT       3
00041 #define CTCOMMAND_RESULT_BUFFER_TOO_SMALL   4
00042 #define CTCOMMAND_RESULT_BAD_CONFIG         5
00043 #define CTCOMMAND_RESULT_INTERNAL           7
00044 #define CTCOMMAND_RESULT_COMMMAND_NOT_FOUND 8
00045 #define CTCOMMAND_RESULT_COMMMAND_EXISTS    9
00046 #define CTCOMMAND_RESULT_BAD_CHAR           10
00047 
00048 
00049 #include <chameleon/conf.h>
00050 
00051 
00052 int CTCommand_MakeAPDU(CONFIGGROUP *root,
00053                        const char *command,
00054                        int argc,
00055                        char **argv,
00056                        unsigned char *buffer,
00057                        int *bufferlen);
00058 
00059 int CTCommand_MakeAPDU2(CONFIGGROUP *root,
00060                         const char *command,
00061                         unsigned char *buffer,
00062                         int *bufferlen,
00063                         int argc, ...);
00064 
00065 
00066 int CTCommand_Locate(CONFIGGROUP *root,
00067                      const char *readertype,
00068                      const char *cardtype,
00069                      const char *command,
00070                      char *buffer,
00071                      int bufferlen);
00072 
00073 int CTCommand_Check(CONFIGGROUP *root,
00074                     const char *command);
00075 
00076 int CTCommand_Add(CONFIGGROUP *root,
00077                   CONFIGGROUP *cfg);
00078 
00079 #ifdef __cplusplus
00080 }
00081 #endif
00082 
00083 
00084 #endif

Generated on Fri Dec 3 23:10:24 2004 for libchipcard by  doxygen 1.3.9.1