event: move definition of spdk_event to internal

Change-Id: I63ab7fe99b76e810543cff5962a6d535b0ddb203
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2017-01-04 18:21:29 -07:00 committed by Ben Walker
parent 44ef085bed
commit 9d90154537
2 changed files with 9 additions and 7 deletions

View File

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

View File

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