summaryrefslogtreecommitdiff
path: root/ot_sync.h
blob: 81d4d22d2b427d29ad9293839185906ebba9055e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* This software was written by Dirk Engling <erdgeist@erdgeist.org>
   It is considered beerware. Prost. Skol. Cheers or whatever.

   $id$ */

#ifndef __OT_SYNC_H__
#define __OT_SYNC_H__

#ifdef WANT_SYNC_BATCH
enum { SYNC_IN, SYNC_OUT };

void sync_init( );
void sync_deinit( );
void sync_deliver( int64 socket );

int  add_changeset_to_tracker( uint8_t *data, size_t len );
#else

#define sync_init()
#define sync_deinit()

#endif

#endif