Add nn_ac library.

This commit is contained in:
James Benton 2017-04-07 01:23:46 +01:00
parent 4dfe8d5ea6
commit 6f51e6c76e
4 changed files with 48 additions and 0 deletions

40
include/nn_ac/nn_ac.h Normal file
View File

@ -0,0 +1,40 @@
#pragma once
#include <wut.h>
/**
* \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
/** @} */

View File

@ -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)

1
rpl/nn_ac/config.h Normal file
View File

@ -0,0 +1 @@
#define LIBRARY_NAME "nn_ac"

6
rpl/nn_ac/exports.h Normal file
View File

@ -0,0 +1,6 @@
// nn_ac/nn_ac.h
EXPORT(ACInitialize);
EXPORT(ACFinalize);
EXPORT(ACGetStartupId);
EXPORT(ACConnectWithConfigId);
EXPORT(ACGetAssignedAddress);