Skip to content

Commit

Permalink
net: Add stub nxNetShutdown to prevent link errors
Browse files Browse the repository at this point in the history
  • Loading branch information
abaire authored and thrimbor committed Jan 28, 2025
1 parent cdc057a commit 6bfe608
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/nxdk/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,8 @@ int nxNetInit(const nx_net_parameters_t *parameters)

return 0;
}

int nxNetShutdown()
{
return 0;
}
5 changes: 5 additions & 0 deletions lib/nxdk/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ typedef struct nx_net_parameters_t_
// ipv6 static ip fields
} nx_net_parameters_t;

/**
* Initializes the networking subsystem.
* @param parameters nx_net_parameters_t containing configuration data
* @return 0 on success, negative values indicate various errors.
*/
int nxNetInit(const nx_net_parameters_t *parameters);
int nxNetShutdown();

Expand Down

0 comments on commit 6bfe608

Please sign in to comment.