diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2010-05-21 05:21:18 -0400 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2010-05-25 07:17:03 -0400 |
commit | d01318f336b345e7727a711a98eda59cf9d3ba8f (patch) | |
tree | 43d4819165443978f158144edca7bee813a4730e | |
parent | 7859f181ab1f7289e582b8c2256d12d0f169118d (diff) |
python: no default constructors/destructors for records
Since there is no way we can generate valid
records from python, there's no point in
allowing swig to generate a constructor and
destructor. This should probably be done to
more of the structs too.
Acked-by: Darren Hart <dvhltc@us.ibm.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
-rw-r--r-- | ctracecmd.i | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ctracecmd.i b/ctracecmd.i index efd5629..ea62772 100644 --- a/ctracecmd.i +++ b/ctracecmd.i | |||
@@ -3,6 +3,9 @@ | |||
3 | %include "typemaps.i" | 3 | %include "typemaps.i" |
4 | %include "constraints.i" | 4 | %include "constraints.i" |
5 | 5 | ||
6 | %nodefaultctor record; | ||
7 | %nodefaultdtor record; | ||
8 | |||
6 | %apply Pointer NONNULL { struct tracecmd_input *handle }; | 9 | %apply Pointer NONNULL { struct tracecmd_input *handle }; |
7 | %apply Pointer NONNULL { struct pevent *pevent }; | 10 | %apply Pointer NONNULL { struct pevent *pevent }; |
8 | %apply Pointer NONNULL { struct format_field * }; | 11 | %apply Pointer NONNULL { struct format_field * }; |