PageRenderTime 368ms CodeModel.GetById 186ms app.highlight 2ms RepoModel.GetById 159ms app.codeStats 1ms

/src/backend/win32/ftk_backend_win32.c

http://ftk.googlecode.com/
C | 18 lines | 14 code | 4 blank | 0 comment | 1 complexity | 0f461030af6daf4f6904fa291caa9288 MD5 | raw file
 1#include "ftk_display_win32.h"
 2#include "ftk_source_win32.h"
 3#include "ftk_wnd_manager.h"
 4#include "ftk_globals.h"
 5
 6Ret ftk_backend_init(void)
 7{
 8	FtkSource* source = NULL;
 9	FtkDisplay* display = NULL;
10
11	display = ftk_display_win32_create();
12	ftk_set_display(display);
13
14	source = ftk_source_win32_create();
15	ftk_sources_manager_add(ftk_default_sources_manager(), source);
16
17	return display != NULL ? RET_OK : RET_FAIL;
18}