input/item: factor input_item_t New*() functions
authorThomas Guillem <thomas@gllm.fr>
Thu, 14 Apr 2016 09:16:24 +0000 (11:16 +0200)
committerThomas Guillem <thomas@gllm.fr>
Sun, 17 Apr 2016 05:11:57 +0000 (08:11 +0300)
commite49ee59ad95de6173c3b287b47189c00b7f43b84
tree6688ac0bb501b0ab5a50f0d1652a7c6fca75addf
parenta6fa66864895a0ff1a45c3d28620f4484831c0a0
input/item: factor input_item_t New*() functions

Remove "int options, const char *const *options, unsigned option_flags"
arguments from every New() functions since these args are mainly unused. You
now have to call input_item_AddOptions after input item creation to add
options.

Add input_item_net_type enum in order to avoid confusion between 2 int
arguments: i_duration and i_net that could both be -1, 0 or > 0.

Replace input_item_NewWithType and input_item_NewWithTypeExt with
input_item_NewExt.

Add input_item_NewCard, input_item_NewDisc, input_item_NewStream,
input_item_NewDirectory, input_item_NewFile MACRO. These MACROS avoid to use
useless arguments for an item type (for example, it's useless to specify a
duration for a directory type).
33 files changed:
include/vlc_input_item.h
lib/media_list.c
modules/access/cdda.c
modules/access/directory.c
modules/access/dsm/access.c
modules/access/dsm/sd.c
modules/access/ftp.c
modules/access/nfs.c
modules/access/sftp.c
modules/access/smb.c
modules/demux/playlist/asx.c
modules/demux/playlist/dvb.c
modules/demux/playlist/m3u.c
modules/demux/playlist/ram.c
modules/demux/playlist/sgimb.c
modules/demux/playlist/wpl.c
modules/demux/playlist/xspf.c
modules/lua/libs/sd.c
modules/lua/vlc.c
modules/services_discovery/bonjour.m
modules/services_discovery/microdns.c
modules/services_discovery/os2drive.c
modules/services_discovery/pulse.c
modules/services_discovery/sap.c
modules/services_discovery/udev.c
modules/services_discovery/upnp.cpp
modules/services_discovery/windrive.c
modules/services_discovery/xcb_apps.c
src/input/item.c
src/libvlccore.sym
src/playlist/item.c
src/playlist/loadsave.c
src/playlist/tree.c