From: Pavel Roskin Date: Tue, 7 Apr 2009 21:04:04 +0000 (-0400) Subject: nl_object_priv() is inline, so define it in the header X-Git-Tag: libnl2_0~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8cd7b62c86127e2c946373d50efac9d2ed8da38;p=libnl nl_object_priv() is inline, so define it in the header --- diff --git a/include/netlink/object.h b/include/netlink/object.h index bae2bf4..ef1ed9f 100644 --- a/include/netlink/object.h +++ b/include/netlink/object.h @@ -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 } diff --git a/lib/object.c b/lib/object.c index 3771af9..fb44247 100644 --- a/lib/object.c +++ b/lib/object.c @@ -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; -} - /** @} */ /** @} */