/usr/include/globus/globus_xio_types.h is in libglobus-xio-dev 3.6-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 | /*
* Copyright 1999-2006 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if !defined(GLOBUS_XIO_TYPES_H)
#define GLOBUS_XIO_TYPES_H 1
#include "globus_common.h"
EXTERN_C_BEGIN
#define GLOBUS_XIO_QUERY ((globus_xio_driver_t) 0x01)
/*************************************************************************
* define types
************************************************************************/
typedef struct globus_i_xio_handle_s * globus_xio_handle_t;
typedef struct globus_i_xio_context_entry_s * globus_xio_driver_handle_t;
typedef struct globus_i_xio_op_s * globus_xio_operation_t;
typedef struct globus_i_xio_driver_s * globus_xio_driver_t;
typedef struct globus_i_xio_attr_s * globus_xio_attr_t;
typedef struct globus_i_xio_stack_s * globus_xio_stack_t;
typedef struct globus_i_xio_server_s * globus_xio_server_t;
typedef struct globus_i_xio_server_s * globus_xio_driver_server_t;
typedef struct globus_i_xio_op_s * globus_xio_data_descriptor_t;
typedef struct iovec globus_xio_iovec_t;
/**
* @ingroup GLOBUS_XIO_API
* Operation types
*
* An enumeration of operation types. Used in the timeout callback
* to indicate what operation typed timedout.
*/
typedef enum globus_i_xio_op_type_e
{
GLOBUS_XIO_OPERATION_TYPE_NONE,
GLOBUS_XIO_OPERATION_TYPE_FINISHED,
GLOBUS_XIO_OPERATION_TYPE_OPEN,
GLOBUS_XIO_OPERATION_TYPE_CLOSE,
GLOBUS_XIO_OPERATION_TYPE_READ,
GLOBUS_XIO_OPERATION_TYPE_WRITE,
GLOBUS_XIO_OPERATION_TYPE_ACCEPT,
GLOBUS_XIO_OPERATION_TYPE_DRIVER,
GLOBUS_XIO_OPERATION_TYPE_DD,
GLOBUS_XIO_OPERATION_TYPE_SERVER_INIT
} globus_xio_operation_type_t;
typedef enum globus_i_xio_signal_type_e
{
GLOBUS_XIO_SIGNAL_TYPE_NONE
} globus_xio_signal_type_t;
typedef enum
{
GLOBUS_XIO_ERROR_CANCELED,
GLOBUS_XIO_ERROR_EOF,
GLOBUS_XIO_ERROR_COMMAND,
GLOBUS_XIO_ERROR_CONTACT_STRING,
GLOBUS_XIO_ERROR_PARAMETER,
GLOBUS_XIO_ERROR_MEMORY,
GLOBUS_XIO_ERROR_SYSTEM_ERROR,
GLOBUS_XIO_ERROR_SYSTEM_RESOURCE,
GLOBUS_XIO_ERROR_STACK,
GLOBUS_XIO_ERROR_DRIVER,
GLOBUS_XIO_ERROR_PASS,
GLOBUS_XIO_ERROR_ALREADY_REGISTERED,
GLOBUS_XIO_ERROR_STATE,
GLOBUS_XIO_ERROR_WRAPPED,
GLOBUS_XIO_ERROR_NOT_REGISTERED,
GLOBUS_XIO_ERROR_NOT_ACTIVATED,
GLOBUS_XIO_ERROR_UNLOADED,
GLOBUS_XIO_ERROR_TIMEOUT,
GLOBUS_XIO_ERROR_PARSE
} globus_xio_error_type_t;
/* ALL is all but ACCEPT */
typedef enum
{
GLOBUS_XIO_ATTR_SET_TIMEOUT_ALL,
GLOBUS_XIO_ATTR_SET_TIMEOUT_OPEN,
GLOBUS_XIO_ATTR_SET_TIMEOUT_CLOSE,
GLOBUS_XIO_ATTR_SET_TIMEOUT_READ,
GLOBUS_XIO_ATTR_SET_TIMEOUT_WRITE,
GLOBUS_XIO_ATTR_SET_TIMEOUT_ACCEPT,
GLOBUS_XIO_ATTR_SET_SPACE,
GLOBUS_XIO_ATTR_CLOSE_NO_CANCEL,
GLOBUS_XIO_ATTR_SET_CREDENTIAL,
GLOBUS_XIO_ATTR_GET_CREDENTIAL
} globus_xio_attr_cmd_t;
/** doxygen varargs filter stuff
* GlobusVarArgDefine(
* handle, globus_result_t, globus_xio_handle_cntl, handle, driver)
*/
/**
* Common driver handle cntls.
* @ingroup GLOBUS_XIO_API
*
*/
typedef enum
{
/* Make sure this enum starts at a high number */
/**GlobusVarArgEnum(handle)
* Get local connection info.
* @ingroup GLOBUS_XIO_API
*
* @param contact_string_out
* A pointer to a contact string for the local end of a connected
* handle. Where possible, it will be in symbolic form (FQDN).
*
* The user must free the returned string.
*
* @see globus_xio_server_get_contact_string()
*/
/* char ** contact_string_out */
GLOBUS_XIO_GET_LOCAL_CONTACT = 12345,
/**GlobusVarArgEnum(handle)
* Get local connection info.
* @ingroup GLOBUS_XIO_API
*
* @param contact_string_out
* A pointer to a contact string for the local end of a connected
* handle. Where possible, it will be in numeric form. (IP)
*
* The user must free the returned string.
*/
/* char ** contact_string_out */
GLOBUS_XIO_GET_LOCAL_NUMERIC_CONTACT,
/**GlobusVarArgEnum(handle)
* Get remote connection info.
* @ingroup GLOBUS_XIO_API
*
* @param contact_string_out
* A pointer to a contact string for the remote end of a connected
* handle. Where possible, it will be in symbolic form (FQDN).
*
* The user must free the returned string.
*/
/* char ** contact_string_out */
GLOBUS_XIO_GET_REMOTE_CONTACT,
/**GlobusVarArgEnum(handle)
* Get remote connection info.
* @ingroup GLOBUS_XIO_API
*
* @param contact_string_out
* A pointer to a contact string for the remote end of a connected
* handle. Where possible, it will be in numeric form. (IP)
*
* The user must free the returned string.
*/
/* char ** contact_string_out */
GLOBUS_XIO_GET_REMOTE_NUMERIC_CONTACT,
/** GlobusVarArgEnum(handle)
* Reposition read/write offset.
* @ingroup GLOBUS_XIO_API
*
* @param offset
* Specify the desired offset.
*/
/* globus_off_t offset */
GLOBUS_XIO_SEEK,
/** GlobusVarArgEnum(handle)
* Set the driver specific configuration string. The format of the
* string is defined by the driver. It is typically a set of key=value
* pairs
* @ingroup GLOBUS_XIO_API
*
* @param config_string
* The driver specific parameter string.
*/
/* char * config_string */
GLOBUS_XIO_SET_STRING_OPTIONS
} globus_xio_handle_cmd_t;
typedef enum
{
GLOBUS_XIO_DD_SET_OFFSET,
GLOBUS_XIO_DD_GET_OFFSET
} globus_xio_dd_cmd_t;
typedef enum
{
GLOBUS_XIO_CANCEL_OPEN = 0x01,
GLOBUS_XIO_CANCEL_CLOSE = 0x02,
GLOBUS_XIO_CANCEL_READ = 0x04,
GLOBUS_XIO_CANCEL_WRITE = 0x08
} globus_xio_cancel_t;
typedef enum
{
GLOBUS_XIO_DEBUG_ERROR = 1,
GLOBUS_XIO_DEBUG_WARNING = 2,
GLOBUS_XIO_DEBUG_TRACE = 4,
GLOBUS_XIO_DEBUG_INTERNAL_TRACE = 8,
GLOBUS_XIO_DEBUG_INFO = 16,
GLOBUS_XIO_DEBUG_STATE = 32,
GLOBUS_XIO_DEBUG_INFO_VERBOSE = 64
} globus_xio_debug_levels_t;
typedef struct
{
char * unparsed;
char * resource;
char * host;
char * port;
char * scheme;
char * user;
char * pass;
char * subject;
} globus_xio_contact_t;
typedef struct globus_xio_driver_list_ent_s
{
globus_xio_driver_t driver;
char * driver_name;
char * opts;
void * user_arg;
globus_bool_t loaded;
}globus_xio_driver_list_ent_t;
EXTERN_C_END
#endif
|