diff --git a/src/ftp.c b/src/ftp.c index 9259999..b90ade2 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -1013,3 +1013,7 @@ int ftp_session_get_poll (FTPSession *session) { return session->poll; } +const char *ftp_session_get_user (FTPSession *session) { + return session->user; +} + diff --git a/src/ftp.h b/src/ftp.h index ed24378..ee0af31 100644 --- a/src/ftp.h +++ b/src/ftp.h @@ -56,6 +56,8 @@ int ftp_session_get_control_socket (FTPSession *session); int ftp_session_get_data_socket (FTPSession *session); int ftp_session_get_last_code (FTPSession *session); char * ftp_session_get_last_message (FTPSession *session); +const char *ftp_session_get_user (FTPSession *session); + void ftp_session_free (FTPSession *session); void ftp_session_set_multiline_func (FTPSession *session, FTPLineFunc func, void *data); diff --git a/src/libftpc.sym b/src/libftpc.sym index 36de9c8..9f433c3 100644 --- a/src/libftpc.sym +++ b/src/libftpc.sym @@ -14,3 +14,4 @@ ftp_session_get_last_code ftp_session_get_last_message ftp_session_free ftp_session_set_multiline_func +ftp_session_get_user