Grid Community Toolkit  6.2.1629922860 (tag: v6.2.20210826)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
globus_gass_server_ez.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 
28 #ifndef GLOBUS_GASS_SERVER_EZ_H
29 #define GLOBUS_GASS_SERVER_EZ_H 1
30 
31 #include "globus_gass_transfer.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 #define GLOBUS_GASS_SERVER_EZ_LINE_BUFFER 1UL
38 #define GLOBUS_GASS_SERVER_EZ_TILDE_EXPAND 2UL
39 #define GLOBUS_GASS_SERVER_EZ_TILDE_USER_EXPAND 4UL
40 #define GLOBUS_GASS_SERVER_EZ_READ_ENABLE 8UL
41 #define GLOBUS_GASS_SERVER_EZ_WRITE_ENABLE 16UL
42 #define GLOBUS_GASS_SERVER_EZ_STDOUT_ENABLE 32UL
43 #define GLOBUS_GASS_SERVER_EZ_STDERR_ENABLE 64UL
44 #define GLOBUS_GASS_SERVER_EZ_CLIENT_SHUTDOWN_ENABLE 128UL
45 
46 #if (GLOBUS_GASS_SERVER_EZ_TILDE_EXPAND != GLOBUS_TILDE_EXPAND)
47 #error "Inconsistant definition of GLOBUS_GASS_SERVER_EZ_TILDE_EXPAND and GLOBUS_TILDE_EXPAND"
48 #endif
49 #if (GLOBUS_GASS_SERVER_EZ_TILDE_USER_EXPAND != GLOBUS_TILDE_USER_EXPAND)
50 #error "Inconsistant definition of GLOBUS_GASS_SERVER_EZ_TILDE_USER_EXPAND and GLOBUS_TILDE_USER_EXPAND"
51 #endif
52 
53 typedef void (*globus_gass_server_ez_client_shutdown_t) (void);
54 
55 int
56 globus_gass_server_ez_init(globus_gass_transfer_listener_t * listener,
57  globus_gass_transfer_listenerattr_t * attr,
58  char * scheme,
59  globus_gass_transfer_requestattr_t * reqattr,
60  unsigned long options,
61  globus_gass_server_ez_client_shutdown_t callback);
62 
63 int
64 globus_gass_server_ez_shutdown(globus_gass_transfer_listener_t listener);
65 
66 #define globus_gass_server_ez_poll() globus_poll()
67 /******************************************************************************
68  * Module Definition
69  *****************************************************************************/
70 
71 extern globus_module_descriptor_t globus_i_gass_server_ez_module;
72 
73 #define GLOBUS_GASS_SERVER_EZ_MODULE (&globus_i_gass_server_ez_module)
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif /* GLOBUS_GASS_SERVER_EZ_H */
GASS transfer.
Module Descriptor.
Definition: globus_module.h:71