* limitations under the License.
*/
-#ifdef USE_GDBUS
/* standard library header */
#include <glib.h>
using namespace std;
+/* below functions will be called when dlopen or dlclose is called */
+void __attribute__ ((constructor)) lib_init()
+{
+ /* remove for deprecated-declarations build warning: glib ver > 2.36 */
+#if !GLIB_CHECK_VERSION (2, 35, 0)
+ g_type_init();
+#endif
+}
+
+void __attribute__ ((destructor)) lib_fini()
+{
+}
+
namespace smartcard_service_api
{
} /* namespace smartcard_service_api */
-#endif