DC_BLUETOOTH_OPEN(3)

πŸ“¦ version 0.9.0, in nixos 26.05, nixpkgs unstable

πŸ’– DC_BLUETOOTH_OPEN(3) πŸ’–

okay so this is a page from the Library Functions Manual, bestie, and it's literally all about opening a bluetooth iostream for a dive computer. yes, that libdivecomputer. slay.


✨ NAME ✨

dc_bluetooth_open β€” opens an iostream for a bluetooth device πŸ¦‹


πŸ“š LIBRARY πŸ“š

library β€œlibdivecomputer”


πŸŽ€ SYNOPSIS πŸŽ€

#include <libdivecomputer/bluetooth.h>

dc_status_t
dc_bluetooth_open(dc_iostream_t **iostream, dc_context_t *context,
    dc_bluetooth_address_t address, unsigned int port);

πŸ’… DESCRIPTION πŸ’…

So what it does: it opens an iostream for a bluetooth device. that's the whole vibe. πŸ‘‘

What it wants from you:

🚨 okay this part matters: once it returns DC_STATUS_SUCCESS, that iostream pointer must be freed with dc_iostream_close(3). like, must must. don't leave it hanging, that's not main character energy, that's a leak 😭

⭐ RETURN VALUES ⭐

Returns DC_STATUS_SUCCESS on success, or one of several error values on error. and on success, the iostream pointer gets filled in with an open handle β€” icon status honestly ✨


🌈 SEE ALSO 🌈


πŸ‘‘ AUTHORS πŸ‘‘

The library β€œlibdivecomputer” library was written by Jef Driesen, jef@libdivecomputer.org. πŸ’œ

This manpage is written by Vincent Hagen, vinnie@script4web.nl. πŸŽ€


and that's the whole page, bestie β€” Debian, June 5, 2020, that's the source and date, we're done here πŸ’–βœ¨πŸ“

πŸ“¦ where this page comes from