* THE SOFTWARE.
*/
+
+/* Output argument typemap for clock value output (always appends) */
+%typemap(in, numinputs=0)
+ (const bt_clock_snapshot **BTOUTCLOCKSNAPSHOT)
+ (bt_clock_snapshot *temp_clock_snapshot = NULL) {
+ $1 = &temp_clock_snapshot;
+}
+
+%typemap(argout)
+ (const bt_clock_snapshot **BTOUTCLOCKSNAPSHOT) {
+ if (*$1) {
+ /* SWIG_Python_AppendOutput() steals the created object */
+ $result = SWIG_Python_AppendOutput($result,
+ SWIG_NewPointerObj(SWIG_as_voidptr(*$1),
+ SWIGTYPE_p_bt_clock_snapshot, 0));
+ } else {
+ /* SWIG_Python_AppendOutput() steals Py_None */
+ Py_INCREF(Py_None);
+ $result = SWIG_Python_AppendOutput($result, Py_None);
+ }
+}
+
/* From message-const.h */
typedef enum bt_message_type {
/* From message-discarded-events-const.h */
extern const bt_clock_snapshot *
-bt_message_discarded_events_borrow_default_beginning_clock_snapshot_const(
+bt_message_discarded_events_borrow_beginning_default_clock_snapshot_const(
const bt_message *msg);
extern const bt_clock_snapshot *
-bt_message_discarded_events_borrow_default_end_clock_snapshot_const(
+bt_message_discarded_events_borrow_end_default_clock_snapshot_const(
const bt_message *msg);
extern const bt_clock_class *
/* From message-discarded-packets-const.h */
extern const bt_clock_snapshot *
-bt_message_discarded_packets_borrow_default_beginning_clock_snapshot_const(
+bt_message_discarded_packets_borrow_beginning_default_clock_snapshot_const(
const bt_message *msg);
extern const bt_clock_snapshot *
-bt_message_discarded_packets_borrow_default_end_clock_snapshot_const(
+bt_message_discarded_packets_borrow_end_default_clock_snapshot_const(
const bt_message *msg);
extern const bt_clock_class *