X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcsftp%2Fsilcsftp.h;h=b7036a95fe47cf9875c734c8599a422a2500232f;hp=1c75064215ec688f67435856a19e17f11f92d403;hb=0f0340b9fbce9704cc7171f8f0104ce9103d2de6;hpb=d60003d3019371d4ce834a6cbfbf41c257f5a5f7 diff --git a/lib/silcsftp/silcsftp.h b/lib/silcsftp/silcsftp.h index 1c750642..b7036a95 100644 --- a/lib/silcsftp/silcsftp.h +++ b/lib/silcsftp/silcsftp.h @@ -386,8 +386,7 @@ typedef void (*SilcSFTPExtendedCallback)(SilcSFTP sftp, * * SYNOPSIS * - * SilcSFTP silc_sftp_client_start(SilcSFTPSendPacketCallback send_packet, - * void *send_context, + * SilcSFTP silc_sftp_client_start(SilcStream stream, * SilcSFTPVersionCallback callback, * void *context); * @@ -397,12 +396,11 @@ typedef void (*SilcSFTPExtendedCallback)(SilcSFTP sftp, * indicated by the `callback' will be called after the SFTP session has * been started and server has returned the version of the protocol. The * SFTP client context is returned in the callback too. This returns the - * allocated SFTP client context or NULL on error. Each socket connection - * should allocate their own SFTP client by calling this function. + * allocated SFTP client context or NULL on error. The `stream' will be + * used to read from and write to the SFTP packets. * ***/ -SilcSFTP silc_sftp_client_start(SilcSFTPSendPacketCallback send_packet, - void *send_context, +SilcSFTP silc_sftp_client_start(SilcStream stream, SilcSFTPVersionCallback callback, void *context); @@ -421,13 +419,6 @@ SilcSFTP silc_sftp_client_start(SilcSFTPSendPacketCallback send_packet, ***/ void silc_sftp_client_shutdown(SilcSFTP sftp); -/* Function that is called to process the incmoing SFTP packet. */ -/* XXX Some day this will go away and we have automatic receive callbacks - for SilcSocketConnection API or SilcPacketContext API. */ -void silc_sftp_client_receive_process(SilcSFTP sftp, - SilcSocketConnection sock, - SilcPacketContext *packet); - /****f* silcsftp/SilcSFTPAPI/silc_sftp_open * * SYNOPSIS @@ -993,11 +984,4 @@ void silc_sftp_server_set_monitor(SilcSFTP sftp, SilcSFTPMonitor monitor, void *context); -/* Function that is called to process the incmoing SFTP packet. */ -/* XXX Some day this will go away and we have automatic receive callbacks - for SilcSocketConnection API or SilcPacketContext API. */ -void silc_sftp_server_receive_process(SilcSFTP sftp, - SilcSocketConnection sock, - SilcPacketContext *packet); - #endif /* SILCSFTP_H */