nl_object_priv() is inline, so define it in the header

This commit is contained in:
Pavel Roskin 2009-04-07 17:04:04 -04:00 committed by Thomas Graf
parent becae5f37a
commit a8cd7b62c8
2 changed files with 5 additions and 6 deletions

View file

@ -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
}

View file

@ -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;
}
/** @} */
/** @} */