From 0fb94f62e96dc08f14c666ed53e36b0a767fb334 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 27 Apr 2001 20:33:36 +0000 Subject: [PATCH] put back comedi_get_max_buffer_size --- lib/buffer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/buffer.c b/lib/buffer.c index 8b0e2f9..04e80cb 100644 --- a/lib/buffer.c +++ b/lib/buffer.c @@ -16,7 +16,7 @@ int comedi_set_buffer_size(comedi_t *it, unsigned int subdev, unsigned int size) return bc.size; } -int comedi_set_buffer_max_size(comedi_t *it, unsigned int subdev, unsigned int max_size) +int comedi_set_max_buffer_size(comedi_t *it, unsigned int subdev, unsigned int max_size) { int ret; comedi_bufconfig bc; @@ -30,6 +30,11 @@ int comedi_set_buffer_max_size(comedi_t *it, unsigned int subdev, unsigned int m return bc.maximum_size; } +int comedi_get_max_buffer_size(comedi_t *it, unsigned int subdevice) +{ + return comedi_set_max_buffer_size(it, subdevice, 0); +} + int comedi_get_buffer_size(comedi_t *it, unsigned int subdev) { return comedi_set_buffer_size(it, subdev, 0); -- 2.26.2