dbus: change genInterfaceInfo to BuildInterfaceInfo

This make other tools, e.g. dbus-generator can take advantage of
this code snippet.

Change-Id: I8ead5b1ed40d28c3d2dd8213dbcabe478950b0ba