File: grabber_callback.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 (14 lines) | stat: -rw-r--r-- 539 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- coding: utf-8 -*-
# cimport pcl_defs as cpp
from libcpp cimport bool

ctypedef double (*Method)(void *param, void *user_data)

cdef extern from "grabber_callback.h" namespace "grabber_callback":
    cdef cppclass PyLibCallBack:
        PyLibCallBack(Method method, void *user_data)
        double cy_execute(void *parameter)

# The pattern/converter method to be used for translating C typed prototype to a Python object call
cdef inline double callback(void *parameter, void *method):
    return (<object>method)(<object>parameter)