Commit 9d901545 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Ben Walker
Browse files

event: move definition of spdk_event to internal



Change-Id: I63ab7fe99b76e810543cff5962a6d535b0ddb203
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 44ef085b
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -86,13 +86,7 @@ typedef void (*spdk_event_fn)(void *arg1, void *arg2);
/**
 * \brief An event is a function that is passed to and called on an lcore.
 */
struct spdk_event {
	uint32_t		lcore;
	spdk_event_fn		fn;
	void			*arg1;
	void			*arg2;
	struct spdk_event	*next;
};
struct spdk_event;

typedef void (*spdk_poller_fn)(void *arg);

+8 −0
Original line number Diff line number Diff line
@@ -38,6 +38,14 @@

#include "spdk/event.h"

struct spdk_event {
	uint32_t		lcore;
	spdk_event_fn		fn;
	void			*arg1;
	void			*arg2;
	struct spdk_event	*next;
};

int spdk_reactors_init(const char *mask, unsigned int max_delay_us);
int spdk_reactors_fini(void);