Dial Plan in app_dial.c C program

Can we use the exten=> … dial plan which we use in extensions.conf file inside the app_dial.c file. If i can do it, please help me how to provide the dialplan in C program and execute it.