]> sigrok.org Git - sigrok-util.git/blobdiff - source/drv-protocol.c
newdriver: Drop obsolete checks and code chunks.
[sigrok-util.git] / source / drv-protocol.c
index 6ec9d8908540b9aea8d2a9b3598bc775a157f83a..1b300bbeb87331cd9931cea6a4de57610cea71a8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <stdlib.h>
-#include <glib.h>
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
+#include <config.h>
 #include "protocol.h"
 
-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) {
+       if (revents == G_IO_IN) {{
                /* TODO */
-       }
+       }}
 
        return TRUE;
-}
+}}