diff --git a/include/nn_ac/nn_ac.h b/include/nn_ac/nn_ac.h new file mode 100644 index 0000000..c88f558 --- /dev/null +++ b/include/nn_ac/nn_ac.h @@ -0,0 +1,40 @@ +#pragma once +#include + +/** + * \defgroup nn_ac Auto Connect + * \ingroup nn_ac + * @{ + */ + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum ACResult +{ + OK = 0, +} ACResult; + +typedef uint32_t ACConfigId; + +ACResult +ACInitialize(); + +void +ACFinalize(); + +ACResult +ACGetStartupId(ACConfigId *configId); + +ACResult +ACConnectWithConfigId(ACConfigId configId); + +ACResult +ACGetAssignedAddress(uint32_t *ip); + +#ifdef __cplusplus +} +#endif + +/** @} */ diff --git a/rpl/CMakeLists.txt b/rpl/CMakeLists.txt index bba926e..f4ef74b 100644 --- a/rpl/CMakeLists.txt +++ b/rpl/CMakeLists.txt @@ -24,6 +24,7 @@ endmacro() add_wut_rpl(coreinit) add_wut_rpl(gx2) add_wut_rpl(nsysnet) +add_wut_rpl(nn_ac) add_wut_rpl(proc_ui) add_wut_rpl(sndcore2) add_wut_rpl(sysapp) diff --git a/rpl/nn_ac/config.h b/rpl/nn_ac/config.h new file mode 100644 index 0000000..ffbd0fb --- /dev/null +++ b/rpl/nn_ac/config.h @@ -0,0 +1 @@ +#define LIBRARY_NAME "nn_ac" diff --git a/rpl/nn_ac/exports.h b/rpl/nn_ac/exports.h new file mode 100644 index 0000000..b8fcb33 --- /dev/null +++ b/rpl/nn_ac/exports.h @@ -0,0 +1,6 @@ +// nn_ac/nn_ac.h +EXPORT(ACInitialize); +EXPORT(ACFinalize); +EXPORT(ACGetStartupId); +EXPORT(ACConnectWithConfigId); +EXPORT(ACGetAssignedAddress);