libnl-tiny: Remove GENL_ID_GENERATE
[openwrt/openwrt.git] / package / libs / libnl-tiny / src / include / netlink / genl / family.h
index 0257cbe2734ba9e938db1e3f3d9d1427948ba1eb..8a1a38ba25d5a5c89a2111b1e8aafb3f5c525843 100644 (file)
@@ -39,6 +39,7 @@ struct genl_family
        uint32_t                gf_maxattr;
 
        struct nl_list_head     gf_ops;
+       struct nl_list_head     gf_mc_grps;
 };
 
 
@@ -47,6 +48,9 @@ extern void                   genl_family_put(struct genl_family *);
 
 extern int                     genl_family_add_op(struct genl_family *,
                                                   int, int);
+extern int                     genl_family_add_grp(struct genl_family *,
+                                       uint32_t , const char *);
+
 
 /**
  * @name Attributes
@@ -58,7 +62,7 @@ static inline unsigned int genl_family_get_id(struct genl_family *family)
        if (family->ce_mask & FAMILY_ATTR_ID)
                return family->gf_id;
        else
-               return GENL_ID_GENERATE;
+               return 0;
 }
 
 static inline void genl_family_set_id(struct genl_family *family, unsigned int id)