apt: apt-pkg/contrib/cdromutl.h Source File

apt 3.3.3 commandline package manager

cdromutl.h
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3/* ######################################################################
4
5 CDROM Utilities - Some functions to manipulate CDROM mounts.
6
7 ##################################################################### */
8 /*}}}*/
9#ifndef PKGLIB_CDROMUTL_H
10#define PKGLIB_CDROMUTL_H
11
12#include <apt-pkg/macros.h>
13
14#include <string>
15
16
17// mount cdrom, DeviceName (e.g. /dev/sr0) is optional
18APT_PUBLIC bool MountCdrom(std::string Path, std::string DeviceName="");
19APT_PUBLIC bool UnmountCdrom(std::string Path);
20APT_PUBLIC bool IdentCdrom(std::string CD,std::string &Res,unsigned int Version = 2);
21APT_PUBLIC bool IsMounted(std::string &Path);
22APT_PUBLIC std::string FindMountPointForDevice(const char *device);
23
24#endif