~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): Ante Karamatic
  • Date: 2009-08-21 09:29:56 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090821092956-w9qxxxx3zeoh8dem
Tags: 1.0.0-4ubuntu2
* debian/control:
  - 'Ubuntu Developers' instead of 'Ubuntu Core Developers'
    as maintainer
  - Bump debhelper dependecy to 7

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Author: Steven Dake (sdake@redhat.com)
7
7
 *
8
8
 * This software licensed under BSD license, the text of which follows:
9
 
 * 
 
9
 *
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:
12
12
 *
40
40
#include "totemsrp.h"
41
41
 
42
42
struct sync_callbacks {
43
 
        void (*sync_init) (void);
 
43
        void (*sync_init) (
 
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);
47
 
        char *name;
 
50
        const char *name;
48
51
};
49
52
 
50
53
int sync_register (
51
 
        int (*sync_callbacks_retrieve) (int sync_id, struct sync_callbacks *callbacks),
52
 
        void (*synchronization_completed) (void),
53
 
        char *vsf_type);
54
 
 
55
 
int sync_in_process (void);
56
 
 
57
 
int sync_primary_designated (void);
58
 
 
59
 
/**
60
 
 * Execute synchronization upon request for the named service
61
 
 * @param name service handler name to synchronize
62
 
 * 
63
 
 * @return int 0 OK, error code otherwise
64
 
 */
65
 
extern int sync_request (char *name);
 
54
        int (*sync_callbacks_retrieve) (
 
55
                int sync_id,
 
56
                struct sync_callbacks *callbacks),
 
57
 
 
58
        void (*sync_started) (
 
59
                const struct memb_ring_id *ring_id),
 
60
 
 
61
        void (*sync_aborted) (void),
 
62
 
 
63
        void (*next_start) (
 
64
                const unsigned int *member_list,
 
65
                size_t member_list_entries,
 
66
                const struct memb_ring_id *ring_id));
 
67
 
66
68
 
67
69
#endif /* SYNC_H_DEFINED */