File: _bind_defs.pxd

package info (click to toggle)
python-pcl 0.3.0~rc1%2Bdfsg-14
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 31,828 kB
  • sloc: python: 3,094; cpp: 283; makefile: 181; sh: 24; ansic: 12
file content (22 lines) | stat: -rw-r--r-- 560 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#-*- coding: utf-8 -*-
# cimport pcl_defs as cpp

cdef extern from "boost/function.hpp" namespace "boost":
  cdef cppclass function[T]:
    pass

cdef extern from "boost/bind.hpp" namespace "boost":
  cdef struct arg:
    pass
  cdef function[T] bind[T](T callback, arg _1)

cdef extern from "boost/signals2.hpp" namespace "boost::signals2":
  cdef cppclass connection:
    pass

# 
ctypedef void callback_t(void*)
# ctypedef void callback2_t(cpp.PointCloud_Ptr_t)

cdef extern from "bind.h":
  cdef connection register_callback(function[callback_t] callback)