Move NL_ACT_* definition and the functions nl_cache_ops_get()
and nl_cache_ops_put() into the public facing API. They can
be considered stable.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
* @{
*/
-enum {
- NL_ACT_UNSPEC,
- NL_ACT_NEW,
- NL_ACT_DEL,
- NL_ACT_GET,
- NL_ACT_SET,
- NL_ACT_CHANGE,
- __NL_ACT_MAX,
-};
-
-#define NL_ACT_MAX (__NL_ACT_MAX - 1)
-
#define END_OF_MSGTYPES_LIST { -1, -1, NULL }
/**
struct nl_msgtype co_msgtypes[];
};
-extern void nl_cache_ops_get(struct nl_cache_ops *);
-extern void nl_cache_ops_put(struct nl_cache_ops *);
-
/** @} */
#ifdef __cplusplus
extern "C" {
#endif
+enum {
+ NL_ACT_UNSPEC,
+ NL_ACT_NEW,
+ NL_ACT_DEL,
+ NL_ACT_GET,
+ NL_ACT_SET,
+ NL_ACT_CHANGE,
+ __NL_ACT_MAX,
+};
+
+#define NL_ACT_MAX (__NL_ACT_MAX - 1)
+
struct nl_cache;
typedef void (*change_func_t)(struct nl_cache *, struct nl_object *, int, void *);
struct nl_dump_params *);
extern void nl_cache_mngr_free(struct nl_cache_mngr *);
+extern void nl_cache_ops_get(struct nl_cache_ops *);
+extern void nl_cache_ops_put(struct nl_cache_ops *);
+
#ifdef __cplusplus
}
#endif