summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/file.h
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-12-29 17:59:09 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-12-29 17:59:09 +0000
commit6c4053031259f10fa0060a0e39acee631e2ec026 (patch)
tree66ba65b8cf26b209e036989b3a86d0acfa0675be /usr.bin/aucat/file.h
parent82b6a7781a258d770c4104783c04017b0acc5eeb (diff)
make the code "more correct": add reference counters to aproc
structures so we can keep a pointer to the device. Beside some simplifications, this allows to easily handle the situation where the audio device desappears. No change in the behaviour.
Diffstat (limited to 'usr.bin/aucat/file.h')
-rw-r--r--usr.bin/aucat/file.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/aucat/file.h b/usr.bin/aucat/file.h
index b800636a8cb..7fd9bad184e 100644
--- a/usr.bin/aucat/file.h
+++ b/usr.bin/aucat/file.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.h,v 1.4 2008/10/26 08:49:44 ratchov Exp $ */
+/* $OpenBSD: file.h,v 1.5 2008/12/29 17:59:08 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -71,5 +71,6 @@ unsigned file_write(struct file *, unsigned char *, unsigned);
int file_poll(void);
void file_eof(struct file *);
void file_hup(struct file *);
+void file_close(struct file *);
#endif /* !defined(FILE_H) */