From: poptsov.artyom@gmail.com (Artyom V. Poptsov)
To: Guile Users' Mailing List <guile-user@gnu.org>
Subject: [ANN] Guile-Udev 0.2.0 released
Date: Sun, 11 Apr 2021 18:48:28 +0300 [thread overview]
Message-ID: <87o8ekesab.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2010 bytes --]
Hello Guilers,
I'm pleased to announce Guile-Udev 0.2.0:
https://github.com/artyom-poptsov/guile-udev/releases/tag/v0.2.0
This is the first version of Guile-Udev.
See the full list of the user-visible changes below.
* What is Guile-Udev?
Guile-Udev is a GNU Guile library that provides bindings to libudev[1]
library.
The library comes with Info documentation and usage examples.
* User-visible changes
--8<---------------cut here---------------start------------->8---
* Changes in version 0.2.0 (2021-04-11)
** Changes in (udev monitor)
*** Allow to specify 'select' timeout
The module now provides 'udev-monitor-set-timeout!' procedure that allows
to specify timeout for calls to 'select'.
*** New procedure 'make-udev-monitor'
The module now provides two procedures for creating udev monitors:
low-level '%make-udev-monitor' and high-level 'make-udev-monitor' procedure
that allows to specify monitor parameters by means of keywords.
*** New procedure 'udev-monitor-set-error-callback!'
This procedure allows to set a callback that will be called on errors when
scanner is started.
*** 'make-udev-monitor' now allows to set an error callback
This callback will be called on errors during device scanning. It defaults
to a procedure that prints error messages to stderr.
--8<---------------cut here---------------end--------------->8---
* Usage examples
There is an example named 'examples/device-listener.scm'. It listens to
USB events and prints device paths from events to the stdout.
Also the library is used as a foundation for a USB flash auto-mounter
daemon that I've written for one of my jobs:
https://gitlab.com/gkaz/mst/-/blob/master/mstd/mstd
Happy hacking!
- Artyom
References:
1: https://en.wikipedia.org/wiki/Udev
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
reply other threads:[~2021-04-11 15:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o8ekesab.fsf@gmail.com \
--to=poptsov.artyom@gmail.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).