/********************************************************************* * IBM Confidential (IBM Confidential-Restricted when combined with the * Aggregated OCO Source Modules for this program) * * OCO Source Materials * * (C) Copyright IBM Corp. 1994 * (C) Copyright Microsoft Corporation 1995 * Unpublished Work - All Rights Reserved * Licensed Material - Property of IBM * * US Government Users Restricted * Rights - Use, duplication or disclosure * restricted by GSA ADP Schedule Contract with IBM Corp. * **********************************************************************/ /* * NOTE: * The appropriate system value must be defined for your platform. * The following system values are supported: * CM_OS2 * CM_DOS * CM_AIX * CM_MVS * CM_VM * CM_OS400 * CM_WINNT *W32* * * This is necessary for the proper setting of * AFTP_ENTRY and AFTP_PTR below. */ /* * This file is organized as follows: * - product specific preprocessor directives that must be before all * other declarations * - AFTP type definitions * - AFTP constants definitions * - AFTP function long to short name mapping * - AFTP function prototypes */ /*****************************************************************************/ /* Change History */ /* W32 18/02/95 SOS Win32 port */ /*****************************************************************************/ #ifndef _aftp_h #define _aftp_h #if defined (CM_WINNT) /*W32*/ /*W32*/ #define WINSNA /*W32*/ #define AFTP_ENTRY extern void WINAPI /*W32*/ #define AFTP_PTR * /*W32*/ /*W32*/ #elif defined( CM_DOS ) || defined( CM_OS2 ) /*W32*/ #if !defined(__32BIT__) # define AFTP_ENTRY extern void pascal far _loadds # define AFTP_PTR far * #else # define AFTP_ENTRY extern void _Far16 _Pascal # define AFTP_PTR * _Seg16 #endif #elif defined( CM_MVS ) || defined( CM_OS400 ) || \ defined( CM_VM ) || defined(CM_AIX) # define AFTP_ENTRY extern void # define AFTP_PTR * #endif /* Define pseudo-keywords IN and OUT if not defined yet */ #ifndef IN #define IN #endif #ifndef OUT #define OUT #endif /********************************************************************** * AFTP Type Definitions **********************************************************************/ typedef unsigned char AFTP_HANDLE_TYPE[8]; typedef unsigned long AFTP_ALLOCATION_SIZE_TYPE; typedef unsigned long AFTP_BLOCK_SIZE_TYPE; typedef unsigned long AFTP_BOOLEAN_TYPE; #if defined (CM_WINNT) /*W32*/ typedef signed long AFTP_DATA_TYPE_TYPE; /*W32*/ #else /*W32*/ typedef unsigned long AFTP_DATA_TYPE_TYPE; #endif /*W32*/ typedef unsigned long AFTP_DATE_MODE_TYPE; typedef unsigned long AFTP_DETAIL_LEVEL_TYPE; typedef unsigned long AFTP_FILE_MODE_TYPE; typedef unsigned long AFTP_FILE_SIZE_TYPE; typedef unsigned long AFTP_FILE_TIME_TYPE; typedef unsigned long AFTP_FILE_TYPE_TYPE; typedef unsigned long AFTP_INFO_LEVEL_TYPE; typedef unsigned long AFTP_LENGTH_TYPE; typedef unsigned long AFTP_RETURN_CODE_TYPE; typedef unsigned long AFTP_RECORD_FORMAT_TYPE; typedef unsigned long AFTP_RECORD_LENGTH_TYPE; typedef unsigned long AFTP_SECURITY_TYPE; typedef unsigned long AFTP_TRACE_LEVEL_TYPE; typedef unsigned long AFTP_VERSION_TYPE; typedef unsigned long AFTP_WRITE_MODE_TYPE; /********************************************************************** * AFTP Constant Definitions **********************************************************************/ /* Supported Data Transfer Types */ #define AFTP_ASCII ((AFTP_DATA_TYPE_TYPE)0) #define AFTP_BINARY ((AFTP_DATA_TYPE_TYPE)1) #define AFTP_EBCDIC ((AFTP_DATA_TYPE_TYPE)2) #define AFTP_DEFAULT_DATA_TYPE ((AFTP_DATA_TYPE_TYPE)3) /* Supported File Date Modes */ #define AFTP_OLDDATE ((AFTP_DATE_MODE_TYPE)0) #define AFTP_NEWDATE ((AFTP_DATE_MODE_TYPE)1) /* Format Error Detail Levels */ #define AFTP_DETAIL_RC ((AFTP_DETAIL_LEVEL_TYPE)1) #define AFTP_DETAIL_SECOND ((AFTP_DETAIL_LEVEL_TYPE)2) #define AFTP_DETAIL_LOG ((AFTP_DETAIL_LEVEL_TYPE)4) #define AFTP_DETAIL_INFO ((AFTP_DETAIL_LEVEL_TYPE)8) #define AFTP_DETAIL_ALL ((AFTP_DETAIL_LEVEL_TYPE)15) /* File Types, Requested and Returned */ #define AFTP_FILE ((AFTP_FILE_TYPE_TYPE)1) #define AFTP_DIRECTORY ((AFTP_FILE_TYPE_TYPE)2) #define AFTP_ALL_FILES ((AFTP_FILE_TYPE_TYPE) \ (AFTP_FILE | AFTP_DIRECTORY)) /* Info Level for aftp_dir_open() */ #define AFTP_NATIVE_FILENAMES ((AFTP_INFO_LEVEL_TYPE)0) #define AFTP_NATIVE_ATTRIBUTES ((AFTP_INFO_LEVEL_TYPE)1) /* Return Codes */ #define AFTP_RC_OK ((AFTP_RETURN_CODE_TYPE)0) #define AFTP_RC_COMM_FAIL_NO_RETRY ((AFTP_RETURN_CODE_TYPE)1) #define AFTP_RC_COMM_FAIL_RETRY ((AFTP_RETURN_CODE_TYPE)2) #define AFTP_RC_COMM_CONFIG_LOCAL ((AFTP_RETURN_CODE_TYPE)3) #define AFTP_RC_COMM_CONFIG_REMOTE ((AFTP_RETURN_CODE_TYPE)4) #define AFTP_RC_SECURITY_NOT_VALID ((AFTP_RETURN_CODE_TYPE)5) #define AFTP_RC_FAIL_INPUT_ERROR ((AFTP_RETURN_CODE_TYPE)6) #define AFTP_RC_FAIL_RETRY ((AFTP_RETURN_CODE_TYPE)7) #define AFTP_RC_FAIL_NO_RETRY ((AFTP_RETURN_CODE_TYPE)8) #define AFTP_RC_FAIL_FATAL ((AFTP_RETURN_CODE_TYPE)9) #define AFTP_RC_PROGRAM_INTERNAL_ERROR ((AFTP_RETURN_CODE_TYPE)10) #define AFTP_RC_PARAMETER_CHECK ((AFTP_RETURN_CODE_TYPE)11) #define AFTP_RC_HANDLE_NOT_VALID ((AFTP_RETURN_CODE_TYPE)12) #define AFTP_RC_STATE_CHECK ((AFTP_RETURN_CODE_TYPE)13) #define AFTP_RC_BUFFER_TOO_SMALL ((AFTP_RETURN_CODE_TYPE)14) /* Supported Record Formats */ #define AFTP_DEFAULT_RECORD_FORMAT ((AFTP_RECORD_FORMAT_TYPE)0) #define AFTP_V ((AFTP_RECORD_FORMAT_TYPE)1) #define AFTP_VA ((AFTP_RECORD_FORMAT_TYPE)2) #define AFTP_VB ((AFTP_RECORD_FORMAT_TYPE)3) #define AFTP_VM ((AFTP_RECORD_FORMAT_TYPE)4) #define AFTP_VS ((AFTP_RECORD_FORMAT_TYPE)5) #define AFTP_VBA ((AFTP_RECORD_FORMAT_TYPE)6) #define AFTP_VBM ((AFTP_RECORD_FORMAT_TYPE)7) #define AFTP_VBS ((AFTP_RECORD_FORMAT_TYPE)8) #define AFTP_VSA ((AFTP_RECORD_FORMAT_TYPE)9) #define AFTP_VSM ((AFTP_RECORD_FORMAT_TYPE)10) #define AFTP_VBSA ((AFTP_RECORD_FORMAT_TYPE)11) #define AFTP_VBSM ((AFTP_RECORD_FORMAT_TYPE)12) #define AFTP_F ((AFTP_RECORD_FORMAT_TYPE)13) #define AFTP_FA ((AFTP_RECORD_FORMAT_TYPE)14) #define AFTP_FB ((AFTP_RECORD_FORMAT_TYPE)15) #define AFTP_FM ((AFTP_RECORD_FORMAT_TYPE)16) #define AFTP_FBA ((AFTP_RECORD_FORMAT_TYPE)17) #define AFTP_FBM ((AFTP_RECORD_FORMAT_TYPE)18) #define AFTP_FBS ((AFTP_RECORD_FORMAT_TYPE)19) #define AFTP_FBSM ((AFTP_RECORD_FORMAT_TYPE)20) #define AFTP_FBSA ((AFTP_RECORD_FORMAT_TYPE)21) #define AFTP_U ((AFTP_RECORD_FORMAT_TYPE)22) #define AFTP_UA ((AFTP_RECORD_FORMAT_TYPE)23) #define AFTP_UM ((AFTP_RECORD_FORMAT_TYPE)24) /* Conversation Security Type Values */ #define AFTP_SECURITY_NONE ((AFTP_SECURITY_TYPE)0) #define AFTP_SECURITY_SAME ((AFTP_SECURITY_TYPE)1) #define AFTP_SECURITY_PROGRAM ((AFTP_SECURITY_TYPE)2) /* Trace Levels */ #define AFTP_LVL_NO_TRACING ((AFTP_TRACE_LEVEL_TYPE) (0)) #define AFTP_LVL_FAILURES ((AFTP_TRACE_LEVEL_TYPE) (10)) #define AFTP_LVL_API ((AFTP_TRACE_LEVEL_TYPE) (20)) #define AFTP_LVL_MODULE ((AFTP_TRACE_LEVEL_TYPE) (30)) #define AFTP_LVL_FUNCTION ((AFTP_TRACE_LEVEL_TYPE) (40)) #define AFTP_LVL_IO_OPEN_CLOSE ((AFTP_TRACE_LEVEL_TYPE) (50)) #define AFTP_LVL_LINE_FLOW ((AFTP_TRACE_LEVEL_TYPE) (100)) #define AFTP_LVL_IO_READ_WRITE ((AFTP_TRACE_LEVEL_TYPE) (110)) #define AFTP_LVL_STATUS_DUMP ((AFTP_TRACE_LEVEL_TYPE) (120)) #define AFTP_LVL_VARIABLE ((AFTP_TRACE_LEVEL_TYPE) (130)) #define AFTP_LVL_LOCATION ((AFTP_TRACE_LEVEL_TYPE) (140)) #define AFTP_LVL_DATA_TRACE ((AFTP_TRACE_LEVEL_TYPE) (170)) #define AFTP_LVL_LOOPLOC ((AFTP_TRACE_LEVEL_TYPE) (200)) #define AFTP_MAX_TRACE_LVL AFTP_LVL_LOOPLOC /* Supported File Write Modes */ #define AFTP_REPLACE ((AFTP_WRITE_MODE_TYPE)0) #define AFTP_APPEND ((AFTP_WRITE_MODE_TYPE)1) #define AFTP_NOREPLACE ((AFTP_WRITE_MODE_TYPE)2) #define AFTP_STOREUNIQUE ((AFTP_WRITE_MODE_TYPE)3) /* AFTP buffer lengths */ #define AFTP_FILE_NAME_SIZE ((AFTP_LENGTH_TYPE)512) #define AFTP_FQLU_NAME_SIZE ((AFTP_LENGTH_TYPE)64) #define AFTP_MODE_NAME_SIZE ((AFTP_LENGTH_TYPE)8) #define AFTP_PASSWORD_SIZE ((AFTP_LENGTH_TYPE)10) #define AFTP_TP_NAME_SIZE ((AFTP_LENGTH_TYPE)64) #define AFTP_USERID_SIZE ((AFTP_LENGTH_TYPE)10) #define AFTP_MESSAGE_SIZE ((AFTP_LENGTH_TYPE)2048) #define AFTP_DATA_TYPE_SIZE ((AFTP_LENGTH_TYPE)64) #define AFTP_DATE_MODE_SIZE ((AFTP_LENGTH_TYPE)64) #define AFTP_RECORD_FORMAT_SIZE ((AFTP_LENGTH_TYPE)64) #define AFTP_WRITE_MODE_SIZE ((AFTP_LENGTH_TYPE)64) #define AFTP_SYSTEM_INFO_SIZE ((AFTP_LENGTH_TYPE)512) /********************************************************************** * AFTP Long to Short Function Name Mapping **********************************************************************/ #define aftp_change_dir FTCD #define aftp_close FTCLOSE #define aftp_connect FTCONN #define aftp_create FTCREATE #define aftp_create_dir FTCRTDIR #define aftp_delete FTDEL #define aftp_destroy FTDESTRY #define aftp_dir_close FTDIRCLS #define aftp_dir_open FTDIROPN #define aftp_dir_read FTDIRRD #define aftp_extract_allocation_size FTEAS #define aftp_extract_block_size FTEBS #define aftp_extract_date_mode FTEDM #define aftp_extract_destination FTEDST #define aftp_extract_data_type FTEDT #define aftp_extract_mode_name FTEMN #define aftp_extract_partner_LU_name FTEPLU #define aftp_extract_password FTEPW #define aftp_extract_record_format FTERF #define aftp_extract_record_length FTERL #define aftp_extract_security_type FTEST #define aftp_extract_tp_name FTETPN #define aftp_extract_trace_level FTETL #define aftp_extract_userid FTEUI #define aftp_extract_write_mode FTEWM #define aftp_format_error FTFE #define aftp_get_date_mode_string FTGDMS #define aftp_get_data_type_string FTGDTS #define aftp_get_record_format_string FTGRFS #define aftp_get_write_mode_string FTGWMS #define aftp_local_change_dir FTLCD #define aftp_local_dir_close FTLDC #define aftp_local_dir_open FTLDO #define aftp_local_dir_read FTLDR #define aftp_load_ini_file FTLIF #define aftp_local_query_current_dir FTLQCD #define aftp_query_bytes_transferred FTQBT #define aftp_query_current_dir FTQCD #define aftp_query_local_system_info FTQLSI #define aftp_query_local_version FTQLV #define aftp_query_system_info FTQSYS #define aftp_remove_dir FTRD #define aftp_receive_file FTRECV #define aftp_rename FTREN #define aftp_set_allocation_size FTSAS #define aftp_set_block_size FTSBS #define aftp_set_destination FTSDEST #define aftp_set_date_mode FTSDM #define aftp_set_data_type FTSDT #define aftp_send_file FTSEND #define aftp_set_mode_name FTSMN #define aftp_set_password FTSP #define aftp_set_record_format FTSRF #define aftp_set_record_length FTSRL #define aftp_set_security_type FTSST #define aftp_set_trace_filename FTSTF #define aftp_set_trace_level FTSTL #define aftp_set_tp_name FTSTP #define aftp_set_userid FTSU #define aftp_set_write_mode FTSWM #define ftcd FTCD #define ftclose FTCLOSE #define ftconn FTCONN #define ftcreate FTCREATE #define ftcrtdir FTCRTDIR #define ftdel FTDEL #define ftdestry FTDESTRY #define ftdircls FTDIRCLS #define ftdiropn FTDIROPN #define ftdirrd FTDIRRD #define fteas FTEAS #define ftebs FTEBS #define ftedm FTEDM #define ftedst FTEDST #define ftedt FTEDT #define ftemn FTEMN #define fteplu FTEPLU #define ftepw FTEPW #define fterf FTERF #define fterl FTERL #define ftest FTEST #define ftetpn FTETPN #define fteui FTEUI #define ftewm FTEWM #define ftfe FTFE #define ftgdms FTGDMS #define ftgdts FTGDTS #define ftgrfs FTGRFS #define ftgwms FTGWMS #define ftlcd FTLCD #define ftldc FTLDC #define ftldo FTLDO #define ftldr FTLDR #define ftlif FTLIF #define ftlqcd FTLQCD #define ftqbt FTQBT #define ftqcd FTQCD #define ftqlsi FTQLSI #define ftqlv FTQLV #define ftqsys FTQSYS #define ftrd FTRD #define ftrecv FTRECV #define ftren FTREN #define ftsas FTSAS #define ftsbs FTSBS #define ftsdest FTSDEST #define ftsdm FTSDM #define ftsdt FTSDT #define ftsend FTSEND #define ftstl FTSTL #define ftstf FTSTF #define ftetl FTETL #define ftsmn FTSMN #define ftsp FTSP #define ftsrf FTSRF #define ftsrl FTSRL #define ftsst FTSST #define ftstp FTSTP #define ftsu FTSU #define ftswm FTSWM /********************************************************************** * AFTP Function Prototypes **********************************************************************/ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ AFTP_ENTRY aftp_change_dir( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR directory, IN AFTP_LENGTH_TYPE length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_close( IN unsigned char AFTP_PTR connection_id, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_connect( IN unsigned char AFTP_PTR connection_id, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_create( OUT unsigned char AFTP_PTR connection_id, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_create_dir( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR directory, IN AFTP_LENGTH_TYPE length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_delete( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR filename, IN AFTP_LENGTH_TYPE length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_destroy( IN unsigned char AFTP_PTR connection_id, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_dir_close( IN unsigned char AFTP_PTR connection_id, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_dir_open( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR filespec, IN AFTP_LENGTH_TYPE length, IN AFTP_FILE_TYPE_TYPE file_type, IN AFTP_INFO_LEVEL_TYPE info_level, OUT unsigned char AFTP_PTR path, IN AFTP_LENGTH_TYPE path_buffer_length, OUT AFTP_LENGTH_TYPE AFTP_PTR path_returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_dir_read( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR dir_entry, IN AFTP_LENGTH_TYPE dir_entry_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_BOOLEAN_TYPE AFTP_PTR no_more_entries, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_allocation_size( IN unsigned char AFTP_PTR connection_id, OUT AFTP_ALLOCATION_SIZE_TYPE AFTP_PTR allocation_size, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_block_size( IN unsigned char AFTP_PTR connection_id, OUT AFTP_BLOCK_SIZE_TYPE AFTP_PTR block_size, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_data_type( IN unsigned char AFTP_PTR connection_id, OUT AFTP_DATA_TYPE_TYPE AFTP_PTR data_type, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_date_mode( IN unsigned char AFTP_PTR connection_id, OUT AFTP_DATE_MODE_TYPE AFTP_PTR date_mode, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_destination( IN unsigned char AFTP_PTR connection_id, OUT unsigned char AFTP_PTR destination, IN AFTP_LENGTH_TYPE destination_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_mode_name( IN unsigned char AFTP_PTR connection_id, OUT unsigned char AFTP_PTR mode_name, IN AFTP_LENGTH_TYPE mode_name_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_partner_LU_name( IN unsigned char AFTP_PTR connection_id, OUT unsigned char AFTP_PTR partner_LU_name, IN AFTP_LENGTH_TYPE partner_LU_name_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_password( IN unsigned char AFTP_PTR connection_id, OUT unsigned char AFTP_PTR password, IN AFTP_LENGTH_TYPE password_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_record_format( IN unsigned char AFTP_PTR connection_id, OUT AFTP_RECORD_FORMAT_TYPE AFTP_PTR record_format, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_record_length( IN unsigned char AFTP_PTR connection_id, OUT AFTP_RECORD_LENGTH_TYPE AFTP_PTR record_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_security_type( IN unsigned char AFTP_PTR connection_id, OUT AFTP_SECURITY_TYPE AFTP_PTR security_type, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_tp_name( IN unsigned char AFTP_PTR connection_id, OUT unsigned char AFTP_PTR tp_name, IN AFTP_LENGTH_TYPE tp_name_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_trace_level( OUT AFTP_TRACE_LEVEL_TYPE AFTP_PTR trace_level, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_userid( IN unsigned char AFTP_PTR connection_id, OUT unsigned char AFTP_PTR userid, IN AFTP_LENGTH_TYPE userid_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_extract_write_mode( IN unsigned char AFTP_PTR connection_id, OUT AFTP_WRITE_MODE_TYPE AFTP_PTR write_mode, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_format_error( IN unsigned char AFTP_PTR connection_id, IN AFTP_DETAIL_LEVEL_TYPE detail_level, OUT unsigned char AFTP_PTR error_str, IN AFTP_LENGTH_TYPE error_str_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_get_data_type_string( IN AFTP_DATA_TYPE_TYPE data_type, OUT unsigned char AFTP_PTR data_type_string, IN AFTP_LENGTH_TYPE data_type_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_get_date_mode_string( IN AFTP_DATE_MODE_TYPE date_mode, OUT unsigned char AFTP_PTR date_mode_string, IN AFTP_LENGTH_TYPE date_mode_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_get_record_format_string( IN AFTP_RECORD_FORMAT_TYPE record_format, OUT unsigned char AFTP_PTR record_format_string, IN AFTP_LENGTH_TYPE record_format_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_get_write_mode_string( IN AFTP_WRITE_MODE_TYPE write_mode, OUT unsigned char AFTP_PTR write_mode_string, IN AFTP_LENGTH_TYPE write_mode_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_load_ini_file( IN unsigned char AFTP_PTR filename, IN AFTP_LENGTH_TYPE filename_size, IN unsigned char AFTP_PTR program_path, IN AFTP_LENGTH_TYPE path_size, OUT unsigned char AFTP_PTR error_string, IN AFTP_LENGTH_TYPE error_string_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_local_change_dir( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR directory, IN AFTP_LENGTH_TYPE length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_local_dir_close( IN unsigned char AFTP_PTR connection_id, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_local_dir_open( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR filespec, IN AFTP_LENGTH_TYPE length, IN AFTP_FILE_TYPE_TYPE file_type, IN AFTP_INFO_LEVEL_TYPE info_level, OUT unsigned char AFTP_PTR path, IN AFTP_LENGTH_TYPE path_buffer_length, OUT AFTP_LENGTH_TYPE AFTP_PTR path_returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_local_dir_read( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR dir_entry, IN AFTP_LENGTH_TYPE dir_entry_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_BOOLEAN_TYPE AFTP_PTR no_more_entries, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_local_query_current_dir( IN unsigned char AFTP_PTR connection_id, OUT unsigned char AFTP_PTR directory, IN AFTP_LENGTH_TYPE directory_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_query_bytes_transferred( IN unsigned char AFTP_PTR connection_id, OUT AFTP_LENGTH_TYPE AFTP_PTR bytes_transferred, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_query_current_dir( IN unsigned char AFTP_PTR connection_id, OUT unsigned char AFTP_PTR directory, IN AFTP_LENGTH_TYPE directory_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_query_local_version( OUT AFTP_VERSION_TYPE AFTP_PTR major_version, OUT AFTP_VERSION_TYPE AFTP_PTR minor_version, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_query_local_system_info( IN unsigned char AFTP_PTR connection_id, OUT unsigned char AFTP_PTR system_info, IN AFTP_LENGTH_TYPE system_info_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_query_system_info( IN unsigned char AFTP_PTR connection_id, OUT unsigned char AFTP_PTR system_info, IN AFTP_LENGTH_TYPE system_info_size, OUT AFTP_LENGTH_TYPE AFTP_PTR returned_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_receive_file( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR local_file, IN AFTP_LENGTH_TYPE local_file_length, IN unsigned char AFTP_PTR remote_file, IN AFTP_LENGTH_TYPE remote_file_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_remove_dir( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR directory, IN AFTP_LENGTH_TYPE length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_rename( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR oldfile, IN AFTP_LENGTH_TYPE oldlength, IN unsigned char AFTP_PTR newfile, IN AFTP_LENGTH_TYPE newlength, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_send_file( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR local_file, IN AFTP_LENGTH_TYPE local_file_length, IN unsigned char AFTP_PTR remote_file, IN AFTP_LENGTH_TYPE remote_file_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_allocation_size( IN unsigned char AFTP_PTR connection_id, IN AFTP_ALLOCATION_SIZE_TYPE allocation_size, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_block_size( IN unsigned char AFTP_PTR connection_id, IN AFTP_BLOCK_SIZE_TYPE block_size, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_data_type( IN unsigned char AFTP_PTR connection_id, IN AFTP_DATA_TYPE_TYPE data_type, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_date_mode( IN unsigned char AFTP_PTR connection_id, IN AFTP_DATE_MODE_TYPE date_mode, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_destination( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR destination, IN AFTP_LENGTH_TYPE length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_mode_name( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR mode_name, IN AFTP_LENGTH_TYPE length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_password( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR password, IN AFTP_LENGTH_TYPE length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_record_format( IN unsigned char AFTP_PTR connection_id, IN AFTP_RECORD_FORMAT_TYPE record_format, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_record_length( IN unsigned char AFTP_PTR connection_id, IN AFTP_RECORD_LENGTH_TYPE record_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_security_type( IN unsigned char AFTP_PTR connection_id, IN AFTP_SECURITY_TYPE security_type, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_tp_name( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR tp_name, IN AFTP_LENGTH_TYPE length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_trace_filename( IN unsigned char AFTP_PTR filename, IN AFTP_LENGTH_TYPE filename_length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_trace_level( IN AFTP_TRACE_LEVEL_TYPE trace_level, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_userid( IN unsigned char AFTP_PTR connection_id, IN unsigned char AFTP_PTR userid, IN AFTP_LENGTH_TYPE length, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); AFTP_ENTRY aftp_set_write_mode( IN unsigned char AFTP_PTR connection_id, IN AFTP_WRITE_MODE_TYPE write_mode, OUT AFTP_RETURN_CODE_TYPE AFTP_PTR rc); #ifdef __cplusplus } #endif /* __cplusplus */ #endif