File: japiP.h

package info (click to toggle)
gridengine 8.1.9%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 56,880 kB
  • sloc: ansic: 432,689; java: 87,068; cpp: 31,958; sh: 29,429; jsp: 7,757; perl: 6,336; xml: 5,828; makefile: 4,701; csh: 3,928; ruby: 2,221; tcl: 1,676; lisp: 669; yacc: 519; python: 503; lex: 361; javascript: 200
file content (62 lines) | stat: -rw-r--r-- 1,494 bytes parent folder | download | duplicates (9)
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
#ifndef __JAPIP_H

#include "cull.h"

struct drmaa_job_template_s {
   lList *strings;        /* VA_Type  */
   lList *string_vectors; /* NSV_Type */
};

/* 
 * This iterator is returned by 
 *   drmaa_run_bulk_jobs()             - vector of vector of job ids
 */
struct drmaa_bulk_jobid_iterator_s {
   u_long32 jobid;
   int start;
   int end;
   int incr;
   /* next position of iterator */
   int next_pos;
};

/* 
 * This iterator is returned by 
 *   japi_get_vector_attribute()       - vector of attribute values
 *   japi_get_attribute_names()        - vector of attribute name 
 *   japi_get_vector_attribute_names() - vector of attribute name 
 *   japi_wait()                       - vector of rusage strings 
 */
struct drmaa_string_array_iterator_s {
   lList *strings;  /* STR_Type  */
   /* next position of iterator */
   lListElem *next_pos;
};

/*
 * Transparent use of two different iterators 
 */
enum { JAPI_ITERATOR_BULK_JOBS, JAPI_ITERATOR_STRINGS };
struct drmaa_attr_names_s {
   int iterator_type; 
   union {
      struct drmaa_bulk_jobid_iterator_s ji;
      struct drmaa_string_array_iterator_s si;
   } it;
};
struct drmaa_attr_values_s {
   int iterator_type; 
   union {
      struct drmaa_bulk_jobid_iterator_s ji;
      struct drmaa_string_array_iterator_s si;
   } it;
};
struct drmaa_job_ids_s {
   int iterator_type; 
   union {
      struct drmaa_bulk_jobid_iterator_s ji;
      struct drmaa_string_array_iterator_s si;
   } it;
};

#endif /* __JAPIP_H */