Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/pico_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,9 @@ int pico_protocol_network_loop(struct pico_stack *S, int loop_score, int directi
int pico_protocol_transport_loop(struct pico_stack *S, int loop_score, int direction);
int pico_protocol_socket_loop(struct pico_stack *S, int loop_score, int direction);

#ifdef PICO_SUPPORT_TICKLESS
void proto_full_loop_in(struct pico_stack *S, void *arg);
void proto_full_loop_out(struct pico_stack *S, void *arg);
#endif

#endif
4 changes: 2 additions & 2 deletions include/pico_stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ struct arp_service_ipconflict {
#ifdef PICO_SUPPORT_TICKLESS
#define ATTACH_QUEUES_LISTENERS(St, pname, P) \
do { \
pico_queue_register_listener(St, &((St->q_ ## pname.in, proto_full_loop_in, P); \
pico_queue_register_listener(St, &((St->q_ ## pname.out, proto_full_loop_out, P); \
pico_queue_register_listener((St), &((St)->q_ ## pname.in), proto_full_loop_in, &(P)); \
pico_queue_register_listener((St), &((St)->q_ ## pname.out), proto_full_loop_out, &(P)); \
} while(0)
#else
#define ATTACH_QUEUES_LISTENERS(St, pname, P) do {} while(0)
Expand Down
4 changes: 2 additions & 2 deletions stack/pico_protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static int proto_loop_out(struct pico_stack *S, struct pico_protocol *proto, int
}

#ifdef PICO_SUPPORT_TICKLESS
static void proto_full_loop_in(struct pico_stack *S, void *arg)
void proto_full_loop_in(struct pico_stack *S, void *arg)
{
struct pico_protocol *proto = (struct pico_protocol *)arg;
struct pico_frame *f;
Expand All @@ -86,7 +86,7 @@ static void proto_full_loop_in(struct pico_stack *S, void *arg)
}
}

static void proto_full_loop_out(struct pico_stack *S, void *arg)
void proto_full_loop_out(struct pico_stack *S, void *arg)
{
struct pico_protocol *proto = (struct pico_protocol *)arg;
struct pico_frame *f;
Expand Down
Loading