fix warning issue.
[platform/core/connectivity/smartcard-service.git] / client / ClientGDBus.cpp
old mode 100644 (file)
new mode 100755 (executable)
index f2c572e..8a3bb8b
  * limitations under the License.
  */
 
+/* standard library header */
 #include <glib.h>
 
+/* SLP library header */
+
+/* local header */
 #include "smartcard-types.h"
 #include "Debug.h"
 #include "ByteArray.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 */