]> granicus.if.org Git - libnl/commitdiff
idiag: reorder idiagnl.h to have deprecated functions at the top
authorThomas Haller <thaller@redhat.com>
Mon, 24 Nov 2014 16:14:52 +0000 (17:14 +0100)
committerThomas Haller <thaller@redhat.com>
Mon, 24 Nov 2014 17:30:21 +0000 (18:30 +0100)
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
include/netlink/idiag/idiagnl.h

index e6bc65073230b909c60228ceed7ce7a2e466b37c..c99f83b32fcb88791b8ae845d958f1594bb92a16 100644 (file)
 extern "C" {
 #endif
 
+/*************************************************************
+ * The following part contains DEPRECATED names and defines.
+ * Don't use them.
+ *************************************************************/
+
 /**
  * Inet Diag message types
  *
@@ -52,12 +57,6 @@ enum {
        IDIAG_SS_MAX               = 12,
 };
 
-/**
- * Macro to represent all socket states.
- * @ingroup idiag
- */
-#define IDIAGNL_SS_ALL (((1<<12)-1))
-
 /**
  * Macro to represent all socket states.
  * @ingroup idiag
@@ -90,7 +89,7 @@ enum {
 };
 
 
-/* Keep these only for compatibility, DO NOT USE THEM */
+/* deprectated keep these only for compatibility, DO NOT USE THEM */
 #define        IDIAG_SK_MEMINFO_RMEM_ALLOC SK_MEMINFO_RMEM_ALLOC
 #define        IDIAG_SK_MEMINFO_RCVBUF SK_MEMINFO_RCVBUF
 #define        IDIAG_SK_MEMINFO_WMEM_ALLOC SK_MEMINFO_WMEM_ALLOC
@@ -109,6 +108,14 @@ enum {
 #define IDIAG_TIMER_PERSIST             IDIAGNL_TIMER_PERSIST
 #define IDIAG_TIMER_UNKNOWN             IDIAGNL_TIMER_UNKNOWN
 
+/*************************************************************/
+
+/**
+ * Macro to represent all socket states.
+ * @ingroup idiag
+ */
+#define IDIAGNL_SS_ALL (((1<<12)-1))
+
 /**
  * Socket timer indentifiers
  * @ingroupd idiag