#include <config.h>

#include <directfb.h>


/*
 * Generated by mkresult.sh
 */

#include <direct/result.h>

static const char *DFBResult__strings[DFB__RESULT_END - DFB__RESULT_BASE];

static DirectResultType DFBResult__type = {
     0, 0,
     DFB__RESULT_BASE,
     DFBResult__strings,
     sizeof(DFBResult__strings) / sizeof(char*)
};

void
DFBResult__init(void)
{
     DFBResult__strings[0] = "DFBResult";

     DFBResult__strings[D_RESULT_INDEX(DFB_NOVIDEOMEMORY)] = "There's not enough video memory.";
     DFBResult__strings[D_RESULT_INDEX(DFB_MISSINGFONT)] = "No font has been set.";
     DFBResult__strings[D_RESULT_INDEX(DFB_MISSINGIMAGE)] = "No image has been set.";

     DirectResultTypeRegister( &DFBResult__type );
}

void
DFBResult__deinit(void)
{
     DirectResultTypeUnregister( &DFBResult__type );
}


