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
f39acb0d
Commit
f39acb0d
authored
Dec 21, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udev: probe support (untested)
This actually checks that udev works.
parent
3658cf84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
modules/services_discovery/udev.c
modules/services_discovery/udev.c
+22
-0
No files found.
modules/services_discovery/udev.c
View file @
f39acb0d
...
...
@@ -35,6 +35,7 @@
static
int
OpenV4L
(
vlc_object_t
*
);
static
int
OpenDisc
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
int
vlc_sd_probe_Open
(
vlc_object_t
*
);
/*
* Module descriptor
...
...
@@ -57,8 +58,29 @@ vlc_module_begin ()
set_callbacks
(
OpenDisc
,
Close
)
add_shortcut
(
"disc"
)
VLC_SD_PROBE_SUBMODULE
vlc_module_end
()
static
int
vlc_sd_probe_Open
(
vlc_object_t
*
obj
)
{
vlc_probe_t
*
probe
=
(
vlc_probe_t
*
)
obj
;
struct
udev
*
udev
=
udev_new
();
if
(
udev
==
NULL
)
return
VLC_EGENERIC
;
struct
udev_monitor
*
mon
=
udev_monitor_new_from_netlink
(
udev
,
"udev"
);
if
(
mon
!=
NULL
)
{
vlc_sd_probe_Add
(
probe
,
"v4l"
,
N_
(
"Capture devices"
));
vlc_sd_probe_Add
(
probe
,
"disc"
,
N_
(
"Discs"
));
udev_monitor_unref
(
mon
);
}
udev_unref
(
udev
);
return
VLC_PROBE_CONTINUE
;
}
struct
device
{
dev_t
devnum
;
/* must be first */
...
...
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