This file is indexed.

/usr/include/x86_64-linux-gnu/zypp/ProvideFilePolicy.h is in libzypp-dev 14.29.1-2.

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
/*---------------------------------------------------------------------\
|                          ____ _   __ __ ___                          |
|                         |__  / \ / / . \ . \                         |
|                           / / \ V /|  _/  _/                         |
|                          / /__ | | | | | |                           |
|                         /_____||_| |_| |_|                           |
|                                                                      |
\---------------------------------------------------------------------*/

#ifndef ZYPP_PROVIDEFILEPOLICY_H
#define ZYPP_PROVIDEFILEPOLICY_H

#include <iosfwd>

#include "zypp/base/Function.h"
#include "zypp/base/Functional.h"

///////////////////////////////////////////////////////////////////
namespace zypp
{ /////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
// CLASS NAME : ProvideFilePolicy
  
  /** Policy for \ref provideFile.
    * Provides callback hooks for e.g progress reporting or
    * behaviour on checksum failure. Provides default
    * implementations if no callback is set.
    */
  class ProvideFilePolicy
  {
  public:
    /** Progress callback signature. */
    typedef function<bool ( int )> ProgressCB;

    /** Set callback. */
    ProvideFilePolicy & progressCB( ProgressCB progressCB_r )
    { _progressCB = progressCB_r; return *this; }

    /** Evaluate callback. */
    bool progress( int value ) const;

  public:
    /** FailOnChecksumError callback signature. */
    typedef function<bool ()> FailOnChecksumErrorCB;

    /** Set callback. */
    ProvideFilePolicy & failOnChecksumErrorCB( FailOnChecksumErrorCB failOnChecksumErrorCB_r )
    { _failOnChecksumErrorCB = failOnChecksumErrorCB_r; return *this; }

    /** Set callback convenience.
      * Let callback return \c yesno_r.
    */
    ProvideFilePolicy & failOnChecksumErrorCB( bool yesno_r );

    /** Evaluate callback. */
    bool failOnChecksumError() const;

  private:
    FailOnChecksumErrorCB _failOnChecksumErrorCB;
    ProgressCB            _progressCB;
  };

} // namespace zypp
///////////////////////////////////////////////////////////////////
#endif // ZYPP_PROVIDEFILEPOLICY_H