media: net.h: add kernel-doc and use it at Documentation/
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 1 Sep 2017 19:45:47 +0000 (15:45 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 5 Sep 2017 10:22:42 +0000 (06:22 -0400)
As we did with frontend.h, ca.h and dmx.h, move the struct
definition to net.h.

That should help to keep it updated, as more stuff gets
added there.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Documentation/media/uapi/dvb/net-add-if.rst
Documentation/media/uapi/dvb/net-types.rst [new file with mode: 0644]
Documentation/media/uapi/dvb/net.rst
include/uapi/linux/dvb/net.h

index 1087efb9baa059e6665985e2310ae954b0817341..6749b70246c5269916019327fd4c746c1d239c9a 100644 (file)
@@ -41,40 +41,6 @@ created.
 The struct :c:type:`dvb_net_if`::ifnum field will be
 filled with the number of the created interface.
 
-.. c:type:: dvb_net_if
-
-.. flat-table:: struct dvb_net_if
-    :header-rows:  1
-    :stub-columns: 0
-
-
-    -  .. row 1
-
-       -  ID
-
-       -  Description
-
-    -  .. row 2
-
-       -  pid
-
-       -  Packet ID (PID) of the MPEG-TS that contains data
-
-    -  .. row 3
-
-       -  ifnum
-
-       -  number of the Digital TV interface.
-
-    -  .. row 4
-
-       -  feedtype
-
-       -  Encapsulation type of the feed. It can be:
-         ``DVB_NET_FEEDTYPE_MPE`` for MPE encoding or
-         ``DVB_NET_FEEDTYPE_ULE`` for ULE encoding.
-
-
 Return Value
 ============
 
diff --git a/Documentation/media/uapi/dvb/net-types.rst b/Documentation/media/uapi/dvb/net-types.rst
new file mode 100644 (file)
index 0000000..e1177bd
--- /dev/null
@@ -0,0 +1,9 @@
+.. -*- coding: utf-8; mode: rst -*-
+
+.. _dmx_types:
+
+**************
+Net Data Types
+**************
+
+.. kernel-doc:: include/uapi/linux/dvb/net.h
index fdb5301a4b1f1885693a7d5d7a0c9d26e91e0c49..e0cd4e402627ef84faeaa43a0ae55f344219cc13 100644 (file)
@@ -35,6 +35,7 @@ Digital TV net Function Calls
 .. toctree::
     :maxdepth: 1
 
+    net-types
     net-add-if
     net-remove-if
     net-get-if
index f451e7eb0b0bd9c393dca78cea873c4f91e1dede..89d805f9a5a6af24ffc2b29800891f631c3e2dec 100644 (file)
 
 #include <linux/types.h>
 
+/**
+ * struct dvb_net_if - describes a DVB network interface
+ *
+ * @pid: Packet ID (PID) of the MPEG-TS that contains data
+ * @if_num: number of the Digital TV interface.
+ * @feedtype: Encapsulation type of the feed.
+ *
+ * A MPEG-TS stream may contain packet IDs with IP packages on it.
+ * This struct describes it, and the type of encoding.
+ *
+ * @feedtype can be:
+ *
+ *     - %DVB_NET_FEEDTYPE_MPE for MPE encoding
+ *     - %DVB_NET_FEEDTYPE_ULE for ULE encoding.
+ */
 struct dvb_net_if {
        __u16 pid;
        __u16 if_num;