FIDO_BIO_INFO_NEW(3)

πŸ“¦
version 1.17.0 Β· 2 versions
  • 1.17.0 Β· alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.10.0 Β· ubuntu jammy
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– FIDO_BIO_INFO_NEW πŸ’–

okay bestie, pull up a chair, we're doing library functions manual today and honestly? it's giving ✨biometric sensor lore✨. this is the fido_bio_info_new(3) page from libfido2, and it's the whole FIDO2 biometric sensor information API β€” new, free, type, max_samples, the whole girl group. no cap.


✨ NAME ✨

fido_bio_info_new, fido_bio_info_free, fido_bio_info_type, fido_bio_info_max_samples β€” FIDO2 biometric sensor information API

like. four functions. one vibe. let's go πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <fido.h>
#include <fido/bio.h>

fido_bio_info_t *
fido_bio_info_new(void);

void
fido_bio_info_free(fido_bio_info_t **info_p);

uint8_t
fido_bio_info_type(const fido_bio_info_t *info);

uint8_t
fido_bio_info_max_samples(const fido_bio_info_t *info);

look at those includes. two headers. iconic. πŸ¦‹


🌸 DESCRIPTION 🌸

So. Biometric sensor metadata? In libfido2, all of that is abstracted into the fido_bio_info_t type. That's the main character of this page, fr fr.

The functions described here let a fido_bio_info_t be allocated, deallocated, and inspected. That's the whole arc β€” birth, death, and a little self-reflection. 🫢

heads up tho β€” if you actually wanna do device operations on a fido_bio_info_t, that's a different page, bestie. go read fido_bio_dev_get_info(3). iykyk.

πŸ’– fido_bio_info_new() πŸ’–

Returns a pointer to a newly allocated, empty fido_bio_info_t type. brand new. fresh out the box. no thoughts, head empty, just vibes ✨

but β€” if memory cannot be allocated, NULL is returned. no info for you. 😭

πŸŽ€ fido_bio_info_free() πŸŽ€

Releases the memory backing *info_p. and *info_p must have been previously allocated by fido_bio_info_new(). we do not free strangers here, that's not the energy. πŸ’€

On return, *info_p is set to NULL. clean. tidy. closure. 🧚

And listen β€” either info_p or *info_p may be NULL, in which case fido_bio_info_free() is a NOP. literally does nothing. no crash, no drama, just a chill little no-op. we love a low-stakes queen. πŸ‘‘


🌈 fido_bio_info_type() 🌈

Returns the fingerprint sensor type. and the values are:

  • 1 β€” for touch sensors
  • 2 β€” for swipe sensors

that's it. that's the whole scale. touch girlies and swipe girlies, no in between. πŸ’…


⭐ fido_bio_info_max_samples() ⭐

Returns the maximum number of successful samples required for enrollment.

translation: how many good finger reads the sensor wants before it'll commit to remembering you. it's a whole situationship but make it biometrics. πŸ”₯


πŸ¦‹ SEE ALSO πŸ¦‹

go read them. seriously. they're the rest of the friend group and they ate. πŸ’œ


and that's the page, bestie!! 🌸 this lil manual came to you from Debian, dated September 13, 2019 β€” yeah she's a vintage queen but she still serves ✨ mwah, go touch (or swipe) some grass πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from