| 1 | #include "EXTERN.h" | ||
| 2 | #include "perl.h" | ||
| 3 | #include "XSUB.h" | ||
| 4 | #include "ppport.h" | ||
| 5 | |||
| 6 | #include "srl_common.h" | ||
| 7 | #include "srl_splitter.h" | ||
| 8 | #include "srl_protocol.h" | ||
| 9 | |||
| 10 | |||
| 11 | #include "const-c.inc" | ||
| 12 | |||
| 13 | typedef srl_splitter_t * Sereal__Splitter; | ||
| 14 | |||
| 15 | MODULE = Sereal::Splitter PACKAGE = Sereal::Splitter | ||
| 16 | PROTOTYPES: DISABLE | ||
| 17 | |||
| 18 | Sereal::Splitter | ||
| 19 | new_xs(CLASS, opt) | ||
| 20 | HV *opt; | ||
| 21 | CODE: | ||
| 22 | 0 | RETVAL = srl_build_splitter_struct(aTHX_ opt); | |
| 23 | OUTPUT: RETVAL | ||
| 24 | |||
| 25 | void | ||
| 26 | DESTROY(splitter) | ||
| 27 | Sereal::Splitter splitter; | ||
| 28 | PPCODE: | ||
| 29 | 0 | srl_destroy_splitter(aTHX_ splitter); | |
| 30 | |||
| 31 | SV* | ||
| 32 | next_chunk(splitter) | ||
| 33 | Sereal::Splitter splitter; | ||
| 34 | CODE: | ||
| 35 | 0 | RETVAL = srl_splitter_next_chunk(aTHX_ splitter); | |
| 36 | OUTPUT: RETVAL | ||
| 37 | |||
| 38 | |||
| 39 | |||
| 40 | MODULE = Sereal::Splitter PACKAGE = Sereal::Splitter::Constants | ||
| 41 | PROTOTYPES: DISABLE | ||
| 42 | |||
| 43 | INCLUDE: const-xs.inc | ||
| 44 |