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