diff options
Diffstat (limited to 'src/core/objhash.h')
| -rw-r--r-- | src/core/objhash.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/core/objhash.h b/src/core/objhash.h index e234ca3d..97f666b8 100644 --- a/src/core/objhash.h +++ b/src/core/objhash.h @@ -29,8 +29,8 @@ // are powers of two to make the modulo dirt cheap. // -typedef struct nni_objhash nni_objhash; -typedef struct nni_objhash_node nni_objhash_node; +typedef struct nni_objhash nni_objhash; +typedef struct nni_objhash_node nni_objhash_node; // Object constructor function. This is expected to allocate an object. // It takes the generated object ID as an argument, which it can store on @@ -44,14 +44,15 @@ typedef void (*nni_objhash_dtor)(void *); // nni_objhash_init initializes the object hash; the constructor and and // destructor functions are supplied. -extern int nni_objhash_init(nni_objhash **, nni_objhash_ctor, nni_objhash_dtor); +extern int nni_objhash_init( + nni_objhash **, nni_objhash_ctor, nni_objhash_dtor); extern void nni_objhash_fini(nni_objhash *); -extern int nni_objhash_find(nni_objhash *, uint32_t, void **); -extern void nni_objhash_unref(nni_objhash *, uint32_t); -extern void nni_objhash_unref_wait(nni_objhash *, uint32_t); -extern int nni_objhash_alloc(nni_objhash *, uint32_t *, void **); +extern int nni_objhash_find(nni_objhash *, uint32_t, void **); +extern void nni_objhash_unref(nni_objhash *, uint32_t); +extern void nni_objhash_unref_wait(nni_objhash *, uint32_t); +extern int nni_objhash_alloc(nni_objhash *, uint32_t *, void **); extern size_t nni_objhash_count(nni_objhash *); -#endif // CORE_OBJHASH_H +#endif // CORE_OBJHASH_H |
