simple-mtpfs/src/simple-mtpfs-util.h

37 lines
1.2 KiB
C
Raw Normal View History

2013-09-17 19:43:36 +00:00
/* ***** BEGIN LICENSE BLOCK *****
* Copyright (C) 2012, Peter Hatina <phatina@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* ***** END LICENSE BLOCK ***** */
#ifndef SIMPLE_MTPFS_UTIL
#define SIMPLE_MTPFS_UTIL
#include <config.h>
#include <string>
#ifdef HAVE_LIBUSB1
# include <libmtp.h>
#endif // HAVE_LIBUSB1
std::string smtpfs_dirname(const std::string &path);
std::string smtpfs_basename(const std::string &path);
#ifdef HAVE_LIBUSB1
LIBMTP_raw_device_t *smtpfs_raw_device_new(const std::string &path);
void smtpfs_raw_device_free(LIBMTP_raw_device_t *device);
#endif // HAVE_LIBUSB1
#endif // SIMPLE_MTPFS_UTIL