]> sigrok.org Git - sigrok-util.git/blobdiff - source/drv-protocol.c
new-driver: refactoring
[sigrok-util.git] / source / drv-protocol.c
index 74f8fb81f552c8b846fcbdb5615da3974fbe37fd..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
@@ -20,8 +20,8 @@
 #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;
 
@@ -33,9 +33,9 @@ SR_PRIV int ${lib}_receive_data(int fd, int revents, void *cb_data)
        if (!(devc = sdi->priv))
                return TRUE;
 
-       if (revents == G_IO_IN) {
+       if (revents == G_IO_IN) {{
                /* TODO */
-       }
+       }}
 
        return TRUE;
-}
+}}