2006-08-17 23:56:28 +04:00
/*
* Copyright ( C ) 2001 - 2004 Sistina Software , Inc . All rights reserved .
2007-08-21 00:55:30 +04:00
* Copyright ( C ) 2004 - 2006 Red Hat , Inc . All rights reserved .
2006-08-17 23:56:28 +04:00
*
* This file is part of LVM2 .
*
* This copyrighted material is made available to anyone wishing to use ,
* modify , copy , or redistribute it subject to the terms and conditions
2007-08-21 00:55:30 +04:00
* of the GNU Lesser General Public License v .2 .1 .
2006-08-17 23:56:28 +04:00
*
2007-08-21 00:55:30 +04:00
* You should have received a copy of the GNU Lesser General Public License
2006-08-17 23:56:28 +04:00
* along with this program ; if not , write to the Free Software Foundation ,
2016-01-21 13:49:46 +03:00
* Inc . , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA
2006-08-17 23:56:28 +04:00
*/
# ifndef _LVM_WRAPPERS_H
# define _LVM_WRAPPERS_H
2011-04-22 15:59:59 +04:00
int udev_init_library_context ( void ) ;
2016-04-01 16:35:13 +03:00
void * udev_get_library_context ( void ) ;
2011-04-22 15:59:59 +04:00
void udev_fin_library_context ( void ) ;
int udev_is_running ( void ) ;
2006-08-17 23:56:28 +04:00
int lvm_getpagesize ( void ) ;
2008-12-07 07:23:37 +03:00
/*
* Read ' len ' bytes of entropy from / dev / urandom and store in ' buf ' .
*/
int read_urandom ( void * buf , size_t len ) ;
2014-04-04 04:26:19 +04:00
/*
* Return random integer in [ 0 , max ) interval
*/
unsigned lvm_even_rand ( unsigned * seed , unsigned max ) ;
2014-06-10 12:46:04 +04:00
int clvmd_is_running ( void ) ;
int cmirrord_is_running ( void ) ;
2014-06-06 16:21:09 +04:00
2006-08-17 23:56:28 +04:00
# endif