/*
* ion/ioncore/basicpholder.c
*
- * Copyright (c) Tuomo Valkonen 2005-2006.
+ * Copyright (c) Tuomo Valkonen 2005-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/objp.h>
/*{{{ Init/deinit */
-static void basicpholder_watch_handler(Watch *watch, Obj *reg)
-{
- WBasicPHolder *ph=FIELD_TO_STRUCT(WBasicPHolder, reg_watch, watch);
- pholder_redirect(&(ph->ph), (WRegion*)reg);
-}
-
-
bool basicpholder_init(WBasicPHolder *ph, WRegion *reg,
WBasicPHolderHandler *hnd)
{
watch_init(&(ph->reg_watch));
- if(!watch_setup(&(ph->reg_watch), (Obj*)reg, basicpholder_watch_handler)){
+ if(!watch_setup(&(ph->reg_watch), (Obj*)reg, NULL)){
pholder_deinit(&(ph->ph));
return FALSE;
}