Added SILC errno API. Added SilcResult, generic error code and
[silc.git] / lib / silcutil / silcdll.c
index 20acef0b20a8889babdd865f64dc8cd306448450..59ca44d50b778af146017d794194294f96567d36 100644 (file)
@@ -38,7 +38,8 @@ SilcDll silc_dll_load(const char *object_path)
 #else
   /* XXX Symbian */
 #endif /* SILC_UNIX */
-  SILC_LOG_ERROR(("Shared objects are not supported on this platform"));
+  silc_set_errno_reason(SILC_ERR_NOT_SUPPORTED,
+                       "Shared objects are not supported on this platform");
   return NULL;
 }
 
@@ -66,7 +67,8 @@ void *silc_dll_getsym(SilcDll dll, const char *symbol)
 #else
   /* XXX Symbian */
 #endif /* SILC_UNIX */
-  SILC_LOG_ERROR(("Shared objects are not supported on this platform"));
+  silc_set_errno_reason(SILC_ERR_NOT_SUPPORTED,
+                       "Shared objects are not supported on this platform");
   return NULL;
 }