Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2007 Pekka Riikonen
+ Copyright (C) 2007 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
* Platform independent iterface for loading and using shared objects and
* dynamically linked libraries (DLLs).
*
+ * EXAMPLE
+ *
+ * SilcDll dll;
+ * SilcFuncCb function;
+ *
+ * dll = silc_dll_load("/path/to/my.so");
+ * function = silc_dll_getsym(dll, "my_function");
+ *
+ * // Call the funtion
+ * function(arg1, arg2);
+ *
+ * silc_dll_close(dll);
+ *
***/
#ifndef SILCDLL_H
#define SILCDLL_H
-/****s* silcutil/SilcDLLAPI/SilcDll
+/****s* silcutil/SilcDll
*
* NAME
*
typedef void *SilcDll;
#endif /* SILC_UNIX */
-/****f* silcutil/SilcDLLAPI/silc_dll_load
+/****f* silcutil/silc_dll_load
*
* SYNOPSIS
*
***/
SilcDll silc_dll_load(const char *object_path);
-/****f* silcutil/SilcDLLAPI/silc_dll_close
+/****f* silcutil/silc_dll_close
*
* SYNOPSIS
*
***/
void silc_dll_close(SilcDll dll);
-/****f* silcutil/SilcDLLAPI/silc_dll_getsym
+/****f* silcutil/silc_dll_getsym
*
* SYNOPSIS
*
***/
void *silc_dll_getsym(SilcDll dll, const char *symbol);
-/****f* silcutil/SilcDLLAPI/silc_dll_error
+/****f* silcutil/silc_dll_error
*
* SYNOPSIS
*