monotone

monotone Mtn Source Tree

Root/netsync.hh

1#ifndef __NETSYNC_H__
2#define __NETSYNC_H__
3
4#include <vector>
5
6#include "app_state.hh"
7#include "netcmd.hh"
8#include "vocab.hh"
9
10// copyright (C) 2002, 2003 graydon hoare <graydon@pobox.com>
11// all rights reserved.
12// licensed to the public under the terms of the GNU GPL (>= 2)
13// see the file COPYING for details
14
15typedef enum
16 {
17 server_voice,
18 client_voice
19 }
20protocol_voice;
21
22void run_netsync_protocol(protocol_voice voice,
23 protocol_role role,
24 utf8 const & addr,
25 std::vector<utf8> collections,
26 app_state & app);
27
28void rebuild_merkle_trees(app_state & app,
29 utf8 const & collection);
30
31#endif // __NETSYNC_H__

Archive Download this file

Branches

Tags

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