summaryrefslogtreecommitdiff
path: root/python/gras/GRAS_SBuffer.i
blob: a26e3b0f1a42c7dfe87b1c822ef98ae69b9becb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) by Josh Blum. See LICENSE.txt for licensing information.

%include <gras/sbuffer.i>

%include <PMC/PMC.i>

DECL_PMC_SWIG_TYPE(gras::SBuffer, swig_sbuffer)

%pythoncode %{

RegisterPy2PMC(
    is_py = lambda x: isinstance(x, SBuffer),
    py2pmc = swig_sbuffer_to_pmc,
)

RegisterPMC2Py(
    is_pmc = pmc_is_swig_sbuffer,
    pmc2py = pmc_to_swig_sbuffer,
)

%}