3
* (C) Copyright IBM Corp. 2001, 2003
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
13
* the GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
* Module: bbroptions.h
23
#ifndef BBR_OPTIONS_HEADER
24
#define BBR_OPTIONS_HEADER 1
30
#define BBR_CREATE_OPTION_COUNT 1
32
#define BBR_CREATE_NAME_INDEX 0
33
#define BBR_CREATE_NAME_NAME "Name"
39
#define BBR_EXPAND_OPTION_COUNT 1
41
#define BBR_EXPAND_BLOCKCOUNT_INDEX 0
42
#define BBR_EXPAND_BLOCKCOUNT_NAME "replacement blocks"
49
#define BBR_SHRINK_OPTION_COUNT 1
51
#define BBR_SHRINK_BLOCKCOUNT_INDEX 0
52
#define BBR_SHRINK_BLOCKCOUNT_NAME "replacement blocks"
58
#define BBR_INFO_COUNT 5
60
#define BBR_INFO_NAME_INDEX 0
61
#define BBR_INFO_SIZE_INDEX 1
62
#define BBR_INFO_BLKS_INDEX 2
63
#define BBR_INFO_BLKSZ_INDEX 3
64
#define BBR_INFO_TBLSZ_INDEX 4
70
#define BBR_PLUGIN_INFO_COUNT 6
72
#define BBR_PLUGIN_INFO_SNAME_INDEX 0
73
#define BBR_PLUGIN_INFO_LNAME_INDEX 1
74
#define BBR_PLUGIN_INFO_TYPE_INDEX 2
75
#define BBR_PLUGIN_INFO_VERSION_INDEX 3
76
#define BBR_PLUGIN_INFO_REQENGSVCVERSION_INDEX 4
77
#define BBR_PLUGIN_INFO_REQPLUGAPIVERSION_INDEX 5
81
int BBR_GetOptionCount(task_context_t * task);
83
int BBR_InitTask(task_context_t * context);
85
int BBR_SetOption( task_context_t * context, u_int32_t index, value_t * value, u_int32_t * info );
87
int BBR_GetInfo( storage_object_t * object, char *name, extended_info_array_t * * info);
89
int BBR_GetPluginInfo( char * descriptor_name, extended_info_array_t * * info );
91
int BBR_SetObjects( task_context_t * context,
92
list_anchor_t declined_objects,
93
task_effect_t * effect );