diff --git a/Makefile.am b/Makefile.am index 587354fb..ea914223 100644 --- a/Makefile.am +++ b/Makefile.am @@ -197,7 +197,7 @@ endif if WIRED libexec_PROGRAMS += wired/ead -wired_ead_SOURCES = wired/main.c $(eap_sources) +wired_ead_SOURCES = wired/main.c wired/ethdev.h wired/ethdev.c $(eap_sources) wired_ead_LDADD = ell/libell-internal.la wired_ead_DEPENDENCIES = ell/libell-internal.la diff --git a/wired/ethdev.c b/wired/ethdev.c new file mode 100644 index 00000000..c988298d --- /dev/null +++ b/wired/ethdev.c @@ -0,0 +1,35 @@ +/* + * + * Ethernet daemon for Linux + * + * Copyright (C) 2017-2018 Intel Corporation. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#include + +#include "src/eap.h" +#include "wired/ethdev.h" + +bool ethdev_init(void) +{ + return false; +} + +void ethdev_exit(void) +{ +} diff --git a/wired/ethdev.h b/wired/ethdev.h new file mode 100644 index 00000000..3e5f1ca1 --- /dev/null +++ b/wired/ethdev.h @@ -0,0 +1,24 @@ +/* + * + * Ethernet daemon for Linux + * + * Copyright (C) 2017-2018 Intel Corporation. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +bool ethdev_init(void); +void ethdev_exit(void); diff --git a/wired/main.c b/wired/main.c index 4d4369f7..82573da5 100644 --- a/wired/main.c +++ b/wired/main.c @@ -25,8 +25,18 @@ #endif #include +#include + +#include "src/eap.h" +#include "wired/ethdev.h" int main(int argc, char *argv[]) { + eap_init(0); + ethdev_init(); + + ethdev_exit(); + eap_exit(); + return EXIT_SUCCESS; }