Skip to content

Commit bd47c30

Browse files
committed
fix standalone sample build
Partial revert of [1: e565f3c73]. The include file core.h is not exported in the mono build. 1: 2025-09-19 e565f3c732284288ccb01715bd66ed70a8e4b8d8 rtk: db was not loaded Change-Id: I12b14479c7806deaa105c5745b307f38b1a9be60
1 parent 33e58e0 commit bd47c30

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

src/ports/linux/mono.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@
1515
#include "up_api.h"
1616
#include "up_util.h"
1717
#include "model.h"
18-
#include "core.h"
1918

2019
#include <stdio.h>
2120

21+
extern void up_core_init (void);
22+
extern void up_core_set_status (uint32_t status);
23+
extern void core_set_interface (char * iface, size_t size);
24+
extern void core_bringup_network (void);
25+
2226
static void main_entry (up_t * up)
2327
{
2428
while (true)

src/ports/rt-kernel/mono.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include "up_api.h"
1616
#include "up_util.h"
1717
#include "model.h"
18-
#include "core.h"
1918

2019
#include "osal.h"
2120

@@ -29,6 +28,10 @@
2928
#define APP_TASK_PRIO 5
3029
#define APP_TASK_STACK_SIZE 6000
3130

31+
extern void up_core_init (void);
32+
extern void up_core_set_status (uint32_t status);
33+
extern void core_bringup_network (void);
34+
3235
static void main_entry (void * arg)
3336
{
3437
up_t * up = (up_t *)arg;

src/ports/windows/mono.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@
1515
#include "up_api.h"
1616
#include "up_util.h"
1717
#include "model.h"
18-
#include "core.h"
1918

2019
#include <stdio.h>
2120

21+
extern void up_core_init (void);
22+
extern void up_core_set_status (uint32_t status);
23+
extern void core_set_interface (char * iface, size_t size);
24+
extern void core_bringup_network (void);
25+
2226
static void main_entry (up_t * up)
2327
{
2428
while (true)

0 commit comments

Comments
 (0)