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

« back to all changes in this revision

Viewing changes to include/corosync/engine/coroapi.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:
136
136
#endif /* COROSYNC_FLOW_CONTROL_STATE */
137
137
 
138
138
enum cs_sync_mode {
139
 
        CS_SYNC_V1      = 0,
140
 
        CS_SYNC_V2      = 1
 
139
        CS_SYNC_V1       = 0,
 
140
        CS_SYNC_V2       = 1,
 
141
        CS_SYNC_V1_APIV2 = 2
141
142
};
142
143
 
143
144
typedef enum {
627
628
                objdb_value_types_t *type);
628
629
 
629
630
        void *(*totem_get_stats)(void);
 
631
 
 
632
        int (*schedwrk_create_nolock) (
 
633
                hdb_handle_t *handle,
 
634
                int (schedwrk_fn) (const void *),
 
635
                const void *context);
630
636
};
631
637
 
632
638
#define SERVICE_ID_MAKE(a,b) ( ((a)<<16) | (b) )
647
653
        struct corosync_service_engine *(*corosync_get_service_engine_ver0) (void);
648
654
};
649
655
 
 
656
typedef void (*sync_init_v1_fn_t) (
 
657
                const unsigned int *member_list,
 
658
                size_t member_list_entries,
 
659
                const struct memb_ring_id *ring_id) ;
 
660
 
650
661
struct corosync_service_engine {
651
662
        const char *name;
652
663
        unsigned short id;
673
684
                const unsigned int *joined_list, size_t joined_list_entries,
674
685
                const struct memb_ring_id *ring_id);
675
686
        enum cs_sync_mode sync_mode;
676
 
        void (*sync_init) (
677
 
                const unsigned int *member_list,
678
 
                size_t member_list_entries,
679
 
                const struct memb_ring_id *ring_id);
 
687
        sync_init_v1_fn_t sync_init;
680
688
        int (*sync_process) (void);
681
689
        void (*sync_activate) (void);
682
690
        void (*sync_abort) (void);