Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
989310c9
Commit
989310c9
authored
Oct 22, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add_loadfile: remove callback parameter
parent
cecde7fc
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
28 additions
and
28 deletions
+28
-28
include/vlc_plugin.h
include/vlc_plugin.h
+1
-1
modules/access/screen/screen.c
modules/access/screen/screen.c
+1
-1
modules/audio_output/oss.c
modules/audio_output/oss.c
+1
-1
modules/codec/fluidsynth.c
modules/codec/fluidsynth.c
+1
-1
modules/gui/fbosd.c
modules/gui/fbosd.c
+1
-1
modules/gui/skins2/src/skin_main.cpp
modules/gui/skins2/src/skin_main.cpp
+1
-1
modules/meta_engine/folder.c
modules/meta_engine/folder.c
+1
-1
modules/stream_out/raop.c
modules/stream_out/raop.c
+1
-1
modules/video_filter/atmo/atmo.cpp
modules/video_filter/atmo/atmo.cpp
+6
-6
modules/video_filter/blendbench.c
modules/video_filter/blendbench.c
+2
-2
modules/video_filter/dynamicoverlay/dynamicoverlay.c
modules/video_filter/dynamicoverlay/dynamicoverlay.c
+2
-2
modules/video_filter/erase.c
modules/video_filter/erase.c
+1
-1
modules/video_filter/logo.c
modules/video_filter/logo.c
+1
-1
modules/video_output/fb.c
modules/video_output/fb.c
+1
-1
modules/visualization/projectm.cpp
modules/visualization/projectm.cpp
+2
-2
src/libvlc-module.c
src/libvlc-module.c
+5
-5
No files found.
include/vlc_plugin.h
View file @
989310c9
...
...
@@ -307,7 +307,7 @@ enum vlc_module_properties
add_string_inner( CONFIG_ITEM_PASSWORD, name, text, longtext, advc, \
value )
#define add_loadfile( name, value,
p_callback,
text, longtext, advc ) \
#define add_loadfile( name, value, text, longtext, advc ) \
add_string_inner( CONFIG_ITEM_LOADFILE, name, text, longtext, advc, \
value )
...
...
modules/access/screen/screen.c
View file @
989310c9
...
...
@@ -111,7 +111,7 @@ vlc_module_begin ()
#endif
#ifdef SCREEN_MOUSE
add_loadfile
(
"screen-mouse-image"
,
""
,
NULL
,
MOUSE_TEXT
,
MOUSE_LONGTEXT
,
add_loadfile
(
"screen-mouse-image"
,
""
,
MOUSE_TEXT
,
MOUSE_LONGTEXT
,
true
)
#endif
...
...
modules/audio_output/oss.c
View file @
989310c9
...
...
@@ -106,7 +106,7 @@ vlc_module_begin ()
set_category
(
CAT_AUDIO
)
set_subcategory
(
SUBCAT_AUDIO_AOUT
)
add_loadfile
(
"oss-audio-device"
,
"/dev/dsp"
,
NULL
,
add_loadfile
(
"oss-audio-device"
,
"/dev/dsp"
,
N_
(
"OSS DSP device"
),
NULL
,
false
)
add_deprecated_alias
(
"dspdev"
)
/* deprecated since 0.9.3 */
add_bool
(
"oss-buggy"
,
false
,
NULL
,
BUGGY_TEXT
,
BUGGY_LONGTEXT
,
true
)
...
...
modules/codec/fluidsynth.c
View file @
989310c9
...
...
@@ -60,7 +60,7 @@ vlc_module_begin ()
set_category
(
CAT_INPUT
)
set_subcategory
(
SUBCAT_INPUT_ACODEC
)
set_callbacks
(
Open
,
Close
)
add_loadfile
(
"soundfont"
,
""
,
NULL
,
add_loadfile
(
"soundfont"
,
""
,
SOUNDFONT_TEXT
,
SOUNDFONT_LONGTEXT
,
false
);
vlc_module_end
()
...
...
modules/gui/fbosd.c
View file @
989310c9
...
...
@@ -180,7 +180,7 @@ vlc_module_begin ()
set_category
(
CAT_INTERFACE
)
set_subcategory
(
SUBCAT_INTERFACE_MAIN
)
add_loadfile
(
"fbosd-dev"
,
"/dev/fb0"
,
NULL
,
DEVICE_TEXT
,
DEVICE_LONGTEXT
,
add_loadfile
(
"fbosd-dev"
,
"/dev/fb0"
,
DEVICE_TEXT
,
DEVICE_LONGTEXT
,
false
)
add_string
(
"fbosd-aspect-ratio"
,
""
,
ASPECT_RATIO_TEXT
,
ASPECT_RATIO_LONGTEXT
,
true
)
...
...
modules/gui/skins2/src/skin_main.cpp
View file @
989310c9
...
...
@@ -478,7 +478,7 @@ static int onTaskBarChange( vlc_object_t *pObj, const char *pVariable,
vlc_module_begin
()
set_category
(
CAT_INTERFACE
)
set_subcategory
(
SUBCAT_INTERFACE_MAIN
)
add_loadfile
(
"skins2-last"
,
""
,
NULL
,
SKINS2_LAST
,
SKINS2_LAST_LONG
,
add_loadfile
(
"skins2-last"
,
""
,
SKINS2_LAST
,
SKINS2_LAST_LONG
,
true
)
change_autosave
()
add_string
(
"skins2-config"
,
""
,
SKINS2_CONFIG
,
SKINS2_CONFIG_LONG
,
...
...
modules/meta_engine/folder.c
View file @
989310c9
...
...
@@ -65,7 +65,7 @@ static int FindMeta( vlc_object_t * );
vlc_module_begin
()
set_shortname
(
N_
(
"Folder"
)
)
set_description
(
N_
(
"Folder meta data"
)
)
add_loadfile
(
"album-art-filename"
,
NULL
,
NULL
,
add_loadfile
(
"album-art-filename"
,
NULL
,
N_
(
"Album art filename"
),
N_
(
"Filename to look for album art in current directory"
),
false
);
set_capability
(
"art finder"
,
90
)
set_callbacks
(
FindMeta
,
NULL
)
...
...
modules/stream_out/raop.c
View file @
989310c9
...
...
@@ -168,7 +168,7 @@ vlc_module_begin();
HOST_TEXT
,
HOST_LONGTEXT
,
false
)
add_password
(
SOUT_CFG_PREFIX
"password"
,
NULL
,
PASSWORD_TEXT
,
PASSWORD_LONGTEXT
,
false
)
add_loadfile
(
SOUT_CFG_PREFIX
"password-file"
,
NULL
,
NULL
,
add_loadfile
(
SOUT_CFG_PREFIX
"password-file"
,
NULL
,
PASSWORD_FILE_TEXT
,
PASSWORD_FILE_LONGTEXT
,
false
)
add_integer_with_range
(
SOUT_CFG_PREFIX
"volume"
,
100
,
0
,
255
,
NULL
,
VOLUME_TEXT
,
VOLUME_LONGTEXT
,
false
)
...
...
modules/video_filter/atmo/atmo.cpp
View file @
989310c9
...
...
@@ -381,7 +381,7 @@ add_string(CFG_PREFIX "serialdev", "COM1",
on win32 the executeable external driver application
for automatic start if needed
*/
add_loadfile
(
CFG_PREFIX
"atmowinexe"
,
NULL
,
NULL
,
add_loadfile
(
CFG_PREFIX
"atmowinexe"
,
NULL
,
ATMOWINEXE_TEXT
,
ATMOWINEXE_LONGTEXT
,
false
)
#else
add_string
(
CFG_PREFIX
"serialdev"
,
"/dev/ttyUSB0"
,
...
...
@@ -583,15 +583,15 @@ effects with this...) the images MUST not compressed, should have 24-bit per
pixel, or a simple 256 color grayscale palette
*/
set_section
(
N_
(
"Change gradients"
),
0
)
add_loadfile
(
CFG_PREFIX
"gradient_zone_0"
,
NULL
,
NULL
,
add_loadfile
(
CFG_PREFIX
"gradient_zone_0"
,
NULL
,
ZONE_0_GRADIENT_TEXT
,
ZONE_X_GRADIENT_LONG_TEXT
,
true
)
add_loadfile
(
CFG_PREFIX
"gradient_zone_1"
,
NULL
,
NULL
,
add_loadfile
(
CFG_PREFIX
"gradient_zone_1"
,
NULL
,
ZONE_1_GRADIENT_TEXT
,
ZONE_X_GRADIENT_LONG_TEXT
,
true
)
add_loadfile
(
CFG_PREFIX
"gradient_zone_2"
,
NULL
,
NULL
,
add_loadfile
(
CFG_PREFIX
"gradient_zone_2"
,
NULL
,
ZONE_2_GRADIENT_TEXT
,
ZONE_X_GRADIENT_LONG_TEXT
,
true
)
add_loadfile
(
CFG_PREFIX
"gradient_zone_3"
,
NULL
,
NULL
,
add_loadfile
(
CFG_PREFIX
"gradient_zone_3"
,
NULL
,
ZONE_3_GRADIENT_TEXT
,
ZONE_X_GRADIENT_LONG_TEXT
,
true
)
add_loadfile
(
CFG_PREFIX
"gradient_zone_4"
,
NULL
,
NULL
,
add_loadfile
(
CFG_PREFIX
"gradient_zone_4"
,
NULL
,
ZONE_4_GRADIENT_TEXT
,
ZONE_X_GRADIENT_LONG_TEXT
,
true
)
add_directory
(
CFG_PREFIX
"gradient_path"
,
NULL
,
NULL
,
GRADIENT_PATH_TEXT
,
GRADIENT_PATH_LONGTEXT
,
false
)
...
...
modules/video_filter/blendbench.c
View file @
989310c9
...
...
@@ -84,13 +84,13 @@ vlc_module_begin ()
ALPHA_LONGTEXT
,
false
)
set_section
(
N_
(
"Base image"
),
NULL
)
add_loadfile
(
CFG_PREFIX
"base-image"
,
NULL
,
NULL
,
BASE_IMAGE_TEXT
,
add_loadfile
(
CFG_PREFIX
"base-image"
,
NULL
,
BASE_IMAGE_TEXT
,
BASE_IMAGE_LONGTEXT
,
false
)
add_string
(
CFG_PREFIX
"base-chroma"
,
"I420"
,
BASE_CHROMA_TEXT
,
BASE_CHROMA_LONGTEXT
,
false
)
set_section
(
N_
(
"Blend image"
),
NULL
)
add_loadfile
(
CFG_PREFIX
"blend-image"
,
NULL
,
NULL
,
BLEND_IMAGE_TEXT
,
add_loadfile
(
CFG_PREFIX
"blend-image"
,
NULL
,
BLEND_IMAGE_TEXT
,
BLEND_IMAGE_LONGTEXT
,
false
)
add_string
(
CFG_PREFIX
"blend-chroma"
,
"YUVA"
,
BLEND_CHROMA_TEXT
,
BLEND_CHROMA_LONGTEXT
,
false
)
...
...
modules/video_filter/dynamicoverlay/dynamicoverlay.c
View file @
989310c9
...
...
@@ -70,10 +70,10 @@ vlc_module_begin ()
set_subcategory
(
SUBCAT_VIDEO_VFILTER
)
set_capability
(
"sub filter"
,
0
)
add_loadfile
(
"overlay-input"
,
NULL
,
NULL
,
INPUT_TEXT
,
INPUT_LONGTEXT
,
add_loadfile
(
"overlay-input"
,
NULL
,
INPUT_TEXT
,
INPUT_LONGTEXT
,
false
)
/* Note: add_loadfile as O_WRONLY w/o O_CREAT, i.e. FIFO must exist */
add_loadfile
(
"overlay-output"
,
NULL
,
NULL
,
OUTPUT_TEXT
,
OUTPUT_LONGTEXT
,
add_loadfile
(
"overlay-output"
,
NULL
,
OUTPUT_TEXT
,
OUTPUT_LONGTEXT
,
false
)
add_shortcut
(
"overlay"
)
...
...
modules/video_filter/erase.c
View file @
989310c9
...
...
@@ -72,7 +72,7 @@ vlc_module_begin ()
set_category
(
CAT_VIDEO
)
set_subcategory
(
SUBCAT_VIDEO_VFILTER
)
add_loadfile
(
CFG_PREFIX
"mask"
,
NULL
,
NULL
,
add_loadfile
(
CFG_PREFIX
"mask"
,
NULL
,
MASK_TEXT
,
MASK_LONGTEXT
,
false
)
add_integer
(
CFG_PREFIX
"x"
,
0
,
NULL
,
POSX_TEXT
,
POSX_LONGTEXT
,
false
)
add_integer
(
CFG_PREFIX
"y"
,
0
,
NULL
,
POSY_TEXT
,
POSY_LONGTEXT
,
false
)
...
...
modules/video_filter/logo.c
View file @
989310c9
...
...
@@ -93,7 +93,7 @@ vlc_module_begin ()
set_shortname
(
N_
(
"Logo overlay"
)
)
add_shortcut
(
"logo"
)
add_loadfile
(
CFG_PREFIX
"file"
,
NULL
,
NULL
,
FILE_TEXT
,
FILE_LONGTEXT
,
false
)
add_loadfile
(
CFG_PREFIX
"file"
,
NULL
,
FILE_TEXT
,
FILE_LONGTEXT
,
false
)
add_integer
(
CFG_PREFIX
"x"
,
-
1
,
NULL
,
POSX_TEXT
,
POSX_LONGTEXT
,
true
)
add_integer
(
CFG_PREFIX
"y"
,
-
1
,
NULL
,
POSY_TEXT
,
POSY_LONGTEXT
,
true
)
/* default to 1000 ms per image, continuously cycle through them */
...
...
modules/video_output/fb.c
View file @
989310c9
...
...
@@ -83,7 +83,7 @@ vlc_module_begin ()
set_shortname
(
"Framebuffer"
)
set_category
(
CAT_VIDEO
)
set_subcategory
(
SUBCAT_VIDEO_VOUT
)
add_loadfile
(
FB_DEV_VAR
,
"/dev/fb0"
,
NULL
,
DEVICE_TEXT
,
DEVICE_LONGTEXT
,
add_loadfile
(
FB_DEV_VAR
,
"/dev/fb0"
,
DEVICE_TEXT
,
DEVICE_LONGTEXT
,
false
)
add_bool
(
"fb-tty"
,
true
,
NULL
,
TTY_TEXT
,
TTY_LONGTEXT
,
true
)
add_string
(
"fb-chroma"
,
NULL
,
CHROMA_TEXT
,
CHROMA_LONGTEXT
,
true
)
...
...
modules/visualization/projectm.cpp
View file @
989310c9
...
...
@@ -70,10 +70,10 @@ vlc_module_begin ()
set_category
(
CAT_AUDIO
)
set_subcategory
(
SUBCAT_AUDIO_VISUAL
)
#ifndef HAVE_PROJECTM2
add_loadfile
(
"projectm-config"
,
"/usr/share/projectM/config.inp"
,
NULL
,
add_loadfile
(
"projectm-config"
,
"/usr/share/projectM/config.inp"
,
CONFIG_TEXT
,
CONFIG_LONGTEXT
,
true
)
#else
add_loadfile
(
"projectm-preset-path"
,
"/usr/share/projectM/presets"
,
NULL
,
add_loadfile
(
"projectm-preset-path"
,
"/usr/share/projectM/presets"
,
PRESET_PATH_TXT
,
PRESET_PATH_LONGTXT
,
true
)
add_font
(
"projectm-title-font"
,
"/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf"
,
TITLE_FONT_TXT
,
TITLE_FONT_LONGTXT
,
true
)
...
...
src/libvlc-module.c
View file @
989310c9
...
...
@@ -1579,7 +1579,7 @@ const char vlc_usage[] = N_(
* add_usage_hint( N_(text), b_advanced_option )
* add_string( option_name, value, N_(text), N_(longtext),
b_advanced_option )
* add_loadfile( option_name, psz_value,
p_callback,
N_(text), N_(longtext) )
* add_loadfile( option_name, psz_value, N_(text), N_(longtext) )
* add_savefile( option_name, psz_value, N_(text), N_(longtext) )
* add_module( option_name, psz_value, i_capability, p_callback,
* N_(text), N_(longtext) )
...
...
@@ -1796,7 +1796,7 @@ vlc_module_begin ()
TEXTRENDERER_LONGTEXT
,
true
)
set_section
(
N_
(
"Subtitles"
)
,
NULL
)
add_loadfile
(
"sub-file"
,
NULL
,
NULL
,
SUB_FILE_TEXT
,
add_loadfile
(
"sub-file"
,
NULL
,
SUB_FILE_TEXT
,
SUB_FILE_LONGTEXT
,
false
)
change_safe
()
add_bool
(
"sub-autodetect-file"
,
true
,
NULL
,
...
...
@@ -1878,11 +1878,11 @@ vlc_module_begin ()
set_section
(
N_
(
"Default devices"
)
,
NULL
)
add_loadfile
(
"dvd"
,
DVD_DEVICE
,
NULL
,
DVD_DEV_TEXT
,
DVD_DEV_LONGTEXT
,
add_loadfile
(
"dvd"
,
DVD_DEVICE
,
DVD_DEV_TEXT
,
DVD_DEV_LONGTEXT
,
false
)
add_loadfile
(
"vcd"
,
VCD_DEVICE
,
NULL
,
VCD_DEV_TEXT
,
VCD_DEV_LONGTEXT
,
add_loadfile
(
"vcd"
,
VCD_DEVICE
,
VCD_DEV_TEXT
,
VCD_DEV_LONGTEXT
,
false
)
add_loadfile
(
"cd-audio"
,
CDAUDIO_DEVICE
,
NULL
,
CDAUDIO_DEV_TEXT
,
add_loadfile
(
"cd-audio"
,
CDAUDIO_DEVICE
,
CDAUDIO_DEV_TEXT
,
CDAUDIO_DEV_LONGTEXT
,
false
)
set_section
(
N_
(
"Network settings"
),
NULL
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment