X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=source%2Fdrv-protocol.c;h=1b300bbeb87331cd9931cea6a4de57610cea71a8;hb=5b447f4c7a92f94e579d1f7b32acafcc04ebd56c;hp=f89474470cdc01a06e2adef59b3f7e1b7373547f;hpb=a65d66c08881d65a6d6e37be8efc1a24e4f60592;p=sigrok-util.git
diff --git a/source/drv-protocol.c b/source/drv-protocol.c
index f894744..1b300bb 100644
--- a/source/drv-protocol.c
+++ b/source/drv-protocol.c
@@ -1,7 +1,7 @@
/*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
*
- * Copyright (C) ${year} ${author} <${email}>
+ * Copyright (C) {year} {author} <{email}>
*
* 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
@@ -17,28 +17,25 @@
* along with this program. If not, see .
*/
-#include
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
-#include "config.h"
+#include
#include "protocol.h"
-#include
-
-SR_PRIV int ${lib}_receive_data(int fd, int revents, void *cb_data)
-{
+SR_PRIV int {lib}_receive_data(int fd, int revents, void *cb_data)
+{{
const struct sr_dev_inst *sdi;
struct dev_context *devc;
+ (void)fd;
+
if (!(sdi = cb_data))
return TRUE;
if (!(devc = sdi->priv))
return TRUE;
- if (revents == G_IO_IN) {
- /* TODO */
- }
+ if (revents == G_IO_IN) {{
+ /* TODO */
+ }}
return TRUE;
-}
+}}