mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
e587b0677b
See doc/lvmpolld_overview.txt
53 lines
1.5 KiB
C
53 lines
1.5 KiB
C
/*
|
|
* Copyright (C) 2014-2015 Red Hat, Inc.
|
|
*
|
|
* 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
|
|
* of the GNU Lesser General Public License v.2.1.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
#ifndef _LVM_LVMPOLLD_CLIENT_H
|
|
#define _LVM_LVMPOLLD_CLIENT_H
|
|
# ifdef LVMPOLLD_SUPPORT
|
|
|
|
# include "daemon-client.h"
|
|
|
|
# define LVMPOLLD_SOCKET DEFAULT_RUN_DIR "/lvmpolld.socket"
|
|
|
|
struct cmd_context;
|
|
struct poll_operation_id;
|
|
struct daemon_parms;
|
|
|
|
void lvmpolld_disconnect(void);
|
|
|
|
int lvmpolld_poll_init(const struct cmd_context *cmd, const struct poll_operation_id *id,
|
|
const struct daemon_parms *parms);
|
|
|
|
int lvmpolld_request_info(const struct poll_operation_id *id, const struct daemon_parms *parms,
|
|
unsigned *finished);
|
|
|
|
int lvmpolld_use(void);
|
|
|
|
void lvmpolld_set_active(int active);
|
|
|
|
void lvmpolld_set_socket(const char *socket);
|
|
|
|
# else
|
|
|
|
# define lvmpolld_disconnect() do {} while (0)
|
|
# define lvmpolld_poll_init(cmd, id, parms) (0)
|
|
# define lvmpolld_request_info(id, parms, finished) (0)
|
|
# define lvmpolld_use() (0)
|
|
# define lvmpolld_set_active(active) do {} while (0)
|
|
# define lvmpolld_set_socket(socket) do {} while (0)
|
|
|
|
# endif /* LVMPOLLD_SUPPORT */
|
|
|
|
#endif /* _LVM_LVMPOLLD_CLIENT_H */
|