/[hurd]/hurd/libftpconn/ftpconn.h
ViewVC logotype

Diff of /hurd/libftpconn/ftpconn.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by miles, Thu Sep 4 21:18:26 1997 UTC revision 1.12 by roland, Sat Dec 22 20:31:48 2001 UTC
# Line 1  Line 1 
1  /* Manage an ftp connection  /* Manage an ftp connection
2    
3     Copyright (C) 1997 Free Software Foundation, Inc.     Copyright (C) 1997,2001 Free Software Foundation, Inc.
4    
5     Written by Miles Bader <miles@gnu.ai.mit.edu>     Written by Miles Bader <miles@gnu.org>
6    
7     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License as     modify it under the terms of the GNU General Public License as
# Line 60  struct ftp_conn_syshooks Line 60  struct ftp_conn_syshooks
60       of the host referenced by the PASV reply contained in TXT.  */       of the host referenced by the PASV reply contained in TXT.  */
61    error_t (*pasv_addr) (struct ftp_conn *conn, const char *txt,    error_t (*pasv_addr) (struct ftp_conn *conn, const char *txt,
62                          struct sockaddr **addr);                          struct sockaddr **addr);
63      
64    /* Look at the error string in TXT, and try to guess an error code to    /* Look at the error string in TXT, and try to guess an error code to
65       return.  If POSS_ERRS is non-zero, it contains a list of errors       return.  If POSS_ERRS is non-zero, it contains a list of errors
66       that are likely to occur with the previous command, terminated with 0.       that are likely to occur with the previous command, terminated with 0.
# Line 238  error_t ftp_conn_open (struct ftp_conn * Line 238  error_t ftp_conn_open (struct ftp_conn *
238    
239  void ftp_conn_close (struct ftp_conn *conn);  void ftp_conn_close (struct ftp_conn *conn);
240    
 #ifdef __OPTIMIZE__  
241  /* Makes sure that CONN's syshooks are set according to the remote system  /* Makes sure that CONN's syshooks are set according to the remote system
242     type.  */     type.  */
243  FTP_CONN_EI error_t  FTP_CONN_EI error_t
# Line 250  ftp_conn_validate_syshooks (struct ftp_c Line 249  ftp_conn_validate_syshooks (struct ftp_c
249      /* Opening the connection should set the syshooks.  */      /* Opening the connection should set the syshooks.  */
250      return ftp_conn_open (conn);      return ftp_conn_open (conn);
251  }  }
 #endif /* __OPTIMIZE__ */  
252    
253  /* Create a new ftp connection as specified by PARAMS, and return it in CONN;  /* Create a new ftp connection as specified by PARAMS, and return it in CONN;
254     HOOKS contains customization hooks used by the connection.  Neither PARAMS     HOOKS contains customization hooks used by the connection.  Neither PARAMS
# Line 365  error_t ftp_conn_cont_get_names (struct Line 363  error_t ftp_conn_cont_get_names (struct
363    
364  /* Get a list of names in the directory NAME, calling ADD_NAME for each one  /* Get a list of names in the directory NAME, calling ADD_NAME for each one
365     (HOOK is passed to ADD_NAME).  This function may block.  */     (HOOK is passed to ADD_NAME).  This function may block.  */
366  error_t ftp_conn_get_names (struct ftp_conn *conn, const char *name,  error_t ftp_conn_get_names (struct ftp_conn *conn, const char *name,
367                              ftp_conn_add_name_fun_t add_name, void *hook);                              ftp_conn_add_name_fun_t add_name, void *hook);
368    
369  /* Give a name which refers to a directory file, and a name in that  /* Give a name which refers to a directory file, and a name in that

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26