aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Roth <neolynx@gmail.com>2014-07-06 15:20:30 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-26 15:06:22 -0300
commit2466682e2e05437c15a435734ffb3158dacebd10 (patch)
treec5c81841873e1d45ab3061306f9acac235e07980
parent9ffb44d41808d91324e43011f08b435d4bd75875 (diff)
libdvbv5: provide crc32 to c++
allow C++ apps to use crc32 Signed-off-by: André Roth <neolynx@gmail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--lib/include/libdvbv5/crc32.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/include/libdvbv5/crc32.h b/lib/include/libdvbv5/crc32.h
index c886862a..9582d4ce 100644
--- a/lib/include/libdvbv5/crc32.h
+++ b/lib/include/libdvbv5/crc32.h
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2011-2012 - Mauro Carvalho Chehab
- * Copyright (c) 2012 - Andre Roth <neolynx@gmail.com>
+ * Copyright (c) 2012-2014 - Andre Roth <neolynx@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -25,7 +25,15 @@
#include <stdint.h>
#include <unistd.h> /* size_t */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
uint32_t dvb_crc32(uint8_t *data, size_t datalen, uint32_t crc);
+#ifdef __cplusplus
+}
+#endif
+
#endif

Privacy Policy