| 1 | /* |
| 2 | * SPDX-License-Identifier: MIT |
| 3 | * |
| 4 | * Copyright (c) 2016 Philippe Proulx <pproulx@efficios.com> |
| 5 | */ |
| 6 | |
| 7 | /* Output argument typemap for initialized event class log level output |
| 8 | * parameter (always appends). |
| 9 | */ |
| 10 | %typemap(in, numinputs=0) |
| 11 | (bt_event_class_log_level *) |
| 12 | (bt_event_class_log_level temp = -1) { |
| 13 | $1 = &temp; |
| 14 | } |
| 15 | |
| 16 | %typemap(argout) bt_event_class_log_level * { |
| 17 | /* SWIG_Python_AppendOutput() steals the created object */ |
| 18 | $result = SWIG_Python_AppendOutput($result, SWIG_From_int(*$1)); |
| 19 | } |
| 20 | |
| 21 | %include <babeltrace2/trace-ir/event-class.h> |