/*
* ion/mainloop/hooks.c
*
- * Copyright (c) Tuomo Valkonen 1999-2006.
+ * Copyright (c) Tuomo Valkonen 1999-2008.
*
- * Ion is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
+ * See the included file LICENSE for details.
*/
#include <libtu/types.h>
EXTL_EXPORT
WHook *mainloop_get_hook(const char *name)
{
+ if(name==NULL)
+ return NULL;
+
if(named_hooks!=NULL){
bool found=FALSE;
Rb_node node=rb_find_key_n(named_hooks, name, &found);