X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=extras%2Fbindings%2Fswig%2Fpython%2Flttng.i.in;h=684482e1fd2c06605e64ad2cc91e10f55887847f;hp=f4aee119129f442d393477208694b4c2b882f7cd;hb=862e39082c67c68876493ae73845db5be521fb75;hpb=a593ba5a7ae3cd0598ac2ef83081342cbcae668c diff --git a/extras/bindings/swig/python/lttng.i.in b/extras/bindings/swig/python/lttng.i.in index f4aee1191..684482e1f 100644 --- a/extras/bindings/swig/python/lttng.i.in +++ b/extras/bindings/swig/python/lttng.i.in @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2012 Danny Serres + * + * SPDX-License-Identifier: GPL-2.0-only + * + */ + %define DOCSTRING "LTTNG_VERSION_STR @@ -22,6 +29,14 @@ multiple concurrent processes and threads. Tracing across multiple systems is al // This makes the typemap code useable with both Python 2 and 3. #define PyInt_AsSsize_t PyLong_AsSsize_t #endif + +// Avoid -Wmissing-declarations warning. +PyObject *SWIG_init(void); + +// Avoid -Wmissing-prototypes warning with SWIG 3.0.10. +#if SWIG_VERSION < 0x30012 +static size_t SWIG_strnlen(const char* s, size_t maxlen); +#endif %} typedef unsigned int uint32_t;