command: Fix except declaration for get_comedi_cmd_pointer
[pycomedi.git] / pycomedi / device.pxd
1 # Copyright (C) 2011-2012 W. Trevor King <wking@tremily.us>
2 #
3 # This file is part of pycomedi.
4 #
5 # pycomedi is free software: you can redistribute it and/or modify it under the
6 # terms of the GNU General Public License as published by the Free Software
7 # Foundation, either version 2 of the License, or (at your option) any later
8 # version.
9 #
10 # pycomedi is distributed in the hope that it will be useful, but WITHOUT ANY
11 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License along with
15 # pycomedi.  If not, see <http://www.gnu.org/licenses/>.
16
17 "Expose `Device` internals at the C level for other Cython modules"
18
19 from pycomedi cimport _comedilib_h
20 from pycomedi.device_holder cimport DeviceHolder as _DeviceHolder
21 from pycomedi cimport instruction as _instruction
22
23
24 cdef class Device (_DeviceHolder):
25     cdef public object file
26     cdef public object filename
27
28     cpdef do_insnlist(self, insnlist)
29     cpdef do_insn(self, _instruction.Insn insn)