From patchwork Thu Jun 5 17:27:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Disseldorp X-Patchwork-Id: 4307791 Return-Path: X-Original-To: patchwork-cifs-client@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 A97B4BEECB for ; Thu, 5 Jun 2014 17:28:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DE8FC2035C for ; Thu, 5 Jun 2014 17:28:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DF8E92034F for ; Thu, 5 Jun 2014 17:28:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753092AbaFER1y (ORCPT ); Thu, 5 Jun 2014 13:27:54 -0400 Received: from cantor2.suse.de ([195.135.220.15]:37819 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753085AbaFER1x (ORCPT ); Thu, 5 Jun 2014 13:27:53 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E4E48AC6C for ; Thu, 5 Jun 2014 17:27:51 +0000 (UTC) From: David Disseldorp To: linux-cifs@vger.kernel.org Cc: David Disseldorp Subject: [PATCH] ioctl: add and ship public header Date: Thu, 5 Jun 2014 19:27:49 +0200 Message-Id: <1401989269-13855-1-git-send-email-ddiss@suse.de> X-Mailer: git-send-email 1.8.4.5 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 The header currently only exposes the CIFS_IOC_COPYCHUNK_FILE interface, but is still useful. Signed-off-by: David Disseldorp --- Makefile.am | 2 ++ ioctl.h | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 ioctl.h diff --git a/Makefile.am b/Makefile.am index 92da8b1..3d1bd3a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,6 +8,8 @@ mount_cifs_LDADD = $(LIBCAP) $(CAPNG_LDADD) $(RT_LDADD) man_MANS = mount.cifs.8 include_HEADERS = cifsidmap.h +cifsincludedir = $(includedir)/cifs +cifsinclude_HEADERS = ioctl.h bin_PROGRAMS = sbin_PROGRAMS = diff --git a/ioctl.h b/ioctl.h new file mode 100644 index 0000000..0ae831c --- /dev/null +++ b/ioctl.h @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved. + * + * This library is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This library 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ + +#ifndef __CIFS_IOCTL_ +#define __CIFS_IOCTL_ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#define CIFS_IOCTL_MAGIC 0xCF +#define CIFS_IOC_COPYCHUNK_FILE _IOW(CIFS_IOCTL_MAGIC, 3, int) + +#ifdef __cplusplus +} +#endif + +#endif