This month's Index
Subject: Export default functions in the API
Export default functions in the API
From: Sofian Brabez <sofian.brabez_at_wallix.com>
Date: Wed, 27 Jan 2010 12:01:03 +0100
What do you think replace #define functions by real functions in LIBSSH2_API ?
Let me explain more with libssh2_session_init example below.
Presently we have this definition in include/libssh2.h :
#define libssh2_session_init() libssh2_session_init_ex(NULL, NULL, NULL,
Like that libssh2_session_init is not part of LIBSSH2_API and
nm src/.libs/libssh2.so.1|grep session_init
After change with the following diff in attachment, we don't have
nm src/.libs/libssh2.so.1 |grep session_init
Do you think it's a good idea to change all #define functions ?
-- Sofian Brabez Security R&D Engineer Email: sbz_at_wallix.com Website: www.wallix.com