sim: dv-sockser: push module init prototype down

Pull out the duplicated dv_sockser_install prototype from the tconfig.in
files and put it in the one place it gets used -- sim-module.c.  This is
still arguably incorrect, but it's better than the status quo where the
tconfig.in has to include header files and duplicate the dv-sockser func.
The tconfig header is meant to be simple and contain a target defines.
This commit is contained in:
Mike Frysinger
2015-03-15 02:55:08 -04:00
parent b19839da38
commit 8406bb5944
24 changed files with 68 additions and 91 deletions

View File

@@ -19,6 +19,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "config.h"
#include "sim-main.h"
#include "sim-io.h"
#include "sim-options.h"
@@ -28,6 +29,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "sim-hw.h"
#endif
#ifdef HAVE_DV_SOCKSER
/* TODO: Shouldn't have device models here. */
#include "dv-sockser.h"
#endif
#include "libiberty.h"
/* List of all modules. */
@@ -59,6 +65,10 @@ static MODULE_INSTALL_FN * const modules[] = {
#endif
#if WITH_HW
sim_hw_install,
#endif
#ifdef HAVE_DV_SOCKSER
/* TODO: Shouldn't have device models here. */
dv_sockser_install,
#endif
/* Configured in [simulator specific] additional modules. */
#ifdef MODULE_LIST