Blame src/vcard_emul_type.h

Packit cfa437
/*
Packit cfa437
 *  This header file abstracts the different card types. The goal is new card
Packit cfa437
 *  types can easily be added by simply changing this file and
Packit cfa437
 *  vcard_emul_type.c. It is currently not a requirement to dynamically add new
Packit cfa437
 *  card types.
Packit cfa437
 *
Packit cfa437
 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
Packit cfa437
 * See the COPYING file in the top-level directory.
Packit cfa437
 */
Packit cfa437
Packit cfa437
#ifndef VCARD_EMUL_TYPE_H
Packit cfa437
#define VCARD_EMUL_TYPE_H 1
Packit cfa437
Packit cfa437
#include "vcardt.h"
Packit cfa437
#include "vreadert.h"
Packit cfa437
Packit cfa437
/*
Packit cfa437
 * types
Packit cfa437
 */
Packit cfa437
typedef enum {
Packit cfa437
     VCARD_EMUL_NONE = 0,
Packit cfa437
     VCARD_EMUL_CAC,
Packit cfa437
     VCARD_EMUL_PASSTHRU
Packit cfa437
} VCardEmulType;
Packit cfa437
Packit cfa437
/* functions used by the rest of the emulator */
Packit cfa437
VCardStatus vcard_init(VReader *vreader, VCard *vcard, VCardEmulType type,
Packit cfa437
                       const char *params, unsigned char * const *cert,
Packit cfa437
                       int cert_len[], VCardKey *key[], int cert_count);
Packit cfa437
VCardEmulType vcard_emul_type_select(VReader *vreader);
Packit cfa437
VCardEmulType vcard_emul_type_from_string(const char *type_string);
Packit cfa437
Packit cfa437
#endif