File: task.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 (52 lines) | stat: -rw-r--r-- 2,122 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
/*
 *
 *   (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: task.h
 *
 */
/*
 * Global functions exported by task.c
 */

/* External APIs provided by task.c */

extern int evms_create_task(engine_handle_t thing,
                            task_action_t   action,
                            task_handle_t * new_task_context);

extern int evms_invoke_task(task_handle_t      handle,
                            handle_array_t * * resulting_objects);

extern int evms_destroy_task(task_handle_t handle);

extern int evms_get_task_action (task_handle_t handle, task_action_t *action);

extern int evms_get_acceptable_objects(task_handle_t      task,
                                       handle_array_t * * acceptable_object_list);

extern int evms_get_selected_objects(task_handle_t      task,
                                     handle_array_t * * selected_object_list);

extern int evms_get_selected_object_limits(task_handle_t task,
                                           u_int32_t   * miminum,
                                           u_int32_t   * maximum);

extern int evms_set_selected_objects(task_handle_t               task,
                                     handle_array_t            * selected_object_list,
                                     declined_handle_array_t * * declined_list,
                                     task_effect_t             * effect);