put back comedi_get_max_buffer_size
This commit is contained in:
parent
3465d320ac
commit
0fb94f62e9
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue