Initial code commit for Toolkit 1.1.
[silc.git] / lib / silcsftp / silcsftp.h
index 1c75064215ec688f67435856a19e17f11f92d403..b7036a95fe47cf9875c734c8599a422a2500232f 100644 (file)
@@ -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 */