From 74766de98a9a667e7471e4075714a0f2aeedc010 Mon Sep 17 00:00:00 2001 From: PerryWerneck Date: Thu, 2 Mar 2017 22:39:35 -0300 Subject: [PATCH] Movend a função de conexão por URL para a biblioteca principal para simplificar a biblioteca de IPC. --- connect.c | 13 +++++++++++++ 1 file changed, 13 insertions(+), 0 deletions(-) diff --git a/connect.c b/connect.c index 2d4d68d..3dd185c 100644 --- a/connect.c +++ b/connect.c @@ -180,6 +180,19 @@ static void net_connected(H3270 *hSession, int fd, LIB3270_IO_FLAG flag, void *d } #endif // WIN32 + LIB3270_EXPORT int lib3270_connect_url(H3270 *hSession, const char *url, int wait) + { + CHECK_SESSION_HANDLE(hSession); + + if(url && *url) + { + lib3270_set_url(hSession,url); + } + + return lib3270_connect(hSession, wait); + + } + LIB3270_EXPORT int lib3270_connect_host(H3270 *hSession, const char *hostname, const char *srvc, LIB3270_OPTION opt) { CHECK_SESSION_HANDLE(hSession); -- libgit2 0.21.2