monotone

monotone Mtn Source Tree

Root/inodeprint.hh

1#ifndef __INODEPRINT_HH__
2#define __INODEPRINT_HH__
3
4// Copyright (C) 2005 Nathaniel Smith <njs@pobox.com>
5//
6// This program is made available under the GNU GPL version 2.0 or
7// greater. See the accompanying file COPYING for details.
8//
9// This program is distributed WITHOUT ANY WARRANTY; without even the
10// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11// PURPOSE.
12
13#include "vocab.hh"
14#include "quick_alloc.hh"
15#include "paths.hh"
16
17typedef std::pair<file_path const, hexenc<inodeprint> > inodeprint_entry;
18
19typedef std::map<file_path, hexenc<inodeprint>,
20 std::less<file_path>,
21 QA(inodeprint_entry) > inodeprint_map;
22
23std::ostream & operator<<(std::ostream & out, inodeprint_entry const & e);
24
25class app_state;
26
27void read_inodeprint_map(data const & dat,
28 inodeprint_map & ipm);
29
30void write_inodeprint_map(inodeprint_map const & ipm,
31 data & dat);
32
33
34bool inodeprint_file(file_path const & file, hexenc<inodeprint> & ip);
35
36// Local Variables:
37// mode: C++
38// fill-column: 76
39// c-file-style: "gnu"
40// indent-tabs-mode: nil
41// End:
42// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:
43
44#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status