From beb4e413fec775f4c5a2837644c51071e9fc86bf Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 14 Nov 2024 14:28:59 -0500 Subject: pk.h: remove inline from IMPL + cleanup --- pkev.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'pkev.h') diff --git a/pkev.h b/pkev.h index 75090b5..c5cac08 100644 --- a/pkev.h +++ b/pkev.h @@ -75,7 +75,7 @@ struct pk_ev_mstr { struct pk_ev_mstr pk_ev_mstr; -inline void +void pk_ev_init() { int i; @@ -90,7 +90,7 @@ pk_ev_init() atomic_store(&pk_ev_mstr.rn_mgrs, PK_EV_INIT_MGR_COUNT); } -inline void +void pk_ev_teardown() { int i; @@ -108,7 +108,7 @@ pk_ev_teardown() pk_ev_mstr.mtxs = NULL; } -static inline struct pk_ev_mgr* +static struct pk_ev_mgr* pk_ev_inner_ev_mgr_create(uint64_t ev_count, uint64_t cb_count) { int i; @@ -135,7 +135,7 @@ early_exit: return mgr; } -static inline void +static void pk_ev_inner_ev_mgr_clone(struct pk_ev_mgr *old, struct pk_ev_mgr *mgr) { int i; @@ -150,7 +150,7 @@ pk_ev_inner_ev_mgr_clone(struct pk_ev_mgr *old, struct pk_ev_mgr *mgr) } } -inline const pk_ev_mgr_id_T +const pk_ev_mgr_id_T pk_ev_create_mgr() { uint64_t i; @@ -183,7 +183,7 @@ recreate: goto start; } -inline void +void pk_ev_destroy_mgr(pk_ev_mgr_id_T evmgr) { assert(evmgr >= 0); @@ -193,7 +193,7 @@ pk_ev_destroy_mgr(pk_ev_mgr_id_T evmgr) mtx_unlock(&pk_ev_mstr.mtxs[evmgr]); } -inline const pk_ev_id_T +const pk_ev_id_T pk_ev_register_ev(pk_ev_mgr_id_T evmgr, void *user_ev_data) { assert(evmgr < 64); @@ -212,7 +212,7 @@ pk_ev_register_ev(pk_ev_mgr_id_T evmgr, void *user_ev_data) return id; } -inline bool +bool pk_ev_register_cb(pk_ev_mgr_id_T evmgr, pk_ev_id_T evid, pk_ev_cb_fn *cb, void *user_cb_data) { assert(evmgr < 64); @@ -232,7 +232,7 @@ pk_ev_register_cb(pk_ev_mgr_id_T evmgr, pk_ev_id_T evid, pk_ev_cb_fn *cb, void * return true; } -inline void +void pk_ev_emit(pk_ev_mgr_id_T evmgr, pk_ev_id_T evid, void *user_emit_data) { assert(evmgr < 64); @@ -245,4 +245,4 @@ pk_ev_emit(pk_ev_mgr_id_T evmgr, pk_ev_id_T evid, void *user_emit_data) } } -#endif +#endif /* PK_IMPL_EV */ -- cgit v1.2.3