From: Frank Mori Hess Date: Fri, 27 Apr 2001 20:33:36 +0000 (+0000) Subject: put back comedi_get_max_buffer_size X-Git-Tag: r0_7_16~101 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0fb94f62e96dc08f14c666ed53e36b0a767fb334;p=comedilib.git put back comedi_get_max_buffer_size --- 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);