summaryrefslogtreecommitdiff
path: root/liblvm/lvm_prop.h
blob: 00e7e485da227c764a79fedc0c06ca9482858201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * Copyright (C) 2013 Red Hat, Inc. All rights reserved.
 *
 * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */
#include "prop_common.h"

#ifndef _LIB_LVM_PROP_H
#define _LIB_LVM_PROP_H

typedef struct lvcreate_params type_lvcreate_params;
typedef struct pvcreate_params type_pvcreate_params;

#define LV_CREATE_PARAMS 1
#define PV_CREATE_PARAMS 2

#define GET_LVCREATEPARAMS_NUM_PROPERTY_FN(NAME, VALUE)\
	GET_NUM_PROPERTY_FN(NAME, VALUE, lvcreate_params, lvcp)

#define SET_LVCREATEPARAMS_NUM_PROPERTY_FN(NAME, VALUE) \
	SET_NUM_PROPERTY(NAME, VALUE, lvcreate_params, lvcp)

#define GET_PVCREATEPARAMS_NUM_PROPERTY_FN(NAME, VALUE)\
	GET_NUM_PROPERTY_FN(NAME, VALUE, pvcreate_params, pvcp)

#define SET_PVCREATEPARAMS_NUM_PROPERTY_FN(NAME, VALUE) \
	SET_NUM_PROPERTY(NAME, VALUE, pvcreate_params, pvcp)

int lv_create_param_get_property(const struct lvcreate_params *lvcp,
		struct lvm_property_type *prop);

int lv_create_param_set_property(struct lvcreate_params *lvcp,
		    struct lvm_property_type *prop);

int pv_create_param_get_property(const struct pvcreate_params *pvcp,
		struct lvm_property_type *prop);

int pv_create_param_set_property(struct pvcreate_params *pvcp,
		    struct lvm_property_type *prop);

#endif