From patchwork Sun Jul 6 18:20:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Roth?= X-Patchwork-Id: 4490481 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 545FDBEEAA for ; Sun, 6 Jul 2014 18:21:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 984F2202A1 for ; Sun, 6 Jul 2014 18:21:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C65A42021A for ; Sun, 6 Jul 2014 18:21:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751798AbaGFSVE (ORCPT ); Sun, 6 Jul 2014 14:21:04 -0400 Received: from mail-we0-f179.google.com ([74.125.82.179]:65101 "EHLO mail-we0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751698AbaGFSVD (ORCPT ); Sun, 6 Jul 2014 14:21:03 -0400 Received: by mail-we0-f179.google.com with SMTP id w62so3424801wes.24 for ; Sun, 06 Jul 2014 11:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=dmZsuhhKxtCbad/OEoaIyoyYRCo30g2PAgK+hcDzZro=; b=0iFhomkocE30wlwE941elplUS8WhbpYmlS26TB5kKsCHe1ucwxkV8OFpndop7m8NUO twYmvKamK/pDBKjRL2rahx4hXPGATjTxfTfsUlFtovjc+xjocdXCVRq/fpOB9vldg4jv mzieoSDjUhVnj7c9Kw7o/FmvwwVfhjZ8FAEvR/0M8jQzWBYA+nXMjnyzZ6ummSWSRHEi uxXNyXN1oFbs4ZOBjeozAV+iqzX+AZS1Pr6/9sFUm+QCqH+6B4zcxmn1T7QHAPMVRnrE ND3LHgu0Qs0ZbKzOpLLfHb/G8xReyUGJKH8B7KpNl+Kd17/yzppJGKIqU5RMTl9jQO0H 3R9A== X-Received: by 10.180.36.18 with SMTP id m18mr31136884wij.74.1404670861421; Sun, 06 Jul 2014 11:21:01 -0700 (PDT) Received: from neutrino.exnihilo (20-142.76-83.cust.bluewin.ch. [83.76.142.20]) by mx.google.com with ESMTPSA id i4sm105603130wib.21.2014.07.06.11.21.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Jul 2014 11:21:00 -0700 (PDT) From: =?UTF-8?q?Andr=C3=A9=20Roth?= To: linux-media@vger.kernel.org Cc: =?UTF-8?q?Andr=C3=A9=20Roth?= Subject: [PATCH] libdvbv5: provide crc32 to c++ Date: Sun, 6 Jul 2014 20:20:30 +0200 Message-Id: <1404670830-6863-1-git-send-email-neolynx@gmail.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP allow C++ apps to use crc32 Signed-off-by: André Roth --- lib/include/libdvbv5/crc32.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/include/libdvbv5/crc32.h b/lib/include/libdvbv5/crc32.h index d1968e8..4261bda 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 + * Copyright (c) 2012-2014 - Andre Roth * * 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 #include /* size_t */ +#ifdef __cplusplus +extern "C" { +#endif + uint32_t crc32(uint8_t *data, size_t datalen, uint32_t crc); +#ifdef __cplusplus +} +#endif + #endif