diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2024-11-14 14:28:59 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2024-11-14 14:28:59 -0500 |
| commit | beb4e413fec775f4c5a2837644c51071e9fc86bf (patch) | |
| tree | f2e820b3664442806a4f666766ec924f92419258 /pkev.h | |
| parent | 285886342da1b98f989f39d49bef6ac606f25d73 (diff) | |
pk.h: remove inline from IMPL + cleanup
Diffstat (limited to 'pkev.h')
| -rw-r--r-- | pkev.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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 */ |
