Create dgf.c

Only one file for all framework