/usr/include/x86_64-linux-gnu/zypp/ZYpp.h is in libzypp-dev 15.3.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | /*---------------------------------------------------------------------\
| ____ _ __ __ ___ |
| |__ / \ / / . \ . \ |
| / / \ V /| _/ _/ |
| / /__ | | | | | | |
| /_____||_| |_| |_| |
| |
\---------------------------------------------------------------------*/
/** \file zypp/ZYpp.h
*
*/
#ifndef ZYPP_ZYPP_H
#define ZYPP_ZYPP_H
#include <iosfwd>
#include "zypp/base/NonCopyable.h"
#include "zypp/base/PtrTypes.h"
#include "zypp/APIConfig.h"
#include "zypp/ZConfig.h"
#include "zypp/ManagedFile.h"
#include "zypp/ZYppCommit.h"
#include "zypp/ResTraits.h"
#include "zypp/Target.h"
#include "zypp/Resolver.h"
#include "zypp/KeyRing.h"
#include "zypp/DiskUsageCounter.h"
///////////////////////////////////////////////////////////////////
namespace zypp
{ /////////////////////////////////////////////////////////////////
namespace zypp_detail
{
class ZYppImpl;
}
class ZYppFactory;
class ResPool;
class ResPoolProxy;
class KeyRing;
///////////////////////////////////////////////////////////////////
//
// CLASS NAME : ZYpp
//
/**
* \todo define Exceptions
* ZYpp API main interface
*/
class ZYpp : private base::NonCopyable
{
friend std::ostream & operator<<( std::ostream & str, const ZYpp & obj );
public:
// can't get swig working if shared_ptr is without namespace here
typedef ::boost::shared_ptr<ZYpp> Ptr;
typedef ::boost::shared_ptr<const ZYpp> constPtr;
public:
/**
* Access to the global resolvable pool.
* Same as \ref zypp::ResPool::instance
*/
ResPool pool() const;
/** Pool of ui::Selectable.
* Based on the ResPool, ui::Selectable groups ResObjetcs of
* same kind and name.
*/
ResPoolProxy poolProxy() const;
DiskUsageCounter::MountPointSet diskUsage();
void setPartitions(const DiskUsageCounter::MountPointSet &mp);
DiskUsageCounter::MountPointSet getPartitions() const;
public:
/**
* \throws Exception
*/
Target_Ptr target() const;
/** Same as \ref target but returns NULL if target is not
* initialized, instead of throwing.
*/
Target_Ptr getTarget() const;
/**
* \throws Exception
* Just init the target, dont populate store or pool.
* If \c doRebuild_r is \c true, an already existing
* database is rebuilt (rpm --rebuilddb ).
*/
void initializeTarget(const Pathname & root, bool doRebuild_r = false);
/**
* \throws Exception
*/
void finishTarget();
public:
typedef ZYppCommitResult CommitResult;
/** Commit changes and transactions.
* \param \ref CommitPolicy
* \return \ref CommitResult
* \throws Exception
*/
ZYppCommitResult commit( const ZYppCommitPolicy & policy_r );
/** Install a source package on the Target.
* \throws Exception
*/
void installSrcPackage( const SrcPackage_constPtr & srcPackage_r );
/** Provides a source package on the Target.
* \throws Exception
*/
ManagedFile provideSrcPackage( const SrcPackage_constPtr & srcPackage_r );
public:
/** */
Resolver_Ptr resolver() const;
KeyRing_Ptr keyRing() const;
public:
/** Get the path where zypp related plugins store persistent data and caches */
Pathname homePath() const;
/** Get the path where zypp related plugins store temp data */
Pathname tmpPath() const;
/** set the home, if you need to change it */
void setHomePath( const Pathname & path );
private:
/** Factory */
friend class ZYppFactory;
typedef zypp_detail::ZYppImpl Impl;
typedef shared_ptr<Impl> Impl_Ptr;
/** Factory ctor */
explicit ZYpp( const Impl_Ptr & impl_r );
private:
/** Deleted via shared_ptr */
friend void ::boost::checked_delete<ZYpp>(ZYpp*); // template<class T> inline void checked_delete(T * x)
/** Dtor */
~ZYpp();
private:
/** Pointer to implementation */
RW_pointer<Impl> _pimpl;
};
///////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
} // namespace zypp
///////////////////////////////////////////////////////////////////
#endif // ZYPP_ZYPP_H
|