From patchwork Wed Apr 9 22:26:56 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: 3957861 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9F3C29F371 for ; Wed, 9 Apr 2014 22:28:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C249920513 for ; Wed, 9 Apr 2014 22:27:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B962F2063B for ; Wed, 9 Apr 2014 22:27:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964921AbaDIW1y (ORCPT ); Wed, 9 Apr 2014 18:27:54 -0400 Received: from mail-ee0-f53.google.com ([74.125.83.53]:53252 "EHLO mail-ee0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933811AbaDIW1X (ORCPT ); Wed, 9 Apr 2014 18:27:23 -0400 Received: by mail-ee0-f53.google.com with SMTP id b57so2359876eek.40 for ; Wed, 09 Apr 2014 15:27:21 -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:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=1uQOKFco1UjR/aQADjWTchDtZ81mxMg/HEgqM++VzqA=; b=mCiOHUXqF/eA8Yr9xplGDCgX2ZhBwRXDzUYnCsK0/qa2QIzy/sjjqsjUZ3uDEKyAkF nEU+uGmolckRvbqWQF8sSmOtCNfasoEKmmBq9+CYFByTSz7R4ypw8Jxx3uwDCxbt1ERV VVlfl+JXnOonc7cDtKepQohR+2zb4uAi0wspQPb8AVD6Nh5zzkwuAL2UyDmcTz0Sxiod S3FmqKcr1kJYNvWUtlj6g67p9pYAb4CQRscY5M3TWgRd/IOHnIzr1isklTk9sNw9T77L v5cdWn06x1UmNmJFgNNRlQDkHdioaghg6sY+6pZ+COiArE4AD2tzUNWuwFebPnBt4GLS iqLw== X-Received: by 10.15.48.129 with SMTP id h1mr5893201eew.57.1397082441819; Wed, 09 Apr 2014 15:27:21 -0700 (PDT) Received: from exciton.exnihilo. (29-206.60-188.cust.bluewin.ch. [188.60.206.29]) by mx.google.com with ESMTPSA id t44sm5306199eeo.6.2014.04.09.15.27.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Apr 2014 15:27:21 -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 3/7] libdvbv5: make crc32 public Date: Thu, 10 Apr 2014 00:26:56 +0200 Message-Id: <1397082420-31198-3-git-send-email-neolynx@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1397082420-31198-1-git-send-email-neolynx@gmail.com> References: <1397082420-31198-1-git-send-email-neolynx@gmail.com> 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.1 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 applications reading dvb files might want to check crc, therefore provide the crc32 function in the header files. Signed-off-by: André Roth --- lib/{ => include}/libdvbv5/crc32.h | 0 lib/libdvbv5/Makefile.am | 1 + lib/libdvbv5/crc32.c | 2 +- lib/libdvbv5/dvb-scan.c | 2 +- 4 files changed, 3 insertions(+), 2 deletions(-) rename lib/{ => include}/libdvbv5/crc32.h (100%) diff --git a/lib/libdvbv5/crc32.h b/lib/include/libdvbv5/crc32.h similarity index 100% rename from lib/libdvbv5/crc32.h rename to lib/include/libdvbv5/crc32.h diff --git a/lib/libdvbv5/Makefile.am b/lib/libdvbv5/Makefile.am index df67544..ce3f806 100644 --- a/lib/libdvbv5/Makefile.am +++ b/lib/libdvbv5/Makefile.am @@ -6,6 +6,7 @@ otherinclude_HEADERS = \ ../include/libdvbv5/dvb-demux.h \ ../include/libdvbv5/dvb-v5-std.h \ ../include/libdvbv5/dvb-file.h \ + ../include/libdvbv5/crc32.h \ ../include/libdvbv5/dvb-frontend.h \ ../include/libdvbv5/dvb-fe.h \ ../include/libdvbv5/dvb-sat.h \ diff --git a/lib/libdvbv5/crc32.c b/lib/libdvbv5/crc32.c index f14dbe1..69d0be3 100644 --- a/lib/libdvbv5/crc32.c +++ b/lib/libdvbv5/crc32.c @@ -19,7 +19,7 @@ * */ -#include "crc32.h" +#include static uint32_t crctab[256] = { 0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b, diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c index b0636b9..e522225 100644 --- a/lib/libdvbv5/dvb-scan.c +++ b/lib/libdvbv5/dvb-scan.c @@ -42,7 +42,7 @@ #include #include #include "parse_string.h" -#include "crc32.h" +#include #include #include #include