File: object.h

package info (click to toggle)
evms 2.5.2-1.sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 14,248 kB
  • ctags: 15,488
  • sloc: ansic: 201,340; perl: 12,421; sh: 4,262; makefile: 1,516; yacc: 316; sed: 16
file content (67 lines) | stat: -rw-r--r-- 2,574 bytes parent folder | download | duplicates (2)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
 *
 *   (C) Copyright IBM Corp. 2001, 2003
 *
 *   This program is free software;  you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
 *   the GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU 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
 *
 * Module: object.h
 *
 */

/*
 * Global functions exported by object.c
 */

/* External APIs provided by object.c */

extern int evms_create(plugin_handle_t    plugin,
                       handle_array_t   * objects,
                       option_array_t   * options,
                       handle_array_t * * output_objects);

extern int evms_transfer(object_handle_t  object,
                         plugin_handle_t  plugin,
                         object_handle_t  container,
                         option_array_t * options);

extern int evms_get_object_list(object_type_t         object_type,
                                data_type_t           data_type,
                                plugin_handle_t       plugin_handle,
				object_handle_t       disk_group,
                                object_search_flags_t flags,
                                handle_array_t    * * object_handle_list);

extern int evms_assign(object_handle_t  object,
                       plugin_handle_t  plugin,
                       option_array_t * options);

extern int evms_can_unassign(object_handle_t object);

extern int evms_unassign(object_handle_t object);

extern int evms_get_plugin_functions(engine_handle_t           thing,
                                     function_info_array_t * * actions);

extern int evms_do_plugin_function(engine_handle_t  thing,
                                   task_action_t    action,
                                   handle_array_t * objects,
                                   option_array_t * options);

/* Internal functions to share with other Engine source modules */

extern int isa_valid_input_object(storage_object_t    * obj,
				  storage_container_t * disk_group);

extern void free_function_info_array_contents(void * object);