#include "$HEADER$"

$CLASSNAME$* $CLASSNAME$_new(void)
{
    $CLASSNAME$* self;
    self = g_new($CLASSNAME$, 1);
    if(NULL != self)
    {
        if(!$CLASSNAME$_init(self))
        {
            g_free(self);
            self = NULL;
        }
    }
    return self;
}

void $CLASSNAME$_delete($CLASSNAME$* self)
{
    g_return_if_fail(NULL != self);
    $CLASSNAME$_end(self);
    g_free(self);
}

gboolean $CLASSNAME$_init($CLASSNAME$* self)
{
    /* TODO: put init code here */

    return TRUE;
}

void $CLASSNAME$_end($CLASSNAME$* self)
{
    /* TODO: put deinit code here */
}
