libcacard: cac_is_cac_card?
This function is declared in libcacard/cac.h
VCardStatus cac_is_cac_card(VReader *reader);
it is referenced in a ifdef-ed out code in libcacard/vcard_emul_type.c:
VCardEmulType vcard_emul_type_select(VReader *vreader) {
#ifdef notdef
/* since there is only one emulator no need to call this function */
if (cac_is_cac_card(vreader) == VCARD_DONE) {
return VCARD_EMUL_CAC;
}
#endif
/* return the default */
return VCARD_EMUL_CAC;
}and it is mentioned in libcacard/libcacard.syms.
But it is not defined anywhere. Should it be removed from all places it is referenced at, or should it be implemented instead?
Thanks,
/mjt
Ping?
Quoted 29 lines · Michael Tokarev
This function is declared in
libcacard/cac.hVCardStatus
cac_is_cac_card(VReader *reader);it is referenced in a ifdef-ed out code in
libcacard/vcard_emul_type.c:VCardEmulType
vcard_emul_type_select(VReader *vreader){#ifdef notdef /* since there is only one emulator no need to call this function */ if (cac_is_cac_card(vreader) == VCARD_DONE) { return VCARD_EMUL_CAC; } #endif /* return the default */ return VCARD_EMUL_CAC; }and it is mentioned in libcacard/libcacard.syms.
But it is not defined anywhere. Should it be removed from all places it is referenced at, or should it be implemented instead?
Thanks,
/mjt
Quoted 27 lines · Michael Tokarev
Ping?
Quoted 24 lines · Michael Tokarev
This function is declared in
libcacard/cac.hVCardStatus
cac_is_cac_card(VReader *reader);it is referenced in a ifdef-ed out code in
libcacard/vcard_emul_type.c:VCardEmulType
vcard_emul_type_select(VReader *vreader){#ifdef notdef /* since there is only one emulator no need to call this function */ if (cac_is_cac_card(vreader) == VCARD_DONE) { return VCARD_EMUL_CAC; } #endif /* return the default */ return VCARD_EMUL_CAC; }and it is mentioned in libcacard/libcacard.syms.
But it is not defined anywhere. Should it be removed from all places it is referenced at, or should it be implemented instead?
If it's not defined, its mention in libcacard.syms has no effect and the references can be removed.
Paolo
Quoted 6 lines · Paolo Bonzini
Quoted 3 lines
Quoted 3 lines
and it is mentioned in libcacard/libcacard.syms.
But it is not defined anywhere.
If it's not defined, its mention in libcacard.syms has no effect and the references can be removed.
That's two statements. First statement - its mention in .syms has no effect - is a bit wrong. I found it _because_ this mention has some effect. In particular, when building it on Debian the package system complains that it can't find the symbol to be exported.
But okay, I'll just remove it from the .syms file.
Thanks,
/mjt
Quoted 6 lines · Michael Tokarev
Quoted 2 lines
Quoted 2 lines
If it's not defined, its mention in libcacard.syms has no effect and the references can be removed.
That's two statements. First statement - its mention in .syms has no effect - is a bit wrong. I found it _because_ this mention has some effect. In particular, when building it on Debian the package system complains that it can't find the symbol to be exported.
Oh, interesting. It has no effect *on the ABI*, though, right?
Paolo
Quoted 1 line
But okay, I'll just remove it from the .syms file.