diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-11-30 12:04:13 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-01-16 11:24:13 +0100 |
commit | 04f2e44d42aa3d17b97e9d670eb546533b42766b (patch) | |
tree | 7baf2e97dd953a3d2d88cf102b3ef720c58caea8 /src/qmi-firmware-update/qfu-utils.h | |
parent | b38a0bb1808691ad68931c9db227cb2835731e6f (diff) | |
download | external_libqmi-04f2e44d42aa3d17b97e9d670eb546533b42766b.zip external_libqmi-04f2e44d42aa3d17b97e9d670eb546533b42766b.tar.gz external_libqmi-04f2e44d42aa3d17b97e9d670eb546533b42766b.tar.bz2 |
qmi-firmware-update: setup CRC16 as common utils
Diffstat (limited to 'src/qmi-firmware-update/qfu-utils.h')
-rw-r--r-- | src/qmi-firmware-update/qfu-utils.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/qmi-firmware-update/qfu-utils.h b/src/qmi-firmware-update/qfu-utils.h new file mode 100644 index 0000000..9cf5c3c --- /dev/null +++ b/src/qmi-firmware-update/qfu-utils.h @@ -0,0 +1,35 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * qmi-firmware-update -- Command line tool to update firmware in QMI devices + * + * 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 + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * Copyright (C) 2016 Bjørn Mork <bjorn@mork.no> + * Copyright (C) 2016 Zodiac Inflight Innovations + * Copyright (C) 2016 Aleksander Morgado <aleksander@aleksander.es> + */ + +#ifndef QFU_UTILS_H +#define QFU_UTILS_H + +#include <glib.h> + +G_BEGIN_DECLS + +guint16 qfu_utils_crc16 (const guint8 *buffer, + gsize len); + +G_END_DECLS + +#endif /* QFU_UTILS_H */ |