diff options
author | Thomas Graf <tgraf@suug.ch> | 2013-02-01 09:21:58 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2013-02-01 09:21:58 (GMT) |
commit | 2005c2ecacdf5e1ba5be630c85f1288eeb8ad6af (patch) | |
tree | 1fb08277e4e7f089a82ec62fce08764aa82323d0 | |
parent | 87458abbd03b0928b9d2ddd84b7bcb07892450d0 (diff) | |
download | libnl-2005c2ecacdf5e1ba5be630c85f1288eeb8ad6af.zip libnl-2005c2ecacdf5e1ba5be630c85f1288eeb8ad6af.tar.gz libnl-2005c2ecacdf5e1ba5be630c85f1288eeb8ad6af.tar.bz2 |
cache: Make NL_ACT_* and nl_cache_ops_(get|put)() available
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>
-rw-r--r-- | include/netlink-private/cache-api.h | 15 | ||||
-rw-r--r-- | include/netlink/cache.h | 15 |
2 files changed, 15 insertions, 15 deletions
diff --git a/include/netlink-private/cache-api.h b/include/netlink-private/cache-api.h index 5d9b0ad..f3d9f01 100644 --- a/include/netlink-private/cache-api.h +++ b/include/netlink-private/cache-api.h @@ -109,18 +109,6 @@ extern "C" { * @{ */ -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 } /** @@ -273,9 +261,6 @@ struct nl_cache_ops 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 diff --git a/include/netlink/cache.h b/include/netlink/cache.h index 0da1377..415bb00 100644 --- a/include/netlink/cache.h +++ b/include/netlink/cache.h @@ -21,6 +21,18 @@ 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 *); @@ -146,6 +158,9 @@ extern void nl_cache_mngr_info(struct nl_cache_mngr *, 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 |