summaryrefslogtreecommitdiff
path: root/src/libmowgli/module/loader_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmowgli/module/loader_win32.c')
-rw-r--r--src/libmowgli/module/loader_win32.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/libmowgli/module/loader_win32.c b/src/libmowgli/module/loader_win32.c
index f42a742..70cd1b6 100644
--- a/src/libmowgli/module/loader_win32.c
+++ b/src/libmowgli/module/loader_win32.c
@@ -23,30 +23,32 @@
#include "mowgli.h"
-#define WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-mowgli_module_t mowgli_module_open(const char *path)
+mowgli_module_t
+mowgli_module_open(const char *path)
{
HANDLE handle = LoadLibraryA(path);
- /* make sure we have something. make this an assertion so that
+ /* make sure we have something. make this an assertion so that
* there is feedback if something happens. (poor programming practice).
*/
return_val_if_fail(handle != NULL, NULL);
- return (mowgli_module_t)handle;
+ return (mowgli_module_t) handle;
}
-void * mowgli_module_symbol(mowgli_module_t module, const char *symbol)
+void *
+mowgli_module_symbol(mowgli_module_t module, const char *symbol)
{
void *handle;
return_val_if_fail(module != NULL, NULL);
- handle = GetProcAddress((HANDLE)module, symbol);
+ handle = GetProcAddress((HANDLE) module, symbol);
- /* make sure we have something. make this an assertion so that
+ /* make sure we have something. make this an assertion so that
* there is feedback if something happens. (poor programming practice).
*/
return_val_if_fail(handle != NULL, NULL);
@@ -54,9 +56,10 @@ void * mowgli_module_symbol(mowgli_module_t module, const char *symbol)
return handle;
}
-void mowgli_module_close(mowgli_module_t module)
+void
+mowgli_module_close(mowgli_module_t module)
{
return_if_fail(module != NULL);
- FreeLibrary((HANDLE)module);
+ FreeLibrary((HANDLE) module);
}