Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | .. -*- coding: utf-8; mode: rst -*- |
| 2 | |
| 3 | .. _DMX_ADD_PID: |
| 4 | |
| 5 | =========== |
| 6 | DMX_ADD_PID |
| 7 | =========== |
| 8 | |
| 9 | Name |
| 10 | ---- |
| 11 | |
| 12 | DMX_ADD_PID |
| 13 | |
| 14 | |
| 15 | Synopsis |
| 16 | -------- |
| 17 | |
| 18 | .. c:function:: int ioctl(fd, DMX_ADD_PID, __u16 *pid) |
| 19 | :name: DMX_ADD_PID |
| 20 | |
| 21 | |
| 22 | Arguments |
| 23 | --------- |
| 24 | |
| 25 | ``fd`` |
| 26 | File descriptor returned by :c:func:`open() <dvb-dmx-open>`. |
| 27 | |
| 28 | ``pid`` |
| 29 | PID number to be filtered. |
| 30 | |
| 31 | |
| 32 | Description |
| 33 | ----------- |
| 34 | |
| 35 | This ioctl call allows to add multiple PIDs to a transport stream filter |
| 36 | previously set up with :ref:`DMX_SET_PES_FILTER` and output equal to |
| 37 | :c:type:`DMX_OUT_TSDEMUX_TAP <dmx_output>`. |
| 38 | |
| 39 | |
| 40 | Return Value |
| 41 | ------------ |
| 42 | |
| 43 | On success 0 is returned. |
| 44 | |
| 45 | On error -1 is returned, and the ``errno`` variable is set |
| 46 | appropriately. |
| 47 | |
| 48 | Generic error codes are described at the |
| 49 | :ref:`Generic Error Codes <gen-errors>` chapter. |