From 2424bfa5a7e958cf613cf9a9a5f70f94e890c64b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Arreola=20Rodr=C3=ADguez?= Date: Sun, 18 Sep 2022 21:54:12 -0500 Subject: [PATCH] =?UTF-8?q?Agrego=20funci=C3=B3n=20para=20regresar=20usuar?= =?UTF-8?q?io=20de=20la=20sesi=C3=B3n.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ftp.c | 4 ++++ src/ftp.h | 2 ++ src/libftpc.sym | 1 + 3 files changed, 7 insertions(+) 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