00001 /* 00002 * Copyright 1999-2006 University of Chicago 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #ifndef GLOBUS_XIO_ORDERING_DRIVER_H 00018 #define GLOBUS_XIO_ORDERING_DRIVER_H 00019 00025 #include "globus_common.h" 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 00119 typedef enum 00120 { 00124 GLOBUS_XIO_ORDERING_ERROR_READ, 00128 GLOBUS_XIO_ORDERING_ERROR_CANCEL 00129 00130 } globus_xio_ordering_error_type_t; 00131 00132 00137 typedef enum 00138 { 00147 /* globus_off_t offset */ 00148 GLOBUS_XIO_ORDERING_SET_OFFSET, 00149 00158 /* int max_read_count */ 00159 GLOBUS_XIO_ORDERING_SET_MAX_READ_COUNT, 00160 00168 /* int * max_read_count_out */ 00169 GLOBUS_XIO_ORDERING_GET_MAX_READ_COUNT, 00170 00184 /* globus_bool_t buffering */ 00185 GLOBUS_XIO_ORDERING_SET_BUFFERING, 00186 00194 /* globus_bool_t * buffering_out */ 00195 GLOBUS_XIO_ORDERING_GET_BUFFERING, 00196 00205 /* int buf_size */ 00206 GLOBUS_XIO_ORDERING_SET_BUF_SIZE, 00207 00215 /* int * buf_size_out */ 00216 GLOBUS_XIO_ORDERING_GET_BUF_SIZE, 00217 00226 /* int max_buf_count */ 00227 GLOBUS_XIO_ORDERING_SET_MAX_BUF_COUNT, 00228 00236 /* int * max_buf_count_out */ 00237 GLOBUS_XIO_ORDERING_GET_MAX_BUF_COUNT 00238 00239 } globus_xio_ordering_cmd_t; 00240 00241 #ifdef __cplusplus 00242 } 00243 #endif 00244 00245 #endif /* GLOBUS_XIO_ORDERING_DRIVER_H */