1 /* capngswig.i -- 2 * Copyright 2009 Red Hat Inc. 3 * All Rights Reserved. 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public License 16 * along with this program; see the file COPYING. If not, write to the 17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor 18 * Boston, MA 02110-1335, USA. 19 * 20 * Authors: 21 * Steve Grubb <[email protected]> 22 */ 23 24 %module capng 25 %{ 26 #include "./capng.h" 27 %} 28 29 #if defined(SWIGPYTHON) 30 31 %varargs(16, signed capability = 0) capng_updatev; 32 33 #endif 34 35 %define __signed__ 36 signed 37 %enddef 38 #define __attribute(X) /*nothing*/ 39 typedef unsigned __u32; 40 #define __extension__ /*nothing*/ 41 %include "./caps.h" 42 %include "./capng.h" 43 44