udf_crc.h 1.1 KB

12345678910111213141516171819202122232425262728
  1. /*
  2. * Code copied from gstreamer-plugins-bad gst/gdp/dataprotocol.c
  3. *
  4. * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
  5. * Copyright (C) 2004,2006 Thomas Vander Stichele <thomas at apestaart dot org>
  6. * Copyright (C) 2014 Tim-Philipp Müller <tim centricular com>
  7. *
  8. * This library is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU Lesser General Public License as
  10. * published by the Free Software Foundation; either version 2.1 of the
  11. * License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful, but
  14. * WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with this library; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  21. * 02110-1301 USA
  22. */
  23. #include <stdint.h>
  24. #include <stddef.h>
  25. uint16_t udf_crc ( unsigned char *buffer, size_t size );