nl_object_priv() is inline, so define it in the header
This commit is contained in:
parent
becae5f37a
commit
a8cd7b62c8
2 changed files with 5 additions and 6 deletions
|
@ -56,7 +56,11 @@ extern int nl_object_is_marked(struct nl_object *);
|
|||
/* Access Functions */
|
||||
extern int nl_object_get_refcnt(struct nl_object *);
|
||||
extern struct nl_cache * nl_object_get_cache(struct nl_object *);
|
||||
extern inline void * nl_object_priv(struct nl_object *);
|
||||
static inline void * nl_object_priv(struct nl_object *obj)
|
||||
{
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -375,11 +375,6 @@ struct nl_cache *nl_object_get_cache(struct nl_object *obj)
|
|||
return obj->ce_cache;
|
||||
}
|
||||
|
||||
inline void *nl_object_priv(struct nl_object *obj)
|
||||
{
|
||||
return obj;
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
||||
/** @} */
|
||||
|
|
Loading…
Add table
Reference in a new issue