~ubuntu-branches/ubuntu/precise/corosync/precise-proposed

« back to all changes in this revision

Viewing changes to exec/sync.h

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2010-07-02 01:24:53 UTC
  • mfrom: (1.1.4 upstream) (5.1.9 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100702012453-qky79tg6hjly2dmq
Tags: 1.2.1-1ubuntu1
* Merge from debian unstable (LP: #600900). Remaining changes:
  - Raised consensus time out to 5000ms
  - debian/control, debian/rules: Removing now-unnecessary quilt build-dep

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#include <corosync/totem/totempg.h>
40
40
#include "totemsrp.h"
41
41
 
 
42
union sync_init_api {
 
43
        void (*sync_init_v1) (
 
44
                const unsigned int *member_list,
 
45
                size_t member_list_entries,
 
46
                const struct memb_ring_id *ring_id);
 
47
 
 
48
        void (*sync_init_v2) (
 
49
                const unsigned int *trans_list,
 
50
                size_t trans_list_entries,
 
51
                const unsigned int *member_list,
 
52
                size_t member_list_entries,
 
53
                const struct memb_ring_id *ring_id);
 
54
};
 
55
 
42
56
struct sync_callbacks {
43
 
        void (*sync_init) (
44
 
                const unsigned int *member_list,
45
 
                size_t member_list_entries,
46
 
                const struct memb_ring_id *ring_id);
 
57
        int api_version;
 
58
        union sync_init_api sync_init_api;
47
59
        int (*sync_process) (void);
48
60
        void (*sync_activate) (void);
49
61
        void (*sync_abort) (void);