Tizen 2.1 base
[external/device-mapper.git] / daemons / cmirrord / functions.h
1 /*
2  * Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved.
3  *
4  * This copyrighted material is made available to anyone wishing to use,
5  * modify, copy, or redistribute it subject to the terms and conditions
6  * of the GNU Lesser General Public License v.2.1.
7  *
8  * You should have received a copy of the GNU Lesser General Public License
9  * along with this program; if not, write to the Free Software Foundation,
10  * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
11  */
12 #ifndef _LVM_CLOG_FUNCTIONS_H
13 #define _LVM_CLOG_FUNCTIONS_H
14
15 #include "dm-log-userspace.h"
16 #include "cluster.h"
17
18 #define LOG_RESUMED   1
19 #define LOG_SUSPENDED 2
20
21 int local_resume(struct dm_ulog_request *rq);
22 int cluster_postsuspend(char *, uint64_t);
23
24 int do_request(struct clog_request *rq, int server);
25 int push_state(const char *uuid, uint64_t luid,
26                const char *which, char **buf, uint32_t debug_who);
27 int pull_state(const char *uuid, uint64_t luid,
28                const char *which, char *buf, int size);
29
30 int log_get_state(struct dm_ulog_request *rq);
31 int log_status(void);
32 void log_debug(void);
33
34 #endif /* _LVM_CLOG_FUNCTIONS_H */