diff options
author | Josh Blum | 2013-04-28 13:34:00 -0700 |
---|---|---|
committer | Josh Blum | 2013-04-28 13:34:00 -0700 |
commit | f3c127cf6f650e9c5a655b6cb6ce75c2d39abbb4 (patch) | |
tree | ae5f88d51c56fdefb78c4d774faffd4b387f51a3 /python | |
parent | 1a2d4cc189a0eae13ac8a7047327540b126f9267 (diff) | |
parent | ce75954a02b6ba386cb9677c9e492af9b8de328a (diff) | |
download | sandhi-f3c127cf6f650e9c5a655b6cb6ce75c2d39abbb4.tar.gz sandhi-f3c127cf6f650e9c5a655b6cb6ce75c2d39abbb4.tar.bz2 sandhi-f3c127cf6f650e9c5a655b6cb6ce75c2d39abbb4.zip |
Merge branch 'master' into theron6_work
Diffstat (limited to 'python')
-rw-r--r-- | python/gras/GRAS_Tags.i | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/python/gras/GRAS_Tags.i b/python/gras/GRAS_Tags.i index c2c640e..84cbbe3 100644 --- a/python/gras/GRAS_Tags.i +++ b/python/gras/GRAS_Tags.i @@ -10,27 +10,8 @@ DECL_PMC_SWIG_TYPE(gras::StreamTag, swig_stream_tag) DECL_PMC_SWIG_TYPE(gras::PacketMsg, swig_packet_msg) %pythoncode %{ - -from GRAS_SBuffer import SBuffer - -RegisterPy2PMC( - is_py = lambda x: isinstance(x, StreamTag), - py2pmc = swig_stream_tag_to_pmc, -) - -RegisterPMC2Py( - is_pmc = pmc_is_swig_stream_tag, - pmc2py = pmc_to_swig_stream_tag, -) - -RegisterPy2PMC( - is_py = lambda x: isinstance(x, PacketMsg), - py2pmc = swig_packet_msg_to_pmc, -) - -RegisterPMC2Py( - is_pmc = pmc_is_swig_packet_msg, - pmc2py = pmc_to_swig_packet_msg, -) - +from GRAS_Tags import StreamTag, PacketMsg %} + +REG_PMC_SWIG_TYPE(swig_stream_tag, StreamTag) +REG_PMC_SWIG_TYPE(swig_packet_msg, PacketMsg) |