2 * SPDX-License-Identifier: MIT
4 * Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
8 /* Output argument typemap for clock value output (always appends) */
9 %typemap(in, numinputs=0)
10 (const bt_clock_snapshot **)
11 (bt_clock_snapshot *temp_clock_snapshot = NULL) {
12 $1 = &temp_clock_snapshot;
16 (const bt_clock_snapshot **) {
18 /* SWIG_Python_AppendOutput() steals the created object */
19 $result = SWIG_Python_AppendOutput($result,
20 SWIG_NewPointerObj(SWIG_as_voidptr(*$1),
21 SWIGTYPE_p_bt_clock_snapshot, 0));
23 /* SWIG_Python_AppendOutput() steals Py_None */
25 $result = SWIG_Python_AppendOutput($result, Py_None);
29 %include <babeltrace2/graph/message.h>