How to cast a struct nl_object

Joerg Pommnitz pommnitz at yahoo.com
Thu Mar 17 09:56:52 EDT 2011


Thanks. I feel less stupid now :-)

 -- 
Regards 
Joerg 




----- Ursprüngliche Mail ----
> Von: Thomas Graf <tgraf at infradead.org>
> An: Joerg Pommnitz <pommnitz at yahoo.com>
> CC: libnl at lists.infradead.org
> Gesendet: Donnerstag, den 17. März 2011, 14:46:51 Uhr
> Betreff: Re: How to cast a struct nl_object
> 
> You bring up a good point.
> 
> NLHDR_COMMON has been  public via <netlink/object-api.h> but struct nl_object
> was still  defined in netlink-types.h
> 
> I've moved it to <netlink/object-api.h>  with the commit below.
> 
> You may access the object type via  obj->ce_ops->oo_name now
> 
> commit  ae5dfb1cc7268c5134a1ee1c911f3792b80ff7ea
> Author: Thomas Graf <tgraf at suug.ch>
> Date:   Thu Mar 17  14:44:56 2011 +0100
> 
>     Make struct nl_object public,  NLHDR_COMMON has been public anyway





More information about the libnl mailing list