6
6
* Author: Steven Dake (sdake@redhat.com)
8
8
* This software licensed under BSD license, the text of which follows:
10
10
* Redistribution and use in source and binary forms, with or without
11
11
* modification, are permitted provided that the following conditions are met:
40
40
#include "totemsrp.h"
42
42
struct sync_callbacks {
43
void (*sync_init) (void);
44
const unsigned int *member_list,
45
size_t member_list_entries,
46
const struct memb_ring_id *ring_id);
44
47
int (*sync_process) (void);
45
48
void (*sync_activate) (void);
46
49
void (*sync_abort) (void);
50
53
int sync_register (
51
int (*sync_callbacks_retrieve) (int sync_id, struct sync_callbacks *callbacks),
52
void (*synchronization_completed) (void),
55
int sync_in_process (void);
57
int sync_primary_designated (void);
60
* Execute synchronization upon request for the named service
61
* @param name service handler name to synchronize
63
* @return int 0 OK, error code otherwise
65
extern int sync_request (char *name);
54
int (*sync_callbacks_retrieve) (
56
struct sync_callbacks *callbacks),
58
void (*sync_started) (
59
const struct memb_ring_id *ring_id),
61
void (*sync_aborted) (void),
64
const unsigned int *member_list,
65
size_t member_list_entries,
66
const struct memb_ring_id *ring_id));
67
69
#endif /* SYNC_H_DEFINED */