* [Qemu-devel] libcacard: cac_is_cac_card?
@ 2015-04-27 6:56 Michael Tokarev
2015-07-13 12:45 ` Michael Tokarev
0 siblings, 1 reply; 5+ messages in thread
From: Michael Tokarev @ 2015-04-27 6:56 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] libcacard: cac_is_cac_card?
2015-04-27 6:56 [Qemu-devel] libcacard: cac_is_cac_card? Michael Tokarev
@ 2015-07-13 12:45 ` Michael Tokarev
2015-07-13 14:31 ` Paolo Bonzini
0 siblings, 1 reply; 5+ messages in thread
From: Michael Tokarev @ 2015-07-13 12:45 UTC (permalink / raw)
To: qemu-devel
Ping?
27.04.2015 09:56, Michael Tokarev wrote:
> 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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] libcacard: cac_is_cac_card?
2015-07-13 12:45 ` Michael Tokarev
@ 2015-07-13 14:31 ` Paolo Bonzini
2015-07-13 14:38 ` Michael Tokarev
0 siblings, 1 reply; 5+ messages in thread
From: Paolo Bonzini @ 2015-07-13 14:31 UTC (permalink / raw)
To: Michael Tokarev, qemu-devel
On 13/07/2015 14:45, Michael Tokarev wrote:
> Ping?
>
> 27.04.2015 09:56, Michael Tokarev wrote:
>> 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?
If it's not defined, its mention in libcacard.syms has no effect and the
references can be removed.
Paolo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] libcacard: cac_is_cac_card?
2015-07-13 14:31 ` Paolo Bonzini
@ 2015-07-13 14:38 ` Michael Tokarev
2015-07-13 14:39 ` Paolo Bonzini
0 siblings, 1 reply; 5+ messages in thread
From: Michael Tokarev @ 2015-07-13 14:38 UTC (permalink / raw)
To: Paolo Bonzini, qemu-devel
13.07.2015 17:31, Paolo Bonzini wrote:
>>> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] libcacard: cac_is_cac_card?
2015-07-13 14:38 ` Michael Tokarev
@ 2015-07-13 14:39 ` Paolo Bonzini
0 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2015-07-13 14:39 UTC (permalink / raw)
To: Michael Tokarev, qemu-devel
On 13/07/2015 16:38, Michael Tokarev wrote:
>> > 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
> But okay, I'll just remove it from the .syms file.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-07-13 14:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-27 6:56 [Qemu-devel] libcacard: cac_is_cac_card? Michael Tokarev
2015-07-13 12:45 ` Michael Tokarev
2015-07-13 14:31 ` Paolo Bonzini
2015-07-13 14:38 ` Michael Tokarev
2015-07-13 14:39 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).