typedef struct LC_EGKCARD LC_EGKCARD;
struct LC_EGKCARD {
LC_CARD_OPEN_FN openFn;
LC_CARD_CLOSE_FN closeFn;
};
static void GWENHYWFAR_CB LC_EgkCard_freeData(void *bp, void *p);
static LC_CLIENT_RESULT CHIPCARD_CB LC_EgkCard_Open(LC_CARD *card);
static LC_CLIENT_RESULT CHIPCARD_CB LC_EgkCard_Close(LC_CARD *card);
static LC_CLIENT_RESULT LC_EgkCard_ReadPersonalData_old(GWEN_XMLNODE *n,
LC_HI_PERSONAL_DATA *d);
static LC_CLIENT_RESULT LC_EgkCard_ReadPersonalData_3_0_0(GWEN_XMLNODE *n,
LC_HI_PERSONAL_DATA *d);
static LC_CLIENT_RESULT LC_EgkCard_ReadPersonalData_5_1_0(GWEN_XMLNODE *n,
LC_HI_PERSONAL_DATA *d);
static LC_CLIENT_RESULT LC_EgkCard_ReadInsuranceData_old(GWEN_XMLNODE *n,
LC_HI_INSURANCE_DATA *d);
static LC_CLIENT_RESULT LC_EgkCard_ReadInsuranceData_3_0_0(GWEN_XMLNODE *n,
LC_HI_INSURANCE_DATA *d);
static LC_CLIENT_RESULT LC_EgkCard_ReadInsuranceData_5_1_0(GWEN_XMLNODE *n,
LC_HI_INSURANCE_DATA *d);
#endif /* CHIPCARD_CARD_EGKCARD_P_H */
libchipcard-5.0.4/src/lib/client/cards/Makefile.in 0000644 0001750 0001750 00000066504 12634023664 016702 0000000 0000000 # Makefile.in generated by automake 1.14.1 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = src/lib/client/cards
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
$(top_srcdir)/depcomp $(iheader_HEADERS) $(noinst_HEADERS)
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/distri.m4 \
$(top_srcdir)/m4/gwenhywfar.m4 $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/m4/os.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
LTLIBRARIES = $(noinst_LTLIBRARIES)
libcards_la_DEPENDENCIES = ddvcard/libcards-ddv.la \
egkcard/libcards-egk.la geldkarte/libcards-geldkarte.la \
kvkcard/libcards-kvk.la starcos/libcards-starcos.la \
zkacard/libcards-zkacard.la memorycard/libcards-memorycard.la \
processorcard/libcards-processorcard.la
am_libcards_la_OBJECTS = hiinsurancedata.lo hipersonaldata.lo
libcards_la_OBJECTS = $(am_libcards_la_OBJECTS)
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent
am__v_lt_1 =
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_@AM_V@)
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
CCLD = $(CC)
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
SOURCES = $(libcards_la_SOURCES)
DIST_SOURCES = $(libcards_la_SOURCES)
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
ctags-recursive dvi-recursive html-recursive info-recursive \
install-data-recursive install-dvi-recursive \
install-exec-recursive install-html-recursive \
install-info-recursive install-pdf-recursive \
install-ps-recursive install-recursive installcheck-recursive \
installdirs-recursive pdf-recursive ps-recursive \
tags-recursive uninstall-recursive
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
for p in $$list; do echo "$$p $$p"; done | \
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
if (++n[$$2] == $(am__install_max)) \
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
END { for (dir in files) print dir, files[dir] }'
am__base_list = \
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir = { \
test -z "$$files" \
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
am__installdirs = "$(DESTDIR)$(iheaderdir)"
HEADERS = $(iheader_HEADERS) $(noinst_HEADERS)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
am__recursive_targets = \
$(RECURSIVE_TARGETS) \
$(RECURSIVE_CLEAN_TARGETS) \
$(am__extra_recursive_targets)
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
distdir
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
am__relativize = \
dir0=`pwd`; \
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
sed_rest='s,^[^/]*/*,,'; \
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
sed_butlast='s,/*[^/]*$$,,'; \
while test -n "$$dir1"; do \
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
if test "$$first" != "."; then \
if test "$$first" = ".."; then \
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
else \
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
if test "$$first2" = "$$first"; then \
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
else \
dir2="../$$dir2"; \
fi; \
dir0="$$dir0"/"$$first"; \
fi; \
fi; \
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
done; \
reldir="$$dir2"
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AR = @AR@
AS = @AS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CHIPCARD_VERSION_BUILD = @CHIPCARD_VERSION_BUILD@
CHIPCARD_VERSION_FULL_STRING = @CHIPCARD_VERSION_FULL_STRING@
CHIPCARD_VERSION_MAJOR = @CHIPCARD_VERSION_MAJOR@
CHIPCARD_VERSION_MINOR = @CHIPCARD_VERSION_MINOR@
CHIPCARD_VERSION_PATCHLEVEL = @CHIPCARD_VERSION_PATCHLEVEL@
CHIPCARD_VERSION_RELEASE_STRING = @CHIPCARD_VERSION_RELEASE_STRING@
CHIPCARD_VERSION_STRING = @CHIPCARD_VERSION_STRING@
CHIPCARD_VERSION_TAG = @CHIPCARD_VERSION_TAG@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@ -DBUILDING_CHIPCARD
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN_DEFINE = @DOXYGEN_DEFINE@
DOXYGEN_INPUT = @DOXYGEN_INPUT@
DOXYGEN_TAGFILES = @DOXYGEN_TAGFILES@
DPKG_ARCH = @DPKG_ARCH@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
GREP = @GREP@
I18N_CATALOG = @I18N_CATALOG@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_DLL_TARGET = @INSTALL_DLL_TARGET@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBCHIPCARD_SO_AGE = @LIBCHIPCARD_SO_AGE@
LIBCHIPCARD_SO_CURRENT = @LIBCHIPCARD_SO_CURRENT@
LIBCHIPCARD_SO_EFFECTIVE = @LIBCHIPCARD_SO_EFFECTIVE@
LIBCHIPCARD_SO_REVISION = @LIBCHIPCARD_SO_REVISION@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MAKE_DLL_TARGET = @MAKE_DLL_TARGET@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OSYSTEM = @OSYSTEM@
OS_TYPE = @OS_TYPE@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PCSCLITE_CFLAGS = @PCSCLITE_CFLAGS@
PCSCLITE_LIBS = @PCSCLITE_LIBS@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
RANLIB = @RANLIB@
RC = @RC@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
STRIPALL = @STRIPALL@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
aq_distrib_name = @aq_distrib_name@
aq_distrib_tag = @aq_distrib_tag@
aq_distrib_version = @aq_distrib_version@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
docpath = @docpath@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
gwenhywfar_bindir = @gwenhywfar_bindir@
gwenhywfar_dir = @gwenhywfar_dir@
gwenhywfar_has_crypt = @gwenhywfar_has_crypt@
gwenhywfar_headers = @gwenhywfar_headers@
gwenhywfar_includes = @gwenhywfar_includes@
gwenhywfar_libs = @gwenhywfar_libs@
gwenhywfar_plugins = @gwenhywfar_plugins@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
lc_cfg_searchdir = @lc_cfg_searchdir@
lc_client_config_dir = @lc_client_config_dir@
lc_client_config_file = @lc_client_config_file@
lc_client_xml_dir = @lc_client_xml_dir@
lc_data_searchdir = @lc_data_searchdir@
lc_init_script_dir = @lc_init_script_dir@
lc_locale_searchdir = @lc_locale_searchdir@
lc_os_driver_dir = @lc_os_driver_dir@
lc_sys_is_windows = @lc_sys_is_windows@
libchipcard_headerdir = @libchipcard_headerdir@
libchipcard_headerdir_am = @libchipcard_headerdir_am@
libchipcard_includes = @libchipcard_includes@
libchipcard_symlinkdir = @libchipcard_symlinkdir@
libchipcardc_libs = @libchipcardc_libs@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pcsc_includes = @pcsc_includes@
pcsc_lib = @pcsc_lib@
pcsc_libraries = @pcsc_libraries@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
visibility_cflags = @visibility_cflags@
zlib_libs = @zlib_libs@
SUBDIRS = memorycard processorcard ddvcard geldkarte kvkcard egkcard starcos zkacard
AM_CFLAGS = $(visibility_cflags)
typefiles = hidata.xml
EXTRA_DIST = card.xml $(typefiles)
INCLUDES = -I$(libchipcard_symlinkdir) $(gwenhywfar_includes) -I../ -I../client -I$(srcdir)/../ -I$(srcdir)/../client
noinst_LTLIBRARIES = libcards.la
libcards_la_SOURCES = \
hiinsurancedata.c \
hipersonaldata.c
iheaderdir = @libchipcard_headerdir_am@/cards
iheader_HEADERS = \
hiinsurancedata.h \
hipersonaldata.h
noinst_HEADERS = \
hiinsurancedata_l.h \
hiinsurancedata_p.h \
hipersonaldata_l.h \
hipersonaldata_p.h
libcards_la_LIBADD = \
ddvcard/libcards-ddv.la \
egkcard/libcards-egk.la \
geldkarte/libcards-geldkarte.la \
kvkcard/libcards-kvk.la \
starcos/libcards-starcos.la \
zkacard/libcards-zkacard.la \
memorycard/libcards-memorycard.la \
processorcard/libcards-processorcard.la
appdatadir = @lc_client_xml_dir@/apps
carddatadir = @lc_client_xml_dir@/cards
all: all-recursive
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/client/cards/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu src/lib/client/cards/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
clean-noinstLTLIBRARIES:
-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
@list='$(noinst_LTLIBRARIES)'; \
locs=`for p in $$list; do echo $$p; done | \
sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
sort -u`; \
test -z "$$locs" || { \
echo rm -f $${locs}; \
rm -f $${locs}; \
}
libcards.la: $(libcards_la_OBJECTS) $(libcards_la_DEPENDENCIES) $(EXTRA_libcards_la_DEPENDENCIES)
$(AM_V_CCLD)$(LINK) $(libcards_la_OBJECTS) $(libcards_la_LIBADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hiinsurancedata.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hipersonaldata.Plo@am__quote@
.c.o:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
.c.obj:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.c.lo:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
install-iheaderHEADERS: $(iheader_HEADERS)
@$(NORMAL_INSTALL)
@list='$(iheader_HEADERS)'; test -n "$(iheaderdir)" || list=; \
if test -n "$$list"; then \
echo " $(MKDIR_P) '$(DESTDIR)$(iheaderdir)'"; \
$(MKDIR_P) "$(DESTDIR)$(iheaderdir)" || exit 1; \
fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
done | $(am__base_list) | \
while read files; do \
echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(iheaderdir)'"; \
$(INSTALL_HEADER) $$files "$(DESTDIR)$(iheaderdir)" || exit $$?; \
done
uninstall-iheaderHEADERS:
@$(NORMAL_UNINSTALL)
@list='$(iheader_HEADERS)'; test -n "$(iheaderdir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
dir='$(DESTDIR)$(iheaderdir)'; $(am__uninstall_files_from_dir)
# This directory's subdirectories are mostly independent; you can cd
# into them and run 'make' without going through this Makefile.
# To change the values of 'make' variables: instead of editing Makefiles,
# (1) if the variable is set in 'config.status', edit 'config.status'
# (which will cause the Makefiles to be regenerated when you run 'make');
# (2) otherwise, pass the desired values on the 'make' command line.
$(am__recursive_targets):
@fail=; \
if $(am__make_keepgoing); then \
failcom='fail=yes'; \
else \
failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-recursive
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-recursive
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-recursive
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
$(am__make_dryrun) \
|| test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
dir1=$$subdir; dir2="$(top_distdir)"; \
$(am__relativize); \
new_top_distdir=$$reldir; \
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$new_top_distdir" \
distdir="$$new_distdir" \
am__remove_distdir=: \
am__skip_length_check=: \
am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-recursive
all-am: Makefile $(LTLIBRARIES) $(HEADERS)
installdirs: installdirs-recursive
installdirs-am:
for dir in "$(DESTDIR)$(iheaderdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
mostlyclean-am
distclean: distclean-recursive
-rm -rf ./$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
html-am:
info: info-recursive
info-am:
install-data-am: install-data-local install-iheaderHEADERS
install-dvi: install-dvi-recursive
install-dvi-am:
install-exec-am:
install-html: install-html-recursive
install-html-am:
install-info: install-info-recursive
install-info-am:
install-man:
install-pdf: install-pdf-recursive
install-pdf-am:
install-ps: install-ps-recursive
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -rf ./$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am: uninstall-iheaderHEADERS
.MAKE: $(am__recursive_targets) install-am install-strip
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
check-am clean clean-generic clean-libtool \
clean-noinstLTLIBRARIES cscopelist-am ctags ctags-am distclean \
distclean-compile distclean-generic distclean-libtool \
distclean-tags distdir dvi dvi-am html html-am info info-am \
install install-am install-data install-data-am \
install-data-local install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am \
install-iheaderHEADERS install-info install-info-am \
install-man install-pdf install-pdf-am install-ps \
install-ps-am install-strip installcheck installcheck-am \
installdirs installdirs-am maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags tags-am uninstall uninstall-am uninstall-iheaderHEADERS
install-card-data:
$(INSTALL) -d $(DESTDIR)$(carddatadir)
cp $(srcdir)/card.xml $(DESTDIR)$(carddatadir)/card.xml
install-data-local: install-card-data
types: $(typefiles)
typemaker -d CHIPCARD_API $(typefiles)
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
libchipcard-5.0.4/src/lib/client/cards/hipersonaldata_p.h 0000644 0001750 0001750 00000001225 12364015630 020302 0000000 0000000 /* This file is auto-generated from "hipersonaldata.xml" by the typemaker
tool of Gwenhywfar.
Do not edit this file -- all changes will be lost! */
#ifndef HIPERSONALDATA_P_H
#define HIPERSONALDATA_P_H
#include "hipersonaldata_l.h"
struct LC_HI_PERSONAL_DATA {
GWEN_LIST_ELEMENT(LC_HI_PERSONAL_DATA)
int _usage;
int _modified;
char *insuranceId;
char *prename;
char *name;
char *title;
char *nameSuffix;
LC_HI_PERSONAL_DATA_SEX sex;
GWEN_TIME *dateOfBirth;
char *addrZipCode;
char *addrCity;
char *addrState;
char *addrCountry;
char *addrStreet;
char *addrHouseNum;
};
#endif /* HIPERSONALDATA_P_H */
libchipcard-5.0.4/src/lib/client/cards/hidata.xml 0000644 0001750 0001750 00000006753 12364015630 016603 0000000 0000000
male
Male.
female
Female.
1: selbstversichert
'1': x="west"; break;
'9': x="ost"; break;
'6': x="BVG"; break;
'7': x="SVA, nach Aufwand, dt.-nl Grenzgaenger"; break;
'8': x="SVA, pauschal"; break;
'M': x="DMP Diabetes mellitus Typ 2, west"; break;
'X': x="DMP Diabetes mellitus Typ 2, ost"; break;
'A': x="DMP Brustkrebs, west"; break;
'C': x="DMP Brustkrebs, ost"; break;
'K': x="DMP KHK, west"; break;
'L': x="DMP KHK, ost"; break;
'4': x="nichtversicherter Sozialhilfe-Empfaenger"; break;
'E': x="DMP Diabetes mellitus Typ 1, west"; break;
'N': x="DMP Diabetes mellitus Typ 1, ost"; break;
'D': x="DMP Asthma bronchiale, west"; break;
'F': x="DMP Asthma bronchiale, ost"; break;
'S': x="DMP COPD, west"; break;
'P': x="DMP COPD, ost"; break;
libchipcard-5.0.4/src/lib/client/cards/hipersonaldata.h 0000644 0001750 0001750 00000020644 12364015630 017771 0000000 0000000 /* This file is auto-generated from "hipersonaldata.xml" by the typemaker
tool of Gwenhywfar.
Do not edit this file -- all changes will be lost! */
#ifndef HIPERSONALDATA_H
#define HIPERSONALDATA_H
/** @page P_LC_HI_PERSONAL_DATA_PUBLIC LC_HIPersonalData (public)
This page describes the properties of LC_HI_PERSONAL_DATA
@anchor LC_HI_PERSONAL_DATA_InsuranceId
InsuranceId
Set this property with @ref LC_HIPersonalData_SetInsuranceId,
get it with @ref LC_HIPersonalData_GetInsuranceId
@anchor LC_HI_PERSONAL_DATA_Prename
Prename
Set this property with @ref LC_HIPersonalData_SetPrename,
get it with @ref LC_HIPersonalData_GetPrename
@anchor LC_HI_PERSONAL_DATA_Name
Name
Set this property with @ref LC_HIPersonalData_SetName,
get it with @ref LC_HIPersonalData_GetName
@anchor LC_HI_PERSONAL_DATA_Title
Title
Set this property with @ref LC_HIPersonalData_SetTitle,
get it with @ref LC_HIPersonalData_GetTitle
@anchor LC_HI_PERSONAL_DATA_NameSuffix
NameSuffix
Set this property with @ref LC_HIPersonalData_SetNameSuffix,
get it with @ref LC_HIPersonalData_GetNameSuffix
@anchor LC_HI_PERSONAL_DATA_Sex
Sex
Set this property with @ref LC_HIPersonalData_SetSex,
get it with @ref LC_HIPersonalData_GetSex
@anchor LC_HI_PERSONAL_DATA_DateOfBirth
DateOfBirth
Set this property with @ref LC_HIPersonalData_SetDateOfBirth,
get it with @ref LC_HIPersonalData_GetDateOfBirth
@anchor LC_HI_PERSONAL_DATA_AddrZipCode
AddrZipCode
Set this property with @ref LC_HIPersonalData_SetAddrZipCode,
get it with @ref LC_HIPersonalData_GetAddrZipCode
@anchor LC_HI_PERSONAL_DATA_AddrCity
AddrCity
Set this property with @ref LC_HIPersonalData_SetAddrCity,
get it with @ref LC_HIPersonalData_GetAddrCity
@anchor LC_HI_PERSONAL_DATA_AddrState
AddrState
Set this property with @ref LC_HIPersonalData_SetAddrState,
get it with @ref LC_HIPersonalData_GetAddrState
@anchor LC_HI_PERSONAL_DATA_AddrCountry
AddrCountry
Set this property with @ref LC_HIPersonalData_SetAddrCountry,
get it with @ref LC_HIPersonalData_GetAddrCountry
@anchor LC_HI_PERSONAL_DATA_AddrStreet
AddrStreet
Set this property with @ref LC_HIPersonalData_SetAddrStreet,
get it with @ref LC_HIPersonalData_GetAddrStreet
@anchor LC_HI_PERSONAL_DATA_AddrHouseNum
AddrHouseNum
Set this property with @ref LC_HIPersonalData_SetAddrHouseNum,
get it with @ref LC_HIPersonalData_GetAddrHouseNum
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef struct LC_HI_PERSONAL_DATA LC_HI_PERSONAL_DATA;
#ifdef __cplusplus
} /* __cplusplus */
#endif
#include
/* headers */
#include
#include
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
LC_HIPersonalData_SexUnknown=-1,
/** Male.
*/
LC_HIPersonalData_SexMale,
/** Female.
*/
LC_HIPersonalData_SexFemale
} LC_HI_PERSONAL_DATA_SEX;
CHIPCARD_API LC_HI_PERSONAL_DATA_SEX LC_HIPersonalData_Sex_fromString(const char *s);
CHIPCARD_API const char *LC_HIPersonalData_Sex_toString(LC_HI_PERSONAL_DATA_SEX v);
/** Creates a new object.
*/
CHIPCARD_API LC_HI_PERSONAL_DATA *LC_HIPersonalData_new();
/** Creates an object from the data in the given GWEN_DB_NODE
*/
CHIPCARD_API LC_HI_PERSONAL_DATA *LC_HIPersonalData_fromDb(GWEN_DB_NODE *db);
/** Creates and returns a deep copy of thegiven object.
*/
CHIPCARD_API LC_HI_PERSONAL_DATA *LC_HIPersonalData_dup(const LC_HI_PERSONAL_DATA*st);
/** Destroys the given object.
*/
CHIPCARD_API void LC_HIPersonalData_free(LC_HI_PERSONAL_DATA *st);
/** Increments the usage counter of the given object, so an additional free() is needed to destroy the object.
*/
CHIPCARD_API void LC_HIPersonalData_Attach(LC_HI_PERSONAL_DATA *st);
/** Reads data from a GWEN_DB.
*/
CHIPCARD_API int LC_HIPersonalData_ReadDb(LC_HI_PERSONAL_DATA *st, GWEN_DB_NODE *db);
/** Stores an object in the given GWEN_DB_NODE
*/
CHIPCARD_API int LC_HIPersonalData_toDb(const LC_HI_PERSONAL_DATA*st, GWEN_DB_NODE *db);
/** Returns 0 if this object has not been modified, !=0 otherwise
*/
CHIPCARD_API int LC_HIPersonalData_IsModified(const LC_HI_PERSONAL_DATA *st);
/** Sets the modified state of the given object
*/
CHIPCARD_API void LC_HIPersonalData_SetModified(LC_HI_PERSONAL_DATA *st, int i);
/**
* Returns the property @ref LC_HI_PERSONAL_DATA_InsuranceId
*/
CHIPCARD_API const char *LC_HIPersonalData_GetInsuranceId(const LC_HI_PERSONAL_DATA *el);
/**
* Set the property @ref LC_HI_PERSONAL_DATA_InsuranceId
*/
CHIPCARD_API void LC_HIPersonalData_SetInsuranceId(LC_HI_PERSONAL_DATA *el, const char *d);
/**
* Returns the property @ref LC_HI_PERSONAL_DATA_Prename
*/
CHIPCARD_API const char *LC_HIPersonalData_GetPrename(const LC_HI_PERSONAL_DATA *el);
/**
* Set the property @ref LC_HI_PERSONAL_DATA_Prename
*/
CHIPCARD_API void LC_HIPersonalData_SetPrename(LC_HI_PERSONAL_DATA *el, const char *d);
/**
* Returns the property @ref LC_HI_PERSONAL_DATA_Name
*/
CHIPCARD_API const char *LC_HIPersonalData_GetName(const LC_HI_PERSONAL_DATA *el);
/**
* Set the property @ref LC_HI_PERSONAL_DATA_Name
*/
CHIPCARD_API void LC_HIPersonalData_SetName(LC_HI_PERSONAL_DATA *el, const char *d);
/**
* Returns the property @ref LC_HI_PERSONAL_DATA_Title
*/
CHIPCARD_API const char *LC_HIPersonalData_GetTitle(const LC_HI_PERSONAL_DATA *el);
/**
* Set the property @ref LC_HI_PERSONAL_DATA_Title
*/
CHIPCARD_API void LC_HIPersonalData_SetTitle(LC_HI_PERSONAL_DATA *el, const char *d);
/**
* Returns the property @ref LC_HI_PERSONAL_DATA_NameSuffix
*/
CHIPCARD_API const char *LC_HIPersonalData_GetNameSuffix(const LC_HI_PERSONAL_DATA *el);
/**
* Set the property @ref LC_HI_PERSONAL_DATA_NameSuffix
*/
CHIPCARD_API void LC_HIPersonalData_SetNameSuffix(LC_HI_PERSONAL_DATA *el, const char *d);
/**
* Returns the property @ref LC_HI_PERSONAL_DATA_Sex
*/
CHIPCARD_API LC_HI_PERSONAL_DATA_SEX LC_HIPersonalData_GetSex(const LC_HI_PERSONAL_DATA *el);
/**
* Set the property @ref LC_HI_PERSONAL_DATA_Sex
*/
CHIPCARD_API void LC_HIPersonalData_SetSex(LC_HI_PERSONAL_DATA *el, LC_HI_PERSONAL_DATA_SEX d);
/**
* Returns the property @ref LC_HI_PERSONAL_DATA_DateOfBirth
*/
CHIPCARD_API const GWEN_TIME *LC_HIPersonalData_GetDateOfBirth(const LC_HI_PERSONAL_DATA *el);
/**
* Set the property @ref LC_HI_PERSONAL_DATA_DateOfBirth
*/
CHIPCARD_API void LC_HIPersonalData_SetDateOfBirth(LC_HI_PERSONAL_DATA *el, const GWEN_TIME *d);
/**
* Returns the property @ref LC_HI_PERSONAL_DATA_AddrZipCode
*/
CHIPCARD_API const char *LC_HIPersonalData_GetAddrZipCode(const LC_HI_PERSONAL_DATA *el);
/**
* Set the property @ref LC_HI_PERSONAL_DATA_AddrZipCode
*/
CHIPCARD_API void LC_HIPersonalData_SetAddrZipCode(LC_HI_PERSONAL_DATA *el, const char *d);
/**
* Returns the property @ref LC_HI_PERSONAL_DATA_AddrCity
*/
CHIPCARD_API const char *LC_HIPersonalData_GetAddrCity(const LC_HI_PERSONAL_DATA *el);
/**
* Set the property @ref LC_HI_PERSONAL_DATA_AddrCity
*/
CHIPCARD_API void LC_HIPersonalData_SetAddrCity(LC_HI_PERSONAL_DATA *el, const char *d);
/**
* Returns the property @ref LC_HI_PERSONAL_DATA_AddrState
*/
CHIPCARD_API const char *LC_HIPersonalData_GetAddrState(const LC_HI_PERSONAL_DATA *el);
/**
* Set the property @ref LC_HI_PERSONAL_DATA_AddrState
*/
CHIPCARD_API void LC_HIPersonalData_SetAddrState(LC_HI_PERSONAL_DATA *el, const char *d);
/**
* Returns the property @ref LC_HI_PERSONAL_DATA_AddrCountry
*/
CHIPCARD_API const char *LC_HIPersonalData_GetAddrCountry(const LC_HI_PERSONAL_DATA *el);
/**
* Set the property @ref LC_HI_PERSONAL_DATA_AddrCountry
*/
CHIPCARD_API void LC_HIPersonalData_SetAddrCountry(LC_HI_PERSONAL_DATA *el, const char *d);
/**
* Returns the property @ref LC_HI_PERSONAL_DATA_AddrStreet
*/
CHIPCARD_API const char *LC_HIPersonalData_GetAddrStreet(const LC_HI_PERSONAL_DATA *el);
/**
* Set the property @ref LC_HI_PERSONAL_DATA_AddrStreet
*/
CHIPCARD_API void LC_HIPersonalData_SetAddrStreet(LC_HI_PERSONAL_DATA *el, const char *d);
/**
* Returns the property @ref LC_HI_PERSONAL_DATA_AddrHouseNum
*/
CHIPCARD_API const char *LC_HIPersonalData_GetAddrHouseNum(const LC_HI_PERSONAL_DATA *el);
/**
* Set the property @ref LC_HI_PERSONAL_DATA_AddrHouseNum
*/
CHIPCARD_API void LC_HIPersonalData_SetAddrHouseNum(LC_HI_PERSONAL_DATA *el, const char *d);
#ifdef __cplusplus
} /* __cplusplus */
#endif
#endif /* HIPERSONALDATA_H */
libchipcard-5.0.4/src/lib/client/cards/hiinsurancedata_p.h 0000644 0001750 0001750 00000001012 12364015630 020440 0000000 0000000 /* This file is auto-generated from "hiinsurancedata.xml" by the typemaker
tool of Gwenhywfar.
Do not edit this file -- all changes will be lost! */
#ifndef HIINSURANCEDATA_P_H
#define HIINSURANCEDATA_P_H
#include "hiinsurancedata_l.h"
struct LC_HI_INSURANCE_DATA {
GWEN_LIST_ELEMENT(LC_HI_INSURANCE_DATA)
int _usage;
int _modified;
char *institutionId;
char *institutionName;
GWEN_TIME *coverBegin;
GWEN_TIME *coverEnd;
char *status;
char *group;
};
#endif /* HIINSURANCEDATA_P_H */
libchipcard-5.0.4/src/lib/client/cards/hipersonaldata_l.h 0000644 0001750 0001750 00000001556 12364015630 020305 0000000 0000000 /* This file is auto-generated from "hipersonaldata.xml" by the typemaker
tool of Gwenhywfar.
Do not edit this file -- all changes will be lost! */
#ifndef HIPERSONALDATA_L_H
#define HIPERSONALDATA_L_H
/** @page P_LC_HI_PERSONAL_DATA_LIB LC_HIPersonalData (lib)
This page describes the properties of LC_HI_PERSONAL_DATA
*/
#include
#include
#include "hipersonaldata.h"
#include
#ifdef __cplusplus
extern "C" {
#endif
GWEN_LIST_FUNCTION_DEFS(LC_HI_PERSONAL_DATA, LC_HIPersonalData)
LC_HI_PERSONAL_DATA_LIST *LC_HIPersonalData_List_dup(const LC_HI_PERSONAL_DATA_LIST *stl);
GWEN_LIST2_FUNCTION_DEFS(LC_HI_PERSONAL_DATA, LC_HIPersonalData)
void LC_HIPersonalData_List2_freeAll(LC_HI_PERSONAL_DATA_LIST2 *stl);
#ifdef __cplusplus
} /* __cplusplus */
#endif
#endif /* HIPERSONALDATA_L_H */
libchipcard-5.0.4/src/lib/client/cards/hiinsurancedata.c 0000644 0001750 0001750 00000016226 12364015630 020131 0000000 0000000 /* This file is auto-generated from "hiinsurancedata.xml" by the typemaker
tool of Gwenhywfar.
Do not edit this file -- all changes will be lost! */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "hiinsurancedata_p.h"
#include
#include
#include
#include
#include
#include
#include
#include
GWEN_LIST_FUNCTIONS(LC_HI_INSURANCE_DATA, LC_HIInsuranceData)
GWEN_LIST2_FUNCTIONS(LC_HI_INSURANCE_DATA, LC_HIInsuranceData)
LC_HI_INSURANCE_DATA *LC_HIInsuranceData_new() {
LC_HI_INSURANCE_DATA *st;
GWEN_NEW_OBJECT(LC_HI_INSURANCE_DATA, st)
st->_usage=1;
GWEN_LIST_INIT(LC_HI_INSURANCE_DATA, st)
return st;
}
void LC_HIInsuranceData_free(LC_HI_INSURANCE_DATA *st) {
if (st) {
assert(st->_usage);
if (--(st->_usage)==0) {
if (st->institutionId)
free(st->institutionId);
if (st->institutionName)
free(st->institutionName);
if (st->coverBegin)
GWEN_Time_free(st->coverBegin);
if (st->coverEnd)
GWEN_Time_free(st->coverEnd);
if (st->status)
free(st->status);
if (st->group)
free(st->group);
GWEN_LIST_FINI(LC_HI_INSURANCE_DATA, st)
GWEN_FREE_OBJECT(st);
}
}
}
LC_HI_INSURANCE_DATA *LC_HIInsuranceData_dup(const LC_HI_INSURANCE_DATA *d) {
LC_HI_INSURANCE_DATA *st;
assert(d);
st=LC_HIInsuranceData_new();
if (d->institutionId)
st->institutionId=strdup(d->institutionId);
if (d->institutionName)
st->institutionName=strdup(d->institutionName);
if (d->coverBegin)
st->coverBegin=GWEN_Time_dup(d->coverBegin);
if (d->coverEnd)
st->coverEnd=GWEN_Time_dup(d->coverEnd);
if (d->status)
st->status=strdup(d->status);
if (d->group)
st->group=strdup(d->group);
return st;
}
int LC_HIInsuranceData_toDb(const LC_HI_INSURANCE_DATA *st, GWEN_DB_NODE *db) {
assert(st);
assert(db);
if (st->institutionId)
if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "institutionId", st->institutionId))
return -1;
if (st->institutionName)
if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "institutionName", st->institutionName))
return -1;
if (st->coverBegin)
if (GWEN_Time_toDb(st->coverBegin, GWEN_DB_GetGroup(db, GWEN_DB_FLAGS_DEFAULT, "coverBegin")))
return -1;
if (st->coverEnd)
if (GWEN_Time_toDb(st->coverEnd, GWEN_DB_GetGroup(db, GWEN_DB_FLAGS_DEFAULT, "coverEnd")))
return -1;
if (st->status)
if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "status", st->status))
return -1;
if (st->group)
if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "group", st->group))
return -1;
return 0;
}
int LC_HIInsuranceData_ReadDb(LC_HI_INSURANCE_DATA *st, GWEN_DB_NODE *db) {
assert(st);
assert(db);
LC_HIInsuranceData_SetInstitutionId(st, GWEN_DB_GetCharValue(db, "institutionId", 0, 0));
LC_HIInsuranceData_SetInstitutionName(st, GWEN_DB_GetCharValue(db, "institutionName", 0, 0));
if (1) { /* for local vars */
GWEN_DB_NODE *dbT;
dbT=GWEN_DB_GetGroup(db, GWEN_PATH_FLAGS_NAMEMUSTEXIST, "coverBegin");
if (dbT) {
if (st->coverBegin)
GWEN_Time_free(st->coverBegin);
st->coverBegin=GWEN_Time_fromDb(dbT);
}
}
if (1) { /* for local vars */
GWEN_DB_NODE *dbT;
dbT=GWEN_DB_GetGroup(db, GWEN_PATH_FLAGS_NAMEMUSTEXIST, "coverEnd");
if (dbT) {
if (st->coverEnd)
GWEN_Time_free(st->coverEnd);
st->coverEnd=GWEN_Time_fromDb(dbT);
}
}
LC_HIInsuranceData_SetStatus(st, GWEN_DB_GetCharValue(db, "status", 0, 0));
LC_HIInsuranceData_SetGroup(st, GWEN_DB_GetCharValue(db, "group", 0, 0));
return 0;
}
LC_HI_INSURANCE_DATA *LC_HIInsuranceData_fromDb(GWEN_DB_NODE *db) {
LC_HI_INSURANCE_DATA *st;
assert(db);
st=LC_HIInsuranceData_new();
LC_HIInsuranceData_ReadDb(st, db);
st->_modified=0;
return st;
}
const char *LC_HIInsuranceData_GetInstitutionId(const LC_HI_INSURANCE_DATA *st) {
assert(st);
return st->institutionId;
}
void LC_HIInsuranceData_SetInstitutionId(LC_HI_INSURANCE_DATA *st, const char *d) {
assert(st);
if (st->institutionId)
free(st->institutionId);
if (d && *d)
st->institutionId=strdup(d);
else
st->institutionId=0;
st->_modified=1;
}
const char *LC_HIInsuranceData_GetInstitutionName(const LC_HI_INSURANCE_DATA *st) {
assert(st);
return st->institutionName;
}
void LC_HIInsuranceData_SetInstitutionName(LC_HI_INSURANCE_DATA *st, const char *d) {
assert(st);
if (st->institutionName)
free(st->institutionName);
if (d && *d)
st->institutionName=strdup(d);
else
st->institutionName=0;
st->_modified=1;
}
const GWEN_TIME *LC_HIInsuranceData_GetCoverBegin(const LC_HI_INSURANCE_DATA *st) {
assert(st);
return st->coverBegin;
}
void LC_HIInsuranceData_SetCoverBegin(LC_HI_INSURANCE_DATA *st, const GWEN_TIME *d) {
assert(st);
if (st->coverBegin)
GWEN_Time_free(st->coverBegin);
if (d)
st->coverBegin=GWEN_Time_dup(d);
else
st->coverBegin=0;
st->_modified=1;
}
const GWEN_TIME *LC_HIInsuranceData_GetCoverEnd(const LC_HI_INSURANCE_DATA *st) {
assert(st);
return st->coverEnd;
}
void LC_HIInsuranceData_SetCoverEnd(LC_HI_INSURANCE_DATA *st, const GWEN_TIME *d) {
assert(st);
if (st->coverEnd)
GWEN_Time_free(st->coverEnd);
if (d)
st->coverEnd=GWEN_Time_dup(d);
else
st->coverEnd=0;
st->_modified=1;
}
const char *LC_HIInsuranceData_GetStatus(const LC_HI_INSURANCE_DATA *st) {
assert(st);
return st->status;
}
void LC_HIInsuranceData_SetStatus(LC_HI_INSURANCE_DATA *st, const char *d) {
assert(st);
if (st->status)
free(st->status);
if (d && *d)
st->status=strdup(d);
else
st->status=0;
st->_modified=1;
}
const char *LC_HIInsuranceData_GetGroup(const LC_HI_INSURANCE_DATA *st) {
assert(st);
return st->group;
}
void LC_HIInsuranceData_SetGroup(LC_HI_INSURANCE_DATA *st, const char *d) {
assert(st);
if (st->group)
free(st->group);
if (d && *d)
st->group=strdup(d);
else
st->group=0;
st->_modified=1;
}
int LC_HIInsuranceData_IsModified(const LC_HI_INSURANCE_DATA *st) {
assert(st);
return st->_modified;
}
void LC_HIInsuranceData_SetModified(LC_HI_INSURANCE_DATA *st, int i) {
assert(st);
st->_modified=i;
}
void LC_HIInsuranceData_Attach(LC_HI_INSURANCE_DATA *st) {
assert(st);
st->_usage++;
}
LC_HI_INSURANCE_DATA *LC_HIInsuranceData_List2__freeAll_cb(LC_HI_INSURANCE_DATA *st, void *user_data) {
LC_HIInsuranceData_free(st);
return 0;
}
void LC_HIInsuranceData_List2_freeAll(LC_HI_INSURANCE_DATA_LIST2 *stl) {
if (stl) {
LC_HIInsuranceData_List2_ForEach(stl, LC_HIInsuranceData_List2__freeAll_cb, 0);
LC_HIInsuranceData_List2_free(stl);
}
}
LC_HI_INSURANCE_DATA_LIST *LC_HIInsuranceData_List_dup(const LC_HI_INSURANCE_DATA_LIST *stl) {
if (stl) {
LC_HI_INSURANCE_DATA_LIST *nl;
LC_HI_INSURANCE_DATA *e;
nl=LC_HIInsuranceData_List_new();
e=LC_HIInsuranceData_List_First(stl);
while(e) {
LC_HI_INSURANCE_DATA *ne;
ne=LC_HIInsuranceData_dup(e);
assert(ne);
LC_HIInsuranceData_List_Add(ne, nl);
e=LC_HIInsuranceData_List_Next(e);
} /* while (e) */
return nl;
}
else
return 0;
}
libchipcard-5.0.4/src/lib/client/cards/Makefile.am 0000644 0001750 0001750 00000002274 12364015630 016655 0000000 0000000 SUBDIRS=memorycard processorcard ddvcard geldkarte kvkcard egkcard starcos zkacard
DEFS += \
-DBUILDING_CHIPCARD
AM_CFLAGS=$(visibility_cflags)
typefiles=hidata.xml
EXTRA_DIST=card.xml $(typefiles)
INCLUDES=-I$(libchipcard_symlinkdir) $(gwenhywfar_includes) -I../ -I../client -I$(srcdir)/../ -I$(srcdir)/../client
noinst_LTLIBRARIES=libcards.la
libcards_la_SOURCES=\
hiinsurancedata.c \
hipersonaldata.c
iheaderdir=@libchipcard_headerdir_am@/cards
iheader_HEADERS=\
hiinsurancedata.h \
hipersonaldata.h
noinst_HEADERS=\
hiinsurancedata_l.h \
hiinsurancedata_p.h \
hipersonaldata_l.h \
hipersonaldata_p.h
libcards_la_LIBADD=\
ddvcard/libcards-ddv.la \
egkcard/libcards-egk.la \
geldkarte/libcards-geldkarte.la \
kvkcard/libcards-kvk.la \
starcos/libcards-starcos.la \
zkacard/libcards-zkacard.la \
memorycard/libcards-memorycard.la \
processorcard/libcards-processorcard.la
appdatadir=@lc_client_xml_dir@/apps
carddatadir=@lc_client_xml_dir@/cards
install-card-data:
$(INSTALL) -d $(DESTDIR)$(carddatadir)
cp $(srcdir)/card.xml $(DESTDIR)$(carddatadir)/card.xml
install-data-local: install-card-data
types: $(typefiles)
typemaker -d CHIPCARD_API $(typefiles)
libchipcard-5.0.4/src/lib/client/cards/geldkarte/ 0000755 0001750 0001750 00000000000 12634024046 016637 5 0000000 0000000 libchipcard-5.0.4/src/lib/client/cards/geldkarte/geldkarte_llog.h 0000644 0001750 0001750 00000014077 12364015630 021717 0000000 0000000 /* This file is auto-generated from "geldkarte_llog.xml" by the typemaker
tool of Gwenhywfar.
Do not edit this file -- all changes will be lost! */
#ifndef GELDKARTE_LLOG_H
#define GELDKARTE_LLOG_H
/** @page P_LC_GELDKARTE_LLOG_PUBLIC LC_GeldKarte_LLog (public)
This page describes the properties of LC_GELDKARTE_LLOG
@anchor LC_GELDKARTE_LLOG_Status
Status
Set this property with @ref LC_GeldKarte_LLog_SetStatus,
get it with @ref LC_GeldKarte_LLog_GetStatus
@anchor LC_GELDKARTE_LLOG_BSeq
BSeq
Set this property with @ref LC_GeldKarte_LLog_SetBSeq,
get it with @ref LC_GeldKarte_LLog_GetBSeq
@anchor LC_GELDKARTE_LLOG_LSeq
LSeq
Set this property with @ref LC_GeldKarte_LLog_SetLSeq,
get it with @ref LC_GeldKarte_LLog_GetLSeq
@anchor LC_GELDKARTE_LLOG_Value
Value
Set this property with @ref LC_GeldKarte_LLog_SetValue,
get it with @ref LC_GeldKarte_LLog_GetValue
@anchor LC_GELDKARTE_LLOG_CenterId
CenterId
Set this property with @ref LC_GeldKarte_LLog_SetCenterId,
get it with @ref LC_GeldKarte_LLog_GetCenterId
@anchor LC_GELDKARTE_LLOG_TerminalId
TerminalId
Set this property with @ref LC_GeldKarte_LLog_SetTerminalId,
get it with @ref LC_GeldKarte_LLog_GetTerminalId
@anchor LC_GELDKARTE_LLOG_TraceId
TraceId
Set this property with @ref LC_GeldKarte_LLog_SetTraceId,
get it with @ref LC_GeldKarte_LLog_GetTraceId
@anchor LC_GELDKARTE_LLOG_Loaded
Loaded
Set this property with @ref LC_GeldKarte_LLog_SetLoaded,
get it with @ref LC_GeldKarte_LLog_GetLoaded
@anchor LC_GELDKARTE_LLOG_Time
Time
Set this property with @ref LC_GeldKarte_LLog_SetTime,
get it with @ref LC_GeldKarte_LLog_GetTime
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef struct LC_GELDKARTE_LLOG LC_GELDKARTE_LLOG;
#ifdef __cplusplus
} /* __cplusplus */
#endif
#include
#include
/* headers */
#include
#include
#include
#ifdef __cplusplus
extern "C" {
#endif
GWEN_LIST2_FUNCTION_LIB_DEFS(LC_GELDKARTE_LLOG, LC_GeldKarte_LLog, CHIPCARD_API)
/** Destroys all objects stored in the given LIST2 and the list itself
*/
CHIPCARD_API void LC_GeldKarte_LLog_List2_freeAll(LC_GELDKARTE_LLOG_LIST2 *stl);
/** Creates a new object.
*/
CHIPCARD_API LC_GELDKARTE_LLOG *LC_GeldKarte_LLog_new();
/** Creates an object from the data in the given GWEN_DB_NODE
*/
CHIPCARD_API LC_GELDKARTE_LLOG *LC_GeldKarte_LLog_fromDb(GWEN_DB_NODE *db);
/** Creates and returns a deep copy of thegiven object.
*/
CHIPCARD_API LC_GELDKARTE_LLOG *LC_GeldKarte_LLog_dup(const LC_GELDKARTE_LLOG*st);
/** Destroys the given object.
*/
CHIPCARD_API void LC_GeldKarte_LLog_free(LC_GELDKARTE_LLOG *st);
/** Increments the usage counter of the given object, so an additional free() is needed to destroy the object.
*/
CHIPCARD_API void LC_GeldKarte_LLog_Attach(LC_GELDKARTE_LLOG *st);
/** Reads data from a GWEN_DB.
*/
CHIPCARD_API int LC_GeldKarte_LLog_ReadDb(LC_GELDKARTE_LLOG *st, GWEN_DB_NODE *db);
/** Stores an object in the given GWEN_DB_NODE
*/
CHIPCARD_API int LC_GeldKarte_LLog_toDb(const LC_GELDKARTE_LLOG*st, GWEN_DB_NODE *db);
/** Returns 0 if this object has not been modified, !=0 otherwise
*/
CHIPCARD_API int LC_GeldKarte_LLog_IsModified(const LC_GELDKARTE_LLOG *st);
/** Sets the modified state of the given object
*/
CHIPCARD_API void LC_GeldKarte_LLog_SetModified(LC_GELDKARTE_LLOG *st, int i);
/**
* Returns the property @ref LC_GELDKARTE_LLOG_Status
*/
CHIPCARD_API int LC_GeldKarte_LLog_GetStatus(const LC_GELDKARTE_LLOG *el);
/**
* Set the property @ref LC_GELDKARTE_LLOG_Status
*/
CHIPCARD_API void LC_GeldKarte_LLog_SetStatus(LC_GELDKARTE_LLOG *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_LLOG_BSeq
*/
CHIPCARD_API int LC_GeldKarte_LLog_GetBSeq(const LC_GELDKARTE_LLOG *el);
/**
* Set the property @ref LC_GELDKARTE_LLOG_BSeq
*/
CHIPCARD_API void LC_GeldKarte_LLog_SetBSeq(LC_GELDKARTE_LLOG *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_LLOG_LSeq
*/
CHIPCARD_API int LC_GeldKarte_LLog_GetLSeq(const LC_GELDKARTE_LLOG *el);
/**
* Set the property @ref LC_GELDKARTE_LLOG_LSeq
*/
CHIPCARD_API void LC_GeldKarte_LLog_SetLSeq(LC_GELDKARTE_LLOG *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_LLOG_Value
*/
CHIPCARD_API int LC_GeldKarte_LLog_GetValue(const LC_GELDKARTE_LLOG *el);
/**
* Set the property @ref LC_GELDKARTE_LLOG_Value
*/
CHIPCARD_API void LC_GeldKarte_LLog_SetValue(LC_GELDKARTE_LLOG *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_LLOG_CenterId
*/
CHIPCARD_API const char *LC_GeldKarte_LLog_GetCenterId(const LC_GELDKARTE_LLOG *el);
/**
* Set the property @ref LC_GELDKARTE_LLOG_CenterId
*/
CHIPCARD_API void LC_GeldKarte_LLog_SetCenterId(LC_GELDKARTE_LLOG *el, const char *d);
/**
* Returns the property @ref LC_GELDKARTE_LLOG_TerminalId
*/
CHIPCARD_API const char *LC_GeldKarte_LLog_GetTerminalId(const LC_GELDKARTE_LLOG *el);
/**
* Set the property @ref LC_GELDKARTE_LLOG_TerminalId
*/
CHIPCARD_API void LC_GeldKarte_LLog_SetTerminalId(LC_GELDKARTE_LLOG *el, const char *d);
/**
* Returns the property @ref LC_GELDKARTE_LLOG_TraceId
*/
CHIPCARD_API const char *LC_GeldKarte_LLog_GetTraceId(const LC_GELDKARTE_LLOG *el);
/**
* Set the property @ref LC_GELDKARTE_LLOG_TraceId
*/
CHIPCARD_API void LC_GeldKarte_LLog_SetTraceId(LC_GELDKARTE_LLOG *el, const char *d);
/**
* Returns the property @ref LC_GELDKARTE_LLOG_Loaded
*/
CHIPCARD_API int LC_GeldKarte_LLog_GetLoaded(const LC_GELDKARTE_LLOG *el);
/**
* Set the property @ref LC_GELDKARTE_LLOG_Loaded
*/
CHIPCARD_API void LC_GeldKarte_LLog_SetLoaded(LC_GELDKARTE_LLOG *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_LLOG_Time
*/
CHIPCARD_API const GWEN_TIME *LC_GeldKarte_LLog_GetTime(const LC_GELDKARTE_LLOG *el);
/**
* Set the property @ref LC_GELDKARTE_LLOG_Time
*/
CHIPCARD_API void LC_GeldKarte_LLog_SetTime(LC_GELDKARTE_LLOG *el, const GWEN_TIME *d);
#ifdef __cplusplus
} /* __cplusplus */
#endif
#endif /* GELDKARTE_LLOG_H */
libchipcard-5.0.4/src/lib/client/cards/geldkarte/card.xml 0000644 0001750 0001750 00000005712 12364015630 020216 0000000 0000000
Geldkarte
Geldkarte (German value card)
3b ef 00 ff 81 31 ?? 45 65 63 *
3b ff 18 00 ff 81 31 ?? 45 65 63 *
0x00200081
Bad PIN (only one try left !)
Bad PIN
Bad PIN (only two tries left !)
Bad PIN (only three tries left !)
Card seems to be destroyed, this might have the following reasons:
1) you entered a bad PIN too often
2) the card is of a new and yet unknown type
0x00a4010c
File not found
0x00a4040c
File not found
0x00a4020c
File not found
0x00a4000c
File not found
libchipcard-5.0.4/src/lib/client/cards/geldkarte/geldkarte.c 0000644 0001750 0001750 00000046645 12364015630 020703 0000000 0000000 /***************************************************************************
begin : Mon Mar 01 2004
copyright : (C) 2004-2010 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "geldkarte_p.h"
#include "geldkarte_blog_l.h"
#include "geldkarte_llog_l.h"
#include
#include
#include
#include
#include
#include
#include
GWEN_INHERIT(LC_CARD, LC_GELDKARTE)
int LC_GeldKarte_ExtendCard(LC_CARD *card){
LC_GELDKARTE *gk;
int rv;
rv=LC_ProcessorCard_ExtendCard(card);
if (rv) {
DBG_ERROR(LC_LOGDOMAIN, "Could not extend card as processor card");
return rv;
}
GWEN_NEW_OBJECT(LC_GELDKARTE, gk);
gk->openFn=LC_Card_GetOpenFn(card);
gk->closeFn=LC_Card_GetCloseFn(card);
LC_Card_SetOpenFn(card, LC_GeldKarte_Open);
LC_Card_SetCloseFn(card, LC_GeldKarte_Close);
GWEN_INHERIT_SETDATA(LC_CARD, LC_GELDKARTE, card, gk,
LC_GeldKarte_freeData);
return 0;
}
int LC_GeldKarte_UnextendCard(LC_CARD *card){
LC_GELDKARTE *gk;
int rv;
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
LC_Card_SetOpenFn(card, gk->openFn);
LC_Card_SetCloseFn(card, gk->closeFn);
GWEN_INHERIT_UNLINK(LC_CARD, LC_GELDKARTE, card);
rv=LC_ProcessorCard_UnextendCard(card);
if (rv) {
DBG_INFO(LC_LOGDOMAIN, "here");
}
return rv;
}
void GWENHYWFAR_CB LC_GeldKarte_freeData(void *bp, void *p){
LC_GELDKARTE *gk;
assert(bp);
assert(p);
gk=(LC_GELDKARTE*)p;
GWEN_Buffer_free(gk->bin_ef_boerse_1);
GWEN_DB_Group_free(gk->db_ef_boerse_1);
GWEN_Buffer_free(gk->bin_ef_id_1);
GWEN_DB_Group_free(gk->db_ef_id_1);
GWEN_FREE_OBJECT(gk);
}
LC_CLIENT_RESULT CHIPCARD_CB LC_GeldKarte_Open(LC_CARD *card){
LC_CLIENT_RESULT res;
LC_GELDKARTE *gk;
DBG_INFO(LC_LOGDOMAIN, "Opening card as Geldkarte");
assert(card);
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
GWEN_DB_Group_free(gk->db_ef_boerse_1);
gk->db_ef_boerse_1=0;
GWEN_Buffer_free(gk->bin_ef_boerse_1);
gk->bin_ef_boerse_1=0;
GWEN_DB_Group_free(gk->db_ef_id_1);
gk->db_ef_id_1=0;
GWEN_Buffer_free(gk->bin_ef_id_1);
gk->bin_ef_id_1=0;
if (strcasecmp(LC_Card_GetCardType(card), "PROCESSOR")!=0) {
DBG_ERROR(LC_LOGDOMAIN, "Not a processor card");
return LC_Client_ResultNotSupported;
}
res=gk->openFn(card);
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
return res;
}
res=LC_GeldKarte_Reopen(card);
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
gk->closeFn(card);
return res;
}
return LC_Client_ResultOk;
}
LC_CLIENT_RESULT LC_GeldKarte_Reopen(LC_CARD *card){
LC_CLIENT_RESULT res;
LC_GELDKARTE *gk;
GWEN_BUFFER *mbuf;
GWEN_DB_NODE *dbRecord;
DBG_INFO(LC_LOGDOMAIN, "Opening Geldkarte");
assert(card);
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
GWEN_DB_Group_free(gk->db_ef_boerse_1);
gk->db_ef_boerse_1=0;
GWEN_Buffer_free(gk->bin_ef_boerse_1);
gk->bin_ef_boerse_1=0;
GWEN_DB_Group_free(gk->db_ef_id_1);
gk->db_ef_id_1=0;
GWEN_Buffer_free(gk->bin_ef_id_1);
gk->bin_ef_id_1=0;
res=LC_Card_SelectCard(card, "geldkarte");
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
return res;
}
res=LC_Card_SelectApp(card, "geldkarte");
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
return res;
}
DBG_INFO(LC_LOGDOMAIN, "Selecting MF...");
res=LC_Card_SelectMf(card);
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
return res;
}
/* read first record of EF_ID */
DBG_INFO(LC_LOGDOMAIN, "Selecting EF...");
res=LC_Card_SelectEf(card, "EF_ID");
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
return res;
}
DBG_INFO(LC_LOGDOMAIN, "Reading record...");
mbuf=GWEN_Buffer_new(0, 256, 0, 1);
res=LC_Card_IsoReadRecord(card, LC_CARD_ISO_FLAGS_RECSEL_GIVEN, 1, mbuf);
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
GWEN_Buffer_free(mbuf);
return res;
}
DBG_INFO(LC_LOGDOMAIN, "Parsing record...");
GWEN_Buffer_Rewind(mbuf);
dbRecord=GWEN_DB_Group_new("record");
if (LC_Card_ParseRecord(card, 1, mbuf, dbRecord)) {
DBG_ERROR(LC_LOGDOMAIN, "Error in EF_ID");
GWEN_DB_Group_free(dbRecord);
GWEN_Buffer_free(mbuf);
return LC_Client_ResultDataError;
}
gk->db_ef_id_1=dbRecord;
gk->bin_ef_id_1=mbuf;
/* select DF_BOERSE */
DBG_INFO(LC_LOGDOMAIN, "Selecting DF...");
res=LC_Card_SelectDf(card, "DF_BOERSE");
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
GWEN_DB_Group_free(dbRecord);
GWEN_Buffer_free(mbuf);
return res;
}
DBG_INFO(LC_LOGDOMAIN, "Selecting EF...");
res=LC_Card_SelectEf(card, "EF_BOERSE");
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
return res;
}
DBG_INFO(LC_LOGDOMAIN, "Reading record...");
mbuf=GWEN_Buffer_new(0, 256, 0, 1);
res=LC_Card_IsoReadRecord(card, LC_CARD_ISO_FLAGS_RECSEL_GIVEN, 1, mbuf);
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
GWEN_Buffer_free(mbuf);
return res;
}
DBG_INFO(LC_LOGDOMAIN, "Parsing record...");
GWEN_Buffer_Rewind(mbuf);
dbRecord=GWEN_DB_Group_new("record");
if (LC_Card_ParseRecord(card, 1, mbuf, dbRecord)) {
DBG_ERROR(LC_LOGDOMAIN, "Error in EF_ID");
GWEN_DB_Group_free(dbRecord);
GWEN_Buffer_free(mbuf);
return LC_Client_ResultDataError;
}
gk->db_ef_boerse_1=dbRecord;
gk->bin_ef_boerse_1=mbuf;
return LC_Client_ResultOk;
}
LC_CLIENT_RESULT CHIPCARD_CB LC_GeldKarte_Close(LC_CARD *card){
LC_CLIENT_RESULT res;
LC_GELDKARTE *gk;
assert(card);
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
res=gk->closeFn(card);
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
return res;
}
return res;
}
GWEN_DB_NODE *LC_GeldKarte_GetCardDataAsDb(const LC_CARD *card){
LC_GELDKARTE *gk;
assert(card);
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
return gk->db_ef_id_1;
}
GWEN_BUFFER *LC_GeldKarte_GetCardDataAsBuffer(const LC_CARD *card){
LC_GELDKARTE *gk;
assert(card);
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
return gk->bin_ef_id_1;
}
GWEN_DB_NODE *LC_GeldKarte_GetAccountDataAsDb(const LC_CARD *card){
LC_GELDKARTE *gk;
assert(card);
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
return gk->db_ef_boerse_1;
}
GWEN_BUFFER *LC_GeldKarte_GetAccountDataAsBuffer(const LC_CARD *card){
LC_GELDKARTE *gk;
assert(card);
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
return gk->bin_ef_boerse_1;
}
LC_CLIENT_RESULT LC_GeldKarte__ReadValues(LC_CARD *card,
GWEN_DB_NODE *dbData){
LC_CLIENT_RESULT res;
GWEN_DB_NODE *dbCurr;
GWEN_BUFFER *buf;
LC_GELDKARTE *gk;
assert(card);
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
res=LC_Card_SelectEf(card, "EF_BETRAG");
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
return res;
}
buf=GWEN_Buffer_new(0, 256, 0, 1);
res=LC_Card_IsoReadRecord(card, LC_CARD_ISO_FLAGS_RECSEL_GIVEN, 1, buf);
if (res!=LC_Client_ResultOk) {
DBG_INFO(0, "here");
GWEN_Buffer_free(buf);
return res;
}
dbCurr=GWEN_DB_Group_new("values");
GWEN_Buffer_Rewind(buf);
if (LC_Card_ParseRecord(card, 1, buf, dbCurr)) {
DBG_ERROR(LC_LOGDOMAIN, "Error parsing record");
GWEN_DB_Group_free(dbCurr);
GWEN_Buffer_free(buf);
return LC_Client_ResultDataError;
}
else {
GWEN_DB_AddGroupChildren(dbData, dbCurr);
}
GWEN_DB_Group_free(dbCurr);
GWEN_Buffer_free(buf);
return LC_Client_ResultOk;
}
LC_CLIENT_RESULT LC_GeldKarte_ReadValues(LC_CARD *card,
LC_GELDKARTE_VALUES *val) {
LC_GELDKARTE *gk;
LC_CLIENT_RESULT res;
GWEN_DB_NODE *dbData;
assert(card);
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
dbData=GWEN_DB_Group_new("values");
res=LC_GeldKarte__ReadValues(card, dbData);
if (res!=LC_Client_ResultOk) {
GWEN_DB_Group_free(dbData);
return res;
}
if (val) {
int i;
if (1!=sscanf(GWEN_DB_GetCharValue(dbData, "loaded", 0, ""),
"%d", &i)) {
DBG_WARN(LC_LOGDOMAIN, "Bad value for \"loaded\"");
i=0;
}
LC_GeldKarte_Values_SetLoaded(val, i);
if (1!=sscanf(GWEN_DB_GetCharValue(dbData, "maxload", 0, ""),
"%d", &i)) {
DBG_WARN(LC_LOGDOMAIN, "Bad value for \"maxload\"");
i=0;
}
LC_GeldKarte_Values_SetMaxLoad(val, i);
if (1!=sscanf(GWEN_DB_GetCharValue(dbData, "maxtrans", 0, ""),
"%d", &i)) {
DBG_WARN(LC_LOGDOMAIN, "Bad value for \"maxtrans\"");
i=0;
}
LC_GeldKarte_Values_SetMaxXfer(val, i);
}
GWEN_DB_Group_free(dbData);
return LC_Client_ResultOk;
}
LC_CLIENT_RESULT LC_GeldKarte__ReadBLog(LC_CARD *card,
int idx,
GWEN_DB_NODE *dbData){
LC_CLIENT_RESULT res;
GWEN_DB_NODE *dbCurr;
int i;
unsigned int ctxCount;
GWEN_BUFFER *buf;
LC_GELDKARTE *gk;
assert(card);
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
res=LC_Card_SelectEf(card, "EF_BLOG");
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
return res;
}
ctxCount=0;
buf=GWEN_Buffer_new(0, 256, 0, 1);
for (i=1; i<16; i++) {
unsigned int len;
const char *formatName;
DBG_INFO(LC_LOGDOMAIN, "Reading BLOG record %d", i);
GWEN_Buffer_Reset(buf);
res=LC_Card_IsoReadRecord(card, LC_CARD_ISO_FLAGS_RECSEL_GIVEN,
idx?idx:i, buf);
if (res!=LC_Client_ResultOk)
break;
dbCurr=GWEN_DB_Group_new("blog");
GWEN_Buffer_Rewind(buf);
len=GWEN_Buffer_GetUsedBytes(buf);
if (len==0x24)
formatName="blog_24";
else if (len==0x25)
formatName="blog_25";
else {
DBG_ERROR(LC_LOGDOMAIN, "Invalid size of BLOG (%d)", len);
GWEN_Buffer_free(buf);
return LC_Client_ResultDataError;
}
if (LC_Card_ParseData(card, formatName, buf, dbCurr)) {
DBG_ERROR(LC_LOGDOMAIN, "Error parsing record %d", i);
GWEN_DB_Group_free(dbCurr);
}
else {
int bseq;
int lseq;
bseq=GWEN_DB_GetIntValue(dbCurr, "bseq", 0, 0);
lseq=GWEN_DB_GetIntValue(dbCurr, "lseq", 0, 0);
if (bseq!=0 && lseq!=0) {
const void *p;
unsigned int bs;
p=GWEN_DB_GetBinValue(dbCurr, "merchantId", 0, 0, 0, &bs);
if (p && bs) {
GWEN_BUFFER *hexbuf;
hexbuf=GWEN_Buffer_new(0, 32, 0, 1);
if (GWEN_Text_ToHexBuffer(p, bs, hexbuf, 0, 0, 0))
abort();
GWEN_DB_DeleteVar(dbCurr, "merchantId");
GWEN_DB_SetCharValue(dbCurr, GWEN_DB_FLAGS_OVERWRITE_VARS,
"merchantId",
GWEN_Buffer_GetStart(hexbuf));
GWEN_Buffer_free(hexbuf);
}
DBG_DEBUG(LC_LOGDOMAIN, "Adding BLOG entry %d", ctxCount);
GWEN_DB_AddGroup(dbData, dbCurr);
ctxCount++;
}
else {
DBG_WARN(LC_LOGDOMAIN, "Entry %d is empty",
idx?idx:i);
GWEN_DB_Group_free(dbCurr);
}
}
if (idx)
break;
} /* for */
GWEN_Buffer_free(buf);
if (!ctxCount) {
return LC_Client_ResultNoData;
}
return LC_Client_ResultOk;
}
LC_CLIENT_RESULT LC_GeldKarte_ReadBLogs(LC_CARD *card,
LC_GELDKARTE_BLOG_LIST2 *bll) {
LC_GELDKARTE *gk;
LC_CLIENT_RESULT res;
GWEN_DB_NODE *dbCurr;
GWEN_DB_NODE *dbData;
int count;
assert(card);
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
dbData=GWEN_DB_Group_new("blogs");
res=LC_GeldKarte__ReadBLog(card, 0, dbData);
if (res!=LC_Client_ResultOk) {
GWEN_DB_Group_free(dbData);
return res;
}
dbCurr=GWEN_DB_FindFirstGroup(dbData, "blog");
count=0;
while(dbCurr) {
LC_GELDKARTE_BLOG *blog;
const char *d, *t;
int v;
blog=LC_GeldKarte_BLog_new();
LC_GeldKarte_BLog_SetStatus(blog,
GWEN_DB_GetIntValue(dbCurr, "status", 0, 0));
LC_GeldKarte_BLog_SetBSeq(blog,
GWEN_DB_GetIntValue(dbCurr, "bseq", 0, 0));
LC_GeldKarte_BLog_SetLSeq(blog,
GWEN_DB_GetIntValue(dbCurr, "lseq", 0, 0));
LC_GeldKarte_BLog_SetHSeq(blog,
GWEN_DB_GetIntValue(dbCurr, "hseq", 0, 0));
LC_GeldKarte_BLog_SetSSeq(blog,
GWEN_DB_GetIntValue(dbCurr, "sseq", 0, 0));
if (1!=sscanf(GWEN_DB_GetCharValue(dbCurr, "value", 0, "0"),
"%d", &v))
v=0;
LC_GeldKarte_BLog_SetValue(blog, v);
if (1!=sscanf(GWEN_DB_GetCharValue(dbCurr, "loaded", 0, "0"),
"%d", &v))
v=0;
LC_GeldKarte_BLog_SetLoaded(blog, v);
LC_GeldKarte_BLog_SetMerchantId(blog,
GWEN_DB_GetCharValue(dbCurr,
"merchantId",
0, 0));
d=GWEN_DB_GetCharValue(dbCurr, "date", 0, 0);
t=GWEN_DB_GetCharValue(dbCurr, "time", 0, 0);
if (d && t) {
if (strcmp(d, "00000000")!=0 &&
strcmp(d, "000000")!=0) {
if (strcmp(t, "000000")==0) {
GWEN_BUFFER *dbuf;
GWEN_TIME *ti;
dbuf=GWEN_Buffer_new(0, 9, 0, 1);
GWEN_Buffer_AppendString(dbuf, d);
if (strlen(d)<8)
ti=GWEN_Time_fromString(GWEN_Buffer_GetStart(dbuf), "YYMMDD");
else
ti=GWEN_Time_fromString(GWEN_Buffer_GetStart(dbuf), "YYYYMMDD");
if (ti) {
LC_GeldKarte_BLog_SetTime(blog, ti);
GWEN_Time_free(ti);
}
else {
DBG_INFO(LC_LOGDOMAIN, "No/bad date/time in EF_BLOG record");
}
}
else {
GWEN_BUFFER *dbuf;
GWEN_TIME *ti;
dbuf=GWEN_Buffer_new(0, 15, 0, 1);
GWEN_Buffer_AppendString(dbuf, d);
GWEN_Buffer_AppendString(dbuf, t);
if (strlen(d)<8)
ti=GWEN_Time_fromString(GWEN_Buffer_GetStart(dbuf),
"YYMMDDhhmmss");
else
ti=GWEN_Time_fromString(GWEN_Buffer_GetStart(dbuf),
"YYYYMMDDhhmmss");
if (ti) {
LC_GeldKarte_BLog_SetTime(blog, ti);
GWEN_Time_free(ti);
}
else {
DBG_INFO(LC_LOGDOMAIN, "No/bad date/time in EF_BLOG record");
}
}
}
}
if (bll) {
LC_GeldKarte_BLog_List2_PushBack(bll, blog);
DBG_INFO(LC_LOGDOMAIN, "Added BLOG entry to list");
}
else
LC_GeldKarte_BLog_free(blog);
count++;
dbCurr=GWEN_DB_FindNextGroup(dbCurr, "blog");
}
if (!count) {
return LC_Client_ResultNoData;
}
return LC_Client_ResultOk;
}
LC_CLIENT_RESULT LC_GeldKarte__ReadLLog(LC_CARD *card,
int idx,
GWEN_DB_NODE *dbData){
LC_CLIENT_RESULT res;
GWEN_DB_NODE *dbCurr;
int i;
unsigned int ctxCount;
GWEN_BUFFER *buf;
LC_GELDKARTE *gk;
assert(card);
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
res=LC_Card_SelectEf(card, "EF_LLOG");
if (res!=LC_Client_ResultOk) {
DBG_INFO(LC_LOGDOMAIN, "here");
return res;
}
ctxCount=0;
buf=GWEN_Buffer_new(0, 256, 0, 1);
for (i=1; i<4; i++) {
DBG_INFO(LC_LOGDOMAIN, "Reading LLOG record %d", i);
GWEN_Buffer_Reset(buf);
res=LC_Card_IsoReadRecord(card, LC_CARD_ISO_FLAGS_RECSEL_GIVEN,
idx?idx:i, buf);
if (res!=LC_Client_ResultOk)
break;
dbCurr=GWEN_DB_Group_new("llog");
GWEN_Buffer_Rewind(buf);
if (LC_Card_ParseRecord(card, idx?idx:i, buf, dbCurr)) {
DBG_ERROR(LC_LOGDOMAIN, "Error parsing record %d", idx?idx:i);
GWEN_DB_Group_free(dbCurr);
}
else {
int bseq;
int lseq;
bseq=GWEN_DB_GetIntValue(dbCurr, "bseq", 0, 0);
lseq=GWEN_DB_GetIntValue(dbCurr, "lseq", 0, 0);
if (bseq!=0 && lseq!=0) {
DBG_DEBUG(LC_LOGDOMAIN, "Adding LLOG entry %d", ctxCount);
GWEN_DB_AddGroup(dbData, dbCurr);
ctxCount++;
}
else {
DBG_WARN(LC_LOGDOMAIN, "Entry %d is empty",
idx?idx:i);
GWEN_DB_Group_free(dbCurr);
}
}
if (idx)
break;
} /* for */
GWEN_Buffer_free(buf);
if (!ctxCount) {
return LC_Client_ResultNoData;
}
return LC_Client_ResultOk;
}
LC_CLIENT_RESULT LC_GeldKarte_ReadLLogs(LC_CARD *card,
LC_GELDKARTE_LLOG_LIST2 *bll) {
LC_GELDKARTE *gk;
LC_CLIENT_RESULT res;
GWEN_DB_NODE *dbCurr;
GWEN_DB_NODE *dbData;
int count;
assert(card);
gk=GWEN_INHERIT_GETDATA(LC_CARD, LC_GELDKARTE, card);
assert(gk);
dbData=GWEN_DB_Group_new("llogs");
res=LC_GeldKarte__ReadLLog(card, 0, dbData);
if (res!=LC_Client_ResultOk) {
GWEN_DB_Group_free(dbData);
return res;
}
dbCurr=GWEN_DB_FindFirstGroup(dbData, "llog");
count=0;
while(dbCurr) {
LC_GELDKARTE_LLOG *llog;
const char *d, *t;
int v;
llog=LC_GeldKarte_LLog_new();
LC_GeldKarte_LLog_SetStatus(llog,
GWEN_DB_GetIntValue(dbCurr, "status", 0, 0));
LC_GeldKarte_LLog_SetBSeq(llog,
GWEN_DB_GetIntValue(dbCurr, "bseq", 0, 0));
LC_GeldKarte_LLog_SetLSeq(llog,
GWEN_DB_GetIntValue(dbCurr, "lseq", 0, 0));
if (1!=sscanf(GWEN_DB_GetCharValue(dbCurr, "value", 0, "0"),
"%d", &v))
v=0;
LC_GeldKarte_LLog_SetValue(llog, v);
if (1!=sscanf(GWEN_DB_GetCharValue(dbCurr, "loaded", 0, "0"),
"%d", &v))
v=0;
LC_GeldKarte_LLog_SetLoaded(llog, v);
LC_GeldKarte_LLog_SetCenterId(llog,
GWEN_DB_GetCharValue(dbCurr,
"centerId",
0, 0));
LC_GeldKarte_LLog_SetTerminalId(llog,
GWEN_DB_GetCharValue(dbCurr,
"terminalId",
0, 0));
LC_GeldKarte_LLog_SetTraceId(llog,
GWEN_DB_GetCharValue(dbCurr,
"traceId",
0, 0));
d=GWEN_DB_GetCharValue(dbCurr, "date", 0, 0);
t=GWEN_DB_GetCharValue(dbCurr, "time", 0, 0);
if (d && t) {
if (strcmp(d, "00000000")!=0) {
if (strcmp(t, "000000")==0) {
GWEN_BUFFER *dbuf;
GWEN_TIME *ti;
dbuf=GWEN_Buffer_new(0, 9, 0, 1);
GWEN_Buffer_AppendString(dbuf, d);
ti=GWEN_Time_fromString(GWEN_Buffer_GetStart(dbuf),
"YYYYMMDD");
if (ti) {
LC_GeldKarte_LLog_SetTime(llog, ti);
GWEN_Time_free(ti);
}
else {
DBG_INFO(LC_LOGDOMAIN, "No/bad date/time in EF_BLOG record");
}
}
else {
GWEN_BUFFER *dbuf;
GWEN_TIME *ti;
dbuf=GWEN_Buffer_new(0, 15, 0, 1);
GWEN_Buffer_AppendString(dbuf, d);
GWEN_Buffer_AppendString(dbuf, t);
ti=GWEN_Time_fromString(GWEN_Buffer_GetStart(dbuf),
"YYYYMMDDhhmmss");
if (ti) {
LC_GeldKarte_LLog_SetTime(llog, ti);
GWEN_Time_free(ti);
}
else {
DBG_INFO(LC_LOGDOMAIN, "No/bad date/time in EF_BLOG record");
}
}
}
}
if (bll) {
LC_GeldKarte_LLog_List2_PushBack(bll, llog);
DBG_INFO(LC_LOGDOMAIN, "Added BLOG entry to list");
}
else
LC_GeldKarte_LLog_free(llog);
count++;
dbCurr=GWEN_DB_FindNextGroup(dbCurr, "llog");
}
if (!count) {
return LC_Client_ResultNoData;
}
return LC_Client_ResultOk;
}
libchipcard-5.0.4/src/lib/client/cards/geldkarte/Makefile.in 0000644 0001750 0001750 00000056073 12634023664 020644 0000000 0000000 # Makefile.in generated by automake 1.14.1 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = src/lib/client/cards/geldkarte
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
$(top_srcdir)/depcomp $(iheader_HEADERS) $(noinst_HEADERS)
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/distri.m4 \
$(top_srcdir)/m4/gwenhywfar.m4 $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/m4/os.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
LTLIBRARIES = $(noinst_LTLIBRARIES)
libcards_geldkarte_la_LIBADD =
am_libcards_geldkarte_la_OBJECTS = geldkarte.lo geldkarte_blog.lo \
geldkarte_llog.lo geldkarte_values.lo
libcards_geldkarte_la_OBJECTS = $(am_libcards_geldkarte_la_OBJECTS)
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent
am__v_lt_1 =
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_@AM_V@)
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
CCLD = $(CC)
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
SOURCES = $(libcards_geldkarte_la_SOURCES)
DIST_SOURCES = $(libcards_geldkarte_la_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
for p in $$list; do echo "$$p $$p"; done | \
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
if (++n[$$2] == $(am__install_max)) \
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
END { for (dir in files) print dir, files[dir] }'
am__base_list = \
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir = { \
test -z "$$files" \
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
am__installdirs = "$(DESTDIR)$(iheaderdir)"
HEADERS = $(iheader_HEADERS) $(noinst_HEADERS)
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AR = @AR@
AS = @AS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CHIPCARD_VERSION_BUILD = @CHIPCARD_VERSION_BUILD@
CHIPCARD_VERSION_FULL_STRING = @CHIPCARD_VERSION_FULL_STRING@
CHIPCARD_VERSION_MAJOR = @CHIPCARD_VERSION_MAJOR@
CHIPCARD_VERSION_MINOR = @CHIPCARD_VERSION_MINOR@
CHIPCARD_VERSION_PATCHLEVEL = @CHIPCARD_VERSION_PATCHLEVEL@
CHIPCARD_VERSION_RELEASE_STRING = @CHIPCARD_VERSION_RELEASE_STRING@
CHIPCARD_VERSION_STRING = @CHIPCARD_VERSION_STRING@
CHIPCARD_VERSION_TAG = @CHIPCARD_VERSION_TAG@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@ -DBUILDING_CHIPCARD
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN_DEFINE = @DOXYGEN_DEFINE@
DOXYGEN_INPUT = @DOXYGEN_INPUT@
DOXYGEN_TAGFILES = @DOXYGEN_TAGFILES@
DPKG_ARCH = @DPKG_ARCH@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
GREP = @GREP@
I18N_CATALOG = @I18N_CATALOG@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_DLL_TARGET = @INSTALL_DLL_TARGET@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBCHIPCARD_SO_AGE = @LIBCHIPCARD_SO_AGE@
LIBCHIPCARD_SO_CURRENT = @LIBCHIPCARD_SO_CURRENT@
LIBCHIPCARD_SO_EFFECTIVE = @LIBCHIPCARD_SO_EFFECTIVE@
LIBCHIPCARD_SO_REVISION = @LIBCHIPCARD_SO_REVISION@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MAKE_DLL_TARGET = @MAKE_DLL_TARGET@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OSYSTEM = @OSYSTEM@
OS_TYPE = @OS_TYPE@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PCSCLITE_CFLAGS = @PCSCLITE_CFLAGS@
PCSCLITE_LIBS = @PCSCLITE_LIBS@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
RANLIB = @RANLIB@
RC = @RC@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
STRIPALL = @STRIPALL@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
aq_distrib_name = @aq_distrib_name@
aq_distrib_tag = @aq_distrib_tag@
aq_distrib_version = @aq_distrib_version@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
docpath = @docpath@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
gwenhywfar_bindir = @gwenhywfar_bindir@
gwenhywfar_dir = @gwenhywfar_dir@
gwenhywfar_has_crypt = @gwenhywfar_has_crypt@
gwenhywfar_headers = @gwenhywfar_headers@
gwenhywfar_includes = @gwenhywfar_includes@
gwenhywfar_libs = @gwenhywfar_libs@
gwenhywfar_plugins = @gwenhywfar_plugins@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
lc_cfg_searchdir = @lc_cfg_searchdir@
lc_client_config_dir = @lc_client_config_dir@
lc_client_config_file = @lc_client_config_file@
lc_client_xml_dir = @lc_client_xml_dir@
lc_data_searchdir = @lc_data_searchdir@
lc_init_script_dir = @lc_init_script_dir@
lc_locale_searchdir = @lc_locale_searchdir@
lc_os_driver_dir = @lc_os_driver_dir@
lc_sys_is_windows = @lc_sys_is_windows@
libchipcard_headerdir = @libchipcard_headerdir@
libchipcard_headerdir_am = @libchipcard_headerdir_am@
libchipcard_includes = @libchipcard_includes@
libchipcard_symlinkdir = @libchipcard_symlinkdir@
libchipcardc_libs = @libchipcardc_libs@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pcsc_includes = @pcsc_includes@
pcsc_lib = @pcsc_lib@
pcsc_libraries = @pcsc_libraries@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
visibility_cflags = @visibility_cflags@
zlib_libs = @zlib_libs@
AM_CFLAGS = $(visibility_cflags)
EXTRA_DIST = app.xml card.xml types.xml
INCLUDES = -I$(libchipcard_symlinkdir) $(gwenhywfar_includes) -I../
typefiles = types.xml
noinst_LTLIBRARIES = libcards-geldkarte.la
noinst_HEADERS = \
geldkarte_p.h \
geldkarte_blog_l.h \
geldkarte_blog_p.h \
geldkarte_llog_l.h \
geldkarte_llog_p.h \
geldkarte_values_l.h \
geldkarte_values_p.h
iheaderdir = @libchipcard_headerdir_am@/cards
iheader_HEADERS = \
geldkarte.h \
geldkarte_blog.h \
geldkarte_llog.h \
geldkarte_values.h
libcards_geldkarte_la_SOURCES = \
geldkarte.c \
geldkarte_blog.c \
geldkarte_llog.c \
geldkarte_values.c
appdatadir = @lc_client_xml_dir@/apps
carddatadir = @lc_client_xml_dir@/cards
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/client/cards/geldkarte/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu src/lib/client/cards/geldkarte/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
clean-noinstLTLIBRARIES:
-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
@list='$(noinst_LTLIBRARIES)'; \
locs=`for p in $$list; do echo $$p; done | \
sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
sort -u`; \
test -z "$$locs" || { \
echo rm -f $${locs}; \
rm -f $${locs}; \
}
libcards-geldkarte.la: $(libcards_geldkarte_la_OBJECTS) $(libcards_geldkarte_la_DEPENDENCIES) $(EXTRA_libcards_geldkarte_la_DEPENDENCIES)
$(AM_V_CCLD)$(LINK) $(libcards_geldkarte_la_OBJECTS) $(libcards_geldkarte_la_LIBADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geldkarte.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geldkarte_blog.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geldkarte_llog.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geldkarte_values.Plo@am__quote@
.c.o:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
.c.obj:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.c.lo:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
install-iheaderHEADERS: $(iheader_HEADERS)
@$(NORMAL_INSTALL)
@list='$(iheader_HEADERS)'; test -n "$(iheaderdir)" || list=; \
if test -n "$$list"; then \
echo " $(MKDIR_P) '$(DESTDIR)$(iheaderdir)'"; \
$(MKDIR_P) "$(DESTDIR)$(iheaderdir)" || exit 1; \
fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
done | $(am__base_list) | \
while read files; do \
echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(iheaderdir)'"; \
$(INSTALL_HEADER) $$files "$(DESTDIR)$(iheaderdir)" || exit $$?; \
done
uninstall-iheaderHEADERS:
@$(NORMAL_UNINSTALL)
@list='$(iheader_HEADERS)'; test -n "$(iheaderdir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
dir='$(DESTDIR)$(iheaderdir)'; $(am__uninstall_files_from_dir)
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-am
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-am
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-am
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(LTLIBRARIES) $(HEADERS)
installdirs:
for dir in "$(DESTDIR)$(iheaderdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
mostlyclean-am
distclean: distclean-am
-rm -rf ./$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am: install-data-local install-iheaderHEADERS
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am:
install-html: install-html-am
install-html-am:
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-am
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -rf ./$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-iheaderHEADERS
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
ctags-am distclean distclean-compile distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-data-local install-dvi install-dvi-am \
install-exec install-exec-am install-html install-html-am \
install-iheaderHEADERS install-info install-info-am \
install-man install-pdf install-pdf-am install-ps \
install-ps-am install-strip installcheck installcheck-am \
installdirs maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
uninstall-am uninstall-iheaderHEADERS
types: $(typefiles)
typemaker -d CHIPCARD_API $(typefiles)
install-app-data:
$(INSTALL) -d $(DESTDIR)$(appdatadir)
cp $(srcdir)/app.xml $(DESTDIR)$(appdatadir)/geldkarte.xml
install-card-data:
$(INSTALL) -d $(DESTDIR)$(carddatadir)
cp $(srcdir)/card.xml $(DESTDIR)$(carddatadir)/geldkarte.xml
install-data-local: install-app-data install-card-data
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
libchipcard-5.0.4/src/lib/client/cards/geldkarte/geldkarte_blog.h 0000644 0001750 0001750 00000014627 12364015630 021706 0000000 0000000 /* This file is auto-generated from "geldkarte_blog.xml" by the typemaker
tool of Gwenhywfar.
Do not edit this file -- all changes will be lost! */
#ifndef GELDKARTE_BLOG_H
#define GELDKARTE_BLOG_H
/** @page P_LC_GELDKARTE_BLOG_PUBLIC LC_GeldKarte_BLog (public)
This page describes the properties of LC_GELDKARTE_BLOG
@anchor LC_GELDKARTE_BLOG_Status
Status
Set this property with @ref LC_GeldKarte_BLog_SetStatus,
get it with @ref LC_GeldKarte_BLog_GetStatus
@anchor LC_GELDKARTE_BLOG_BSeq
BSeq
Set this property with @ref LC_GeldKarte_BLog_SetBSeq,
get it with @ref LC_GeldKarte_BLog_GetBSeq
@anchor LC_GELDKARTE_BLOG_LSeq
LSeq
Set this property with @ref LC_GeldKarte_BLog_SetLSeq,
get it with @ref LC_GeldKarte_BLog_GetLSeq
@anchor LC_GELDKARTE_BLOG_Value
Value
Set this property with @ref LC_GeldKarte_BLog_SetValue,
get it with @ref LC_GeldKarte_BLog_GetValue
@anchor LC_GELDKARTE_BLOG_MerchantId
MerchantId
Set this property with @ref LC_GeldKarte_BLog_SetMerchantId,
get it with @ref LC_GeldKarte_BLog_GetMerchantId
@anchor LC_GELDKARTE_BLOG_HSeq
HSeq
Set this property with @ref LC_GeldKarte_BLog_SetHSeq,
get it with @ref LC_GeldKarte_BLog_GetHSeq
@anchor LC_GELDKARTE_BLOG_SSeq
SSeq
Set this property with @ref LC_GeldKarte_BLog_SetSSeq,
get it with @ref LC_GeldKarte_BLog_GetSSeq
@anchor LC_GELDKARTE_BLOG_Loaded
Loaded
Set this property with @ref LC_GeldKarte_BLog_SetLoaded,
get it with @ref LC_GeldKarte_BLog_GetLoaded
@anchor LC_GELDKARTE_BLOG_Time
Time
Set this property with @ref LC_GeldKarte_BLog_SetTime,
get it with @ref LC_GeldKarte_BLog_GetTime
@anchor LC_GELDKARTE_BLOG_KeyId
KeyId
Set this property with @ref LC_GeldKarte_BLog_SetKeyId,
get it with @ref LC_GeldKarte_BLog_GetKeyId
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef struct LC_GELDKARTE_BLOG LC_GELDKARTE_BLOG;
#ifdef __cplusplus
} /* __cplusplus */
#endif
#include
#include
/* headers */
#include
#include
#include
#ifdef __cplusplus
extern "C" {
#endif
GWEN_LIST2_FUNCTION_LIB_DEFS(LC_GELDKARTE_BLOG, LC_GeldKarte_BLog, CHIPCARD_API)
/** Destroys all objects stored in the given LIST2 and the list itself
*/
CHIPCARD_API void LC_GeldKarte_BLog_List2_freeAll(LC_GELDKARTE_BLOG_LIST2 *stl);
/** Creates a new object.
*/
CHIPCARD_API LC_GELDKARTE_BLOG *LC_GeldKarte_BLog_new();
/** Creates an object from the data in the given GWEN_DB_NODE
*/
CHIPCARD_API LC_GELDKARTE_BLOG *LC_GeldKarte_BLog_fromDb(GWEN_DB_NODE *db);
/** Creates and returns a deep copy of thegiven object.
*/
CHIPCARD_API LC_GELDKARTE_BLOG *LC_GeldKarte_BLog_dup(const LC_GELDKARTE_BLOG*st);
/** Destroys the given object.
*/
CHIPCARD_API void LC_GeldKarte_BLog_free(LC_GELDKARTE_BLOG *st);
/** Increments the usage counter of the given object, so an additional free() is needed to destroy the object.
*/
CHIPCARD_API void LC_GeldKarte_BLog_Attach(LC_GELDKARTE_BLOG *st);
/** Reads data from a GWEN_DB.
*/
CHIPCARD_API int LC_GeldKarte_BLog_ReadDb(LC_GELDKARTE_BLOG *st, GWEN_DB_NODE *db);
/** Stores an object in the given GWEN_DB_NODE
*/
CHIPCARD_API int LC_GeldKarte_BLog_toDb(const LC_GELDKARTE_BLOG*st, GWEN_DB_NODE *db);
/** Returns 0 if this object has not been modified, !=0 otherwise
*/
CHIPCARD_API int LC_GeldKarte_BLog_IsModified(const LC_GELDKARTE_BLOG *st);
/** Sets the modified state of the given object
*/
CHIPCARD_API void LC_GeldKarte_BLog_SetModified(LC_GELDKARTE_BLOG *st, int i);
/**
* Returns the property @ref LC_GELDKARTE_BLOG_Status
*/
CHIPCARD_API int LC_GeldKarte_BLog_GetStatus(const LC_GELDKARTE_BLOG *el);
/**
* Set the property @ref LC_GELDKARTE_BLOG_Status
*/
CHIPCARD_API void LC_GeldKarte_BLog_SetStatus(LC_GELDKARTE_BLOG *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_BLOG_BSeq
*/
CHIPCARD_API int LC_GeldKarte_BLog_GetBSeq(const LC_GELDKARTE_BLOG *el);
/**
* Set the property @ref LC_GELDKARTE_BLOG_BSeq
*/
CHIPCARD_API void LC_GeldKarte_BLog_SetBSeq(LC_GELDKARTE_BLOG *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_BLOG_LSeq
*/
CHIPCARD_API int LC_GeldKarte_BLog_GetLSeq(const LC_GELDKARTE_BLOG *el);
/**
* Set the property @ref LC_GELDKARTE_BLOG_LSeq
*/
CHIPCARD_API void LC_GeldKarte_BLog_SetLSeq(LC_GELDKARTE_BLOG *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_BLOG_Value
*/
CHIPCARD_API int LC_GeldKarte_BLog_GetValue(const LC_GELDKARTE_BLOG *el);
/**
* Set the property @ref LC_GELDKARTE_BLOG_Value
*/
CHIPCARD_API void LC_GeldKarte_BLog_SetValue(LC_GELDKARTE_BLOG *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_BLOG_MerchantId
*/
CHIPCARD_API const char *LC_GeldKarte_BLog_GetMerchantId(const LC_GELDKARTE_BLOG *el);
/**
* Set the property @ref LC_GELDKARTE_BLOG_MerchantId
*/
CHIPCARD_API void LC_GeldKarte_BLog_SetMerchantId(LC_GELDKARTE_BLOG *el, const char *d);
/**
* Returns the property @ref LC_GELDKARTE_BLOG_HSeq
*/
CHIPCARD_API int LC_GeldKarte_BLog_GetHSeq(const LC_GELDKARTE_BLOG *el);
/**
* Set the property @ref LC_GELDKARTE_BLOG_HSeq
*/
CHIPCARD_API void LC_GeldKarte_BLog_SetHSeq(LC_GELDKARTE_BLOG *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_BLOG_SSeq
*/
CHIPCARD_API int LC_GeldKarte_BLog_GetSSeq(const LC_GELDKARTE_BLOG *el);
/**
* Set the property @ref LC_GELDKARTE_BLOG_SSeq
*/
CHIPCARD_API void LC_GeldKarte_BLog_SetSSeq(LC_GELDKARTE_BLOG *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_BLOG_Loaded
*/
CHIPCARD_API int LC_GeldKarte_BLog_GetLoaded(const LC_GELDKARTE_BLOG *el);
/**
* Set the property @ref LC_GELDKARTE_BLOG_Loaded
*/
CHIPCARD_API void LC_GeldKarte_BLog_SetLoaded(LC_GELDKARTE_BLOG *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_BLOG_Time
*/
CHIPCARD_API const GWEN_TIME *LC_GeldKarte_BLog_GetTime(const LC_GELDKARTE_BLOG *el);
/**
* Set the property @ref LC_GELDKARTE_BLOG_Time
*/
CHIPCARD_API void LC_GeldKarte_BLog_SetTime(LC_GELDKARTE_BLOG *el, const GWEN_TIME *d);
/**
* Returns the property @ref LC_GELDKARTE_BLOG_KeyId
*/
CHIPCARD_API int LC_GeldKarte_BLog_GetKeyId(const LC_GELDKARTE_BLOG *el);
/**
* Set the property @ref LC_GELDKARTE_BLOG_KeyId
*/
CHIPCARD_API void LC_GeldKarte_BLog_SetKeyId(LC_GELDKARTE_BLOG *el, int d);
#ifdef __cplusplus
} /* __cplusplus */
#endif
#endif /* GELDKARTE_BLOG_H */
libchipcard-5.0.4/src/lib/client/cards/geldkarte/types.xml 0000644 0001750 0001750 00000005173 12364015630 020452 0000000 0000000
libchipcard-5.0.4/src/lib/client/cards/geldkarte/Makefile.am 0000644 0001750 0001750 00000002113 12364015630 020607 0000000 0000000
DEFS += \
-DBUILDING_CHIPCARD
AM_CFLAGS=$(visibility_cflags)
EXTRA_DIST=app.xml card.xml types.xml
INCLUDES=-I$(libchipcard_symlinkdir) $(gwenhywfar_includes) -I../
typefiles=types.xml
noinst_LTLIBRARIES=libcards-geldkarte.la
noinst_HEADERS=\
geldkarte_p.h \
geldkarte_blog_l.h \
geldkarte_blog_p.h \
geldkarte_llog_l.h \
geldkarte_llog_p.h \
geldkarte_values_l.h \
geldkarte_values_p.h
iheaderdir=@libchipcard_headerdir_am@/cards
iheader_HEADERS=\
geldkarte.h \
geldkarte_blog.h \
geldkarte_llog.h \
geldkarte_values.h
libcards_geldkarte_la_SOURCES=\
geldkarte.c \
geldkarte_blog.c \
geldkarte_llog.c \
geldkarte_values.c
types: $(typefiles)
typemaker -d CHIPCARD_API $(typefiles)
appdatadir=@lc_client_xml_dir@/apps
carddatadir=@lc_client_xml_dir@/cards
install-app-data:
$(INSTALL) -d $(DESTDIR)$(appdatadir)
cp $(srcdir)/app.xml $(DESTDIR)$(appdatadir)/geldkarte.xml
install-card-data:
$(INSTALL) -d $(DESTDIR)$(carddatadir)
cp $(srcdir)/card.xml $(DESTDIR)$(carddatadir)/geldkarte.xml
install-data-local: install-app-data install-card-data
libchipcard-5.0.4/src/lib/client/cards/geldkarte/geldkarte_values.h 0000644 0001750 0001750 00000007053 12364015630 022255 0000000 0000000 /* This file is auto-generated from "geldkarte_values.xml" by the typemaker
tool of Gwenhywfar.
Do not edit this file -- all changes will be lost! */
#ifndef GELDKARTE_VALUES_H
#define GELDKARTE_VALUES_H
/** @page P_LC_GELDKARTE_VALUES_PUBLIC LC_GeldKarte_Values (public)
This page describes the properties of LC_GELDKARTE_VALUES
@anchor LC_GELDKARTE_VALUES_Loaded
Loaded
Set this property with @ref LC_GeldKarte_Values_SetLoaded,
get it with @ref LC_GeldKarte_Values_GetLoaded
@anchor LC_GELDKARTE_VALUES_MaxLoad
MaxLoad
Set this property with @ref LC_GeldKarte_Values_SetMaxLoad,
get it with @ref LC_GeldKarte_Values_GetMaxLoad
@anchor LC_GELDKARTE_VALUES_MaxXfer
MaxXfer
Set this property with @ref LC_GeldKarte_Values_SetMaxXfer,
get it with @ref LC_GeldKarte_Values_GetMaxXfer
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef struct LC_GELDKARTE_VALUES LC_GELDKARTE_VALUES;
#ifdef __cplusplus
} /* __cplusplus */
#endif
#include
#include
/* headers */
#include
#include
#include
#ifdef __cplusplus
extern "C" {
#endif
GWEN_LIST2_FUNCTION_LIB_DEFS(LC_GELDKARTE_VALUES, LC_GeldKarte_Values, CHIPCARD_API)
/** Destroys all objects stored in the given LIST2 and the list itself
*/
CHIPCARD_API void LC_GeldKarte_Values_List2_freeAll(LC_GELDKARTE_VALUES_LIST2 *stl);
/** Creates a new object.
*/
CHIPCARD_API LC_GELDKARTE_VALUES *LC_GeldKarte_Values_new();
/** Creates an object from the data in the given GWEN_DB_NODE
*/
CHIPCARD_API LC_GELDKARTE_VALUES *LC_GeldKarte_Values_fromDb(GWEN_DB_NODE *db);
/** Creates and returns a deep copy of thegiven object.
*/
CHIPCARD_API LC_GELDKARTE_VALUES *LC_GeldKarte_Values_dup(const LC_GELDKARTE_VALUES*st);
/** Destroys the given object.
*/
CHIPCARD_API void LC_GeldKarte_Values_free(LC_GELDKARTE_VALUES *st);
/** Increments the usage counter of the given object, so an additional free() is needed to destroy the object.
*/
CHIPCARD_API void LC_GeldKarte_Values_Attach(LC_GELDKARTE_VALUES *st);
/** Reads data from a GWEN_DB.
*/
CHIPCARD_API int LC_GeldKarte_Values_ReadDb(LC_GELDKARTE_VALUES *st, GWEN_DB_NODE *db);
/** Stores an object in the given GWEN_DB_NODE
*/
CHIPCARD_API int LC_GeldKarte_Values_toDb(const LC_GELDKARTE_VALUES*st, GWEN_DB_NODE *db);
/** Returns 0 if this object has not been modified, !=0 otherwise
*/
CHIPCARD_API int LC_GeldKarte_Values_IsModified(const LC_GELDKARTE_VALUES *st);
/** Sets the modified state of the given object
*/
CHIPCARD_API void LC_GeldKarte_Values_SetModified(LC_GELDKARTE_VALUES *st, int i);
/**
* Returns the property @ref LC_GELDKARTE_VALUES_Loaded
*/
CHIPCARD_API int LC_GeldKarte_Values_GetLoaded(const LC_GELDKARTE_VALUES *el);
/**
* Set the property @ref LC_GELDKARTE_VALUES_Loaded
*/
CHIPCARD_API void LC_GeldKarte_Values_SetLoaded(LC_GELDKARTE_VALUES *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_VALUES_MaxLoad
*/
CHIPCARD_API int LC_GeldKarte_Values_GetMaxLoad(const LC_GELDKARTE_VALUES *el);
/**
* Set the property @ref LC_GELDKARTE_VALUES_MaxLoad
*/
CHIPCARD_API void LC_GeldKarte_Values_SetMaxLoad(LC_GELDKARTE_VALUES *el, int d);
/**
* Returns the property @ref LC_GELDKARTE_VALUES_MaxXfer
*/
CHIPCARD_API int LC_GeldKarte_Values_GetMaxXfer(const LC_GELDKARTE_VALUES *el);
/**
* Set the property @ref LC_GELDKARTE_VALUES_MaxXfer
*/
CHIPCARD_API void LC_GeldKarte_Values_SetMaxXfer(LC_GELDKARTE_VALUES *el, int d);
#ifdef __cplusplus
} /* __cplusplus */
#endif
#endif /* GELDKARTE_VALUES_H */
libchipcard-5.0.4/src/lib/client/cards/geldkarte/geldkarte_values_l.h 0000644 0001750 0001750 00000000762 12364015630 022570 0000000 0000000 /* This file is auto-generated from "geldkarte_values.xml" by the typemaker
tool of Gwenhywfar.
Do not edit this file -- all changes will be lost! */
#ifndef GELDKARTE_VALUES_L_H
#define GELDKARTE_VALUES_L_H
/** @page P_LC_GELDKARTE_VALUES_LIB LC_GeldKarte_Values (lib)
This page describes the properties of LC_GELDKARTE_VALUES
*/
#include "geldkarte_values.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* __cplusplus */
#endif
#endif /* GELDKARTE_VALUES_L_H */
libchipcard-5.0.4/src/lib/client/cards/geldkarte/geldkarte_blog.c 0000644 0001750 0001750 00000015245 12364015630 021676 0000000 0000000 /* This file is auto-generated from "geldkarte_blog.xml" by the typemaker
tool of Gwenhywfar.
Do not edit this file -- all changes will be lost! */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "geldkarte_blog_p.h"
#include
#include