monotone

monotone Mtn Source Tree

Root/src/epoch.hh

1// Copyright (C) 2005 Nathaniel Smith <njs@pobox.com>
2//
3// This program is made available under the GNU GPL version 2.0 or
4// greater. See the accompanying file COPYING for details.
5//
6// This program is distributed WITHOUT ANY WARRANTY; without even the
7// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8// PURPOSE.
9
10#ifndef __EPOCH_HH__
11#define __EPOCH_HH__
12
13#include "vocab.hh"
14
15// epochs are pairs (branch name, random data)
16
17void read_epoch(std::string const & in,
18 branch_name & branch, epoch_data & epoch);
19void write_epoch(branch_name const & branch, epoch_data const & epoch,
20 std::string & out);
21void epoch_hash_code(branch_name const & branch, epoch_data const & epoch,
22 epoch_id & eid);
23
24#endif
25
26// Local Variables:
27// mode: C++
28// fill-column: 76
29// c-file-style: "gnu"
30// indent-tabs-mode: nil
31// End:
32// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:

Archive Download this file

Branches

Tags

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