2 * SPDX-License-Identifier: MIT
4 * Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
8 * Typemap for the user data attached to (and owned by) a self component port.
9 * The pointer saved as the port's user data is directly the PyObject *.
11 * As per the CPython calling convention, we need to return a new reference to
12 * the returned object, which will be transferred to the caller.
15 %typemap(out) void * {
20 %include <babeltrace2/graph/port.h>
21 %include <babeltrace2/graph/self-component-port.h>
24 * Clear this typemap, since it is a bit broad and could apply to something we