X-Git-Url: http://git.barrelfish.org/?p=barrelfish;a=blobdiff_plain;f=usr%2Fproc_mgmt%2Fspawnd_state.h;h=ce5ae27cabeeed12978c4d17116e0f8c0f225f2b;hp=a14fd0f23579c0a34db4f41ddebf26a91a432e8a;hb=93751d0a5e46a8f299343d4cec3af642a117bd37;hpb=83ef51719466b23c8831892ebe930b8b69defdfa diff --git a/usr/proc_mgmt/spawnd_state.h b/usr/proc_mgmt/spawnd_state.h index a14fd0f..ce5ae27 100644 --- a/usr/proc_mgmt/spawnd_state.h +++ b/usr/proc_mgmt/spawnd_state.h @@ -17,17 +17,16 @@ #include #include -// TODO(razvan): Use a hash map instead. -#define MAX_SPAWNDS 256 - struct spawnd_state { + coreid_t core_id; struct spawn_binding *b; + // TODO(razvan): will need more state here. }; errval_t spawnd_state_alloc(coreid_t core_id, struct spawn_binding *b); void spawnd_state_free(coreid_t core_id); bool spawnd_state_exists(coreid_t core_id); -struct spawn_binding *spawnd_state_get_binding(coreid_t core_id); +struct spawnd_state *spawnd_state_get(coreid_t core_id); #endif // SPAWND_STATE