GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DC_SERIAL_ITERATOR_NEW(3) FreeBSD Library Functions Manual DC_SERIAL_ITERATOR_NEW(3)

dc_serial_iterator_newCreate an iterator to enumerate the serial devices.

library “libdivecomputer”

#include <libdivecomputer/serial.h>

dc_status_t
dc_serial_iterator_new(dc_iterator_t **iterator, dc_context_t *context, dc_descriptor_t *descriptor);

Iterates through the available serial devices matching the given descriptor. Accepts a context opened with dc_context_new(3) and a descriptor usually found by searching through dc_descriptor_iterator(3).

On returning DC_STATUS_SUCCESS the iterator will be set to an dc_iterator_t which can be used to iterate the available serial devices using dc_iterator_next(3).

The value type of the iterator is of type dc_serial_device_t. This value can be used in functions to extract information about this specific serial device, namely dc_serial_device_get_name(3) When done the serial device needs to be freed with dc_serial_device_free(3).

After iterating the iterator needs to be freed using dc_iterator_free(3).

Returns DC_STATUS_SUCCESS on success, or another dc_status_t code on failure.

On DC_STATUS_SUCCESS the returned iterator needs to be freed when done using dc_iterator_free(3).

dc_context_new(3), dc_usbhid_iterator_new(3), dc_irda_iterator_new(3), dc_bluetooth_iterator_new(3), dc_serial_device_get_name(3), dc_serial_device_free(3).

The library “libdivecomputer” library was written by Jef Driesen, jef@libdivecomputer.org.
This manpage is written by
Vincent Hagen, vinnie@script4web.nl.

June 5, 2020 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.