From: Uwe Hermann Date: Wed, 30 Jan 2013 16:04:44 +0000 (+0100) Subject: new-driver: *.c: Only #include protocol.h. X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=commitdiff_plain;h=5c100b148be923f92c383b9fb233dfb4ba3b790e;ds=inline new-driver: *.c: Only #include protocol.h. Since both api.c and protocol.c need to include protocol.h anyway, we can consistently keep all #includes in protocol.h. --- diff --git a/source/drv-api.c b/source/drv-api.c index 536c858..df3e3ec 100644 --- a/source/drv-api.c +++ b/source/drv-api.c @@ -17,9 +17,6 @@ * along with this program. If not, see . */ -#include -#include "libsigrok.h" -#include "libsigrok-internal.h" #include "protocol.h" SR_PRIV struct sr_dev_driver ${lib}_driver_info; diff --git a/source/drv-protocol.c b/source/drv-protocol.c index bc23503..75ab353 100644 --- a/source/drv-protocol.c +++ b/source/drv-protocol.c @@ -17,10 +17,6 @@ * along with this program. If not, see . */ -#include -#include -#include "libsigrok.h" -#include "libsigrok-internal.h" #include "protocol.h" SR_PRIV int ${lib}_receive_data(int fd, int revents, void *cb_data) diff --git a/source/drv-protocol.h b/source/drv-protocol.h index ec14a71..84b7ef5 100644 --- a/source/drv-protocol.h +++ b/source/drv-protocol.h @@ -21,6 +21,7 @@ #define LIBSIGROK_HARDWARE_${upper}_PROTOCOL_H #include +#include #include "libsigrok.h" #include "libsigrok-internal.h"