Python bindings: Cosmetics.

This commit is contained in:
Uwe Hermann 2013-04-16 00:57:00 +02:00
parent 7aafb89274
commit 8dc93c841f
2 changed files with 21 additions and 20 deletions

View File

@ -1,20 +1,21 @@
# ##
# This file is part of the sigrok project. ## This file is part of the sigrok project.
# ##
# Copyright (C) 2013 Martin Ling <martin-sigrok@earth.li> ## Copyright (C) 2013 Martin Ling <martin-sigrok@earth.li>
# ##
# This program is free software: you can redistribute it and/or modify ## This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by ## it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or ## the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. ## (at your option) any later version.
# ##
# This program is distributed in the hope that it will be useful, ## This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of ## but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. ## GNU General Public License for more details.
# ##
# You should have received a copy of the GNU General Public License ## You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. ## along with this program. If not, see <http://www.gnu.org/licenses/>.
##
from distutils.core import setup, Extension from distutils.core import setup, Extension
import subprocess import subprocess

View File

@ -25,14 +25,14 @@
#include "libsigrok/libsigrok.h" #include "libsigrok/libsigrok.h"
%} %}
typedef void * gpointer; typedef void *gpointer;
typedef struct _GSList GSList; typedef struct _GSList GSList;
struct _GSList struct _GSList
{ {
gpointer data; gpointer data;
GSList *next; GSList *next;
}; };
void g_slist_free(GSList *list); void g_slist_free(GSList *list);