186d7f5d3SJohn Marino /* $NetBSD: functions.h,v 1.1.1.1 2009/12/02 00:27:10 haad Exp $ */ 286d7f5d3SJohn Marino 386d7f5d3SJohn Marino /* 486d7f5d3SJohn Marino * Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved. 586d7f5d3SJohn Marino * 686d7f5d3SJohn Marino * This copyrighted material is made available to anyone wishing to use, 786d7f5d3SJohn Marino * modify, copy, or redistribute it subject to the terms and conditions 886d7f5d3SJohn Marino * of the GNU Lesser General Public License v.2.1. 986d7f5d3SJohn Marino * 1086d7f5d3SJohn Marino * You should have received a copy of the GNU Lesser General Public License 1186d7f5d3SJohn Marino * along with this program; if not, write to the Free Software Foundation, 1286d7f5d3SJohn Marino * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 1386d7f5d3SJohn Marino */ 1486d7f5d3SJohn Marino #ifndef __CLOG_FUNCTIONS_DOT_H__ 1586d7f5d3SJohn Marino #define __CLOG_FUNCTIONS_DOT_H__ 1686d7f5d3SJohn Marino 1786d7f5d3SJohn Marino #include "dm-log-userspace.h" 1886d7f5d3SJohn Marino #include "cluster.h" 1986d7f5d3SJohn Marino 2086d7f5d3SJohn Marino #define LOG_RESUMED 1 2186d7f5d3SJohn Marino #define LOG_SUSPENDED 2 2286d7f5d3SJohn Marino 2386d7f5d3SJohn Marino int local_resume(struct dm_ulog_request *rq); 2486d7f5d3SJohn Marino int cluster_postsuspend(char *, uint64_t); 2586d7f5d3SJohn Marino 2686d7f5d3SJohn Marino int do_request(struct clog_request *rq, int server); 2786d7f5d3SJohn Marino int push_state(const char *uuid, uint64_t luid, 2886d7f5d3SJohn Marino const char *which, char **buf, uint32_t debug_who); 2986d7f5d3SJohn Marino int pull_state(const char *uuid, uint64_t luid, 3086d7f5d3SJohn Marino const char *which, char *buf, int size); 3186d7f5d3SJohn Marino 3286d7f5d3SJohn Marino int log_get_state(struct dm_ulog_request *rq); 3386d7f5d3SJohn Marino int log_status(void); 3486d7f5d3SJohn Marino void log_debug(void); 3586d7f5d3SJohn Marino 3686d7f5d3SJohn Marino #endif /* __CLOG_FUNCTIONS_DOT_H__ */ 37