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