globus_gram_client  13.11
 All Data Structures Files Functions Variables Typedefs Groups Pages
globus_gram_client.h
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2006 University of Chicago
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
26 #ifndef GLOBUS_GRAM_CLIENT_H
27 #define GLOBUS_GRAM_CLIENT_H
28 
29 /* Include header files */
30 #include "globus_common.h"
31 #include "globus_io.h"
32 #include "globus_gram_protocol_constants.h"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 #ifndef GLOBUS_GLOBAL_DOCUMENT_SET
39 
43 #endif
44 
52 /******************************************************************************
53  Type definitions
54 ******************************************************************************/
55 
56 
94  void * user_callback_arg,
95  char * job_contact,
96  int state,
97  int errorcode);
98 
111 {
115  globus_hashtable_t extensions;
119  char * job_contact;
128 }
130 
157  void * user_callback_arg,
158  const char * job_contact,
159  globus_gram_client_job_info_t * job_info);
160 
171 
172 
182 #define GLOBUS_GRAM_CLIENT_NO_ATTR (globus_gram_client_attr_t) NULL
183 
219  void * user_callback_arg,
220  globus_gram_protocol_error_t operation_failure_code,
221  const char * job_contact,
222  globus_gram_protocol_job_state_t job_state,
223  globus_gram_protocol_error_t job_failure_code);
224 
225 
231 /******************************************************************************
232  Function prototypes
233 ******************************************************************************/
234 int
237  void * user_callback_arg,
238  char ** callback_contact);
239 
240 
241 int
244  callback_func,
245  void * user_callback_arg,
246  char ** callback_contact);
247 
248 int
250  const char * resource_manager_contact,
251  const char * description,
252  int job_state_mask,
253  const char * callback_contact,
254  globus_gram_client_attr_t attr,
256  register_callback,
257  void * register_callback_arg);
258 
259 int
261  const char * resource_manager_contact,
262  const char * description,
263  int job_state_mask,
264  const char * callback_contact,
265  char ** job_contact);
266 
267 int
269  const char * resource_manager_contact,
270  const char * description,
271  int job_state_mask,
272  const char * callback_contact,
273  globus_gram_client_attr_t attr,
275  callback,
276  void * callback_arg);
277 
278 int
280  const char * resource_manager_contact,
281  const char * description,
282  int job_state_mask,
283  const char * callback_contact,
284  char ** job_contact,
286 
287 int
289  const char * job_contact,
290  globus_gram_client_attr_t attr,
292  register_callback,
293  void * register_callback_arg);
294 
295 int
297  const char * job_contact);
298 
299 int
301  const char * job_contact,
302  globus_gram_client_attr_t attr,
304  register_callback,
305  void * register_callback_arg);
306 
307 int
309  const char * job_contact,
310  globus_gram_client_attr_t attr,
312  info_callback,
313  void * callback_arg);
314 
315 
316 int
318  char * job_contact,
319  gss_cred_id_t creds);
320 
321 int
323  char * job_contact,
324  gss_cred_id_t creds,
325  globus_gram_client_attr_t attr,
327  register_callback,
328  void * register_callback_arg);
329 
330 int
332  const char * job_contact,
333  int * job_status,
334  int * failure_code);
335 
336 int
338  const char * job_contact,
339  globus_gram_client_job_info_t * job_info);
340 
341 int
343  const char * job_contact,
344  globus_gram_protocol_job_signal_t signal,
345  const char * signal_arg,
346  globus_gram_client_attr_t attr,
348  register_callback,
349  void * register_callback_arg);
350 
351 int
353  const char * job_contact,
354  globus_gram_protocol_job_signal_t signal,
355  const char * signal_arg,
356  int * job_status,
357  int * failure_code);
358 
359 
360 int
362  const char * job_contact,
363  int job_state_mask,
364  const char * callback_contact,
365  globus_gram_client_attr_t attr,
367  register_callback,
368  void * register_callback_arg);
369 
370 int
372  const char * job_contact,
373  int job_state_mask,
374  const char * callback_contact,
375  int * job_status,
376  int * failure_code);
377 
378 int
380  const char * job_contact,
381  const char * callback_contact,
382  globus_gram_client_attr_t attr,
384  register_callback,
385  void * register_callback_arg);
386 
387 int
389  const char * job_contact,
390  const char * callback_contact,
391  int * job_status,
392  int * failure_code);
393 
394 int
396  char * callback_contact);
397 
398 int
400  char * job_contact);
401 
402 const char *
404  int error_code);
405 
406 int
408 
409 int
410 globus_gram_client_set_credentials(gss_cred_id_t new_credentials);
411 
412 int
414  const char * resource_manager_contact);
415 
416 int
418  const char * resource_manager_contact,
419  globus_gram_client_attr_t attr,
421  register_callback,
422  void * register_callback_arg);
423 
424 int
426  const char * resource_manager_contact,
427  globus_hashtable_t * extensions);
428 
429 int
431  const char * resource_manager_contact,
432  globus_gram_client_attr_t attr,
434  info_callback,
435  void * callback_arg);
436 
437 void
439 
444 int
446  globus_gram_client_attr_t * attr);
447 int
449  globus_gram_client_attr_t * attr);
450 
451 int
453  globus_gram_client_attr_t attr,
454  gss_cred_id_t credential);
455 
456 int
458  globus_gram_client_attr_t attr,
459  gss_cred_id_t * credential);
460 
461 int
463  globus_gram_client_attr_t attr,
464  globus_io_secure_delegation_mode_t mode);
465 
466 int
468  globus_gram_client_attr_t attr,
469  globus_io_secure_delegation_mode_t *mode);
470 
471 void
474 
475 #define GLOBUS_GRAM_CLIENT_MODULE (&globus_gram_client_module)
476 
477 extern globus_module_descriptor_t globus_gram_client_module;
478 
479 #ifdef __cplusplus
480 }
481 #endif
482 
483 #endif /* GLOBUS_GRAM_CLIENT_H */