1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00
Commit Graph

50 Commits

Author SHA1 Message Date
Steve Lhomme
7c32101c93 vlc_services_discovery: don't return void
Even though the compiler is OK with it.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-07-12 12:01:14 +02:00
Rémi Denis-Courmont
496d009285 sd: fix inverted parameter (fixes #18372) 2017-05-29 18:39:34 +03:00
Rémi Denis-Courmont
a995ddeef7 sd: add proper item tree support
This adds explicit tree support to the SD callback and the
corresponding playlist back-end.
2017-05-14 18:44:13 +03:00
Rémi Denis-Courmont
21d61f40b2 sd: split services_discovery_AddItem()
Add a separate callback wrapper for item with category, which is long
since deprecated. Remove the category parameter from the normal
callback wrapper.
2017-05-14 18:44:12 +03:00
Rémi Denis-Courmont
756a8843b8 sd: remove generic "longname" parameter
This removes the longname parameter from the SD configuration chain
generated while probing SD.
2016-11-15 20:01:58 +02:00
Rémi Denis-Courmont
747a44649f sd: remove services_discovery_GetLocalizedName() 2016-11-15 20:01:58 +02:00
Rémi Denis-Courmont
ce3a8f4b22 sd: add description field 2016-11-15 19:57:37 +02:00
Rémi Denis-Courmont
b3d01bed73 sd: remove stray declaration 2016-11-15 19:57:37 +02:00
Rémi Denis-Courmont
6d37075224 sd: merge Create and Start, and Stop and Destroy
Without the legacy event handler, the distinction is superfluous.
2016-11-14 22:01:27 +02:00
Rémi Denis-Courmont
12b925b0c5 sd: remove vlc_sd_StopAndDestroy() dead code 2016-11-14 21:53:44 +02:00
Rémi Denis-Courmont
f7ff969d3b sd: use owner structure instead of legacy event manager
Since there are always exactly one callback per event (the owner´s),
this is much simpler. This also removes unhandled error cases, and
provides more straightforward callback prototypes.
2016-11-14 21:50:40 +02:00
Rémi Denis-Courmont
74acdbca75 sd: remove RemoveAll events
This was never triggered.
2016-11-14 20:35:57 +02:00
Edward Wang
561d5ca2c0 Export services_discovery_RemoveAll
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2012-03-16 00:46:02 +01:00
Jean-Baptiste Kempf
36ab287e77 LGPL
Re-license almost all of libVLC and libVLCcore to LGPLv2.1+

This move was authorized by the developers, either:
 - by e-mail,
 - by vote at the VideoLAN Dev Days 2011,
 - on the license website,
 - in a contract, oral or written.
No objection was raised, so far.

The developers agreeing are:
  Justus Piater
  Alexis Ballier
  Alexander Bethke
  Mohammed Adnène Trojette
  Alex Converse
  Alexey Sokolov
  Alexis de Lattre
  Andre Pang
  Anthony Loiseau
  Cyril Deguet
  André Weber
  Boris Dorès
  Brieuc Jeunhomme
  Benjamin Drung
  Hugo Beauzée-Luyssen
  Benoit Steiner
  Benjamin Pracht
  Bernie Purcell
  Przemyslaw Fiala
  Arnaud de Bossoreille de Ribou
  Brad Smith
  Nick Briggs
  Christopher Rath
  Christophe Courtaut
  Christopher Mueller
  Clement Chesnin
  Andres Krapf
  Damien Fouilleul
  David Flynn
  Sebastien Zwickert
  Antoine Cellerier
  Jérôme Decoodt
  Jérome Decoodt
  Dylan Yudaken
  Eduard Babayan
  Eugenio Jarosiewicz
  Elliot Murphy
  Eric Petit
  Erwan Tulou
  Etienne Membrives
  Ludovic Fauvet
  Fabio Ritrovato
  Tobias Güntner
  Jakub Wieczorek
  Frédéric Crozat
  Francois Cartegnie
  Laurent Aimar
  Florian G. Pflug
  Felix Paul Kühne
  Frank Enderle
  Rafaël Carré
  Simon Latapie
  Gildas Bazin
  Geoffroy Couprie
  Julien / Gellule
  Gildas Bazin
  Arnaud Schauly
  Toralf Niebuhr
  Vicente Jimenez Aguilar
  Derk-Jan Hartman
  Henri Fallon
  Ilkka Ollakka
  Olivier Teulière
  Rémi Duraffort
  Jakob Leben
  Jean-Baptiste Kempf
  Jean-Paul Saman
  Jean-Philippe Grimaldi
  Jean-François Massol
  Gaël Hendryckx
  Jakob Leben
  Jean-Marc Dressler
  Jai Menon
  Johan Bilien
  Johann Ransay
  Joris van Rooij
  JP Dinger
  Jean-Philippe André
  Adrien Grand
  Juha Jeronen
  Juho Vähä-Herttua
  Kaarlo Raiha
  Kaarlo Raiha
  Kamil Baldyga
  Keary Griffin
  Ken Self
  KO Myung-Hun
  Pierre Ynard
  Filippo Carone
  Loïc Minier
  Luca Barbato
  Lucas C. Villa Real
  Lukas Durfina
  Adrien Maglo
  Marc Ariberti
  Mark Lee
  Mark Moriarty
  Martin Storsjö
  Christophe Massiot
  Michel Kaempf
  Marian Ďurkovič
  Mirsal Ennaime
  Carlo Calabrò
  Damien Lucas
  Naohiro Koriyama
  Basos G
  Pierre Baillet
  Vincent Penquerc'h
  Olivier Aubert
  Pankaj Yadav
  Paul Corke
  Pierre d'Herbemont
  Philippe Morin
  Antoine Lejeune
  Michael Ploujnikov
  Jean-Marc Dressler
  Michael Hanselmann
  Rafaël Carré
  Ramiro Polla
  Rémi Denis-Courmont
  Renaud Dartus
  Richard Shepherd
  Faustino Osuna
  Arnaud Vallat
  Rob Jonson
  Robert Jedrzejczyk
  Steve Lhomme
  Rocky Bernstein
  Romain Goyet
  Rov Juvano
  Sam Hocevar
  Martin T. H. Sandsmark
  Sebastian Birk
  Sébastien Escudier
  Vincent Seguin
  Fabio Ritrovato
  Sigmund Augdal Helberg
  Casian Andrei
  Srikanth Raju
  Hannes Domani
  Stéphane Borel
  Stephan Krempel
  Stephan Assmus
  Tony Castley
  Pavlov Konstantin
  Eric Petit
  Tanguy Krotoff
  Dennis van Amerongen
  Michel Lespinasse
  Can Wu
  Xavier Marchesini
  Sébastien Toque
  Christophe Mutricy
  Yoann Peronneau
  Yohann Martineau
  Yuval Tze
  Scott Caudle
  Clément Stenac

It is possible, that some minor piece of code was badly tracked, for
some reasons (SVN, mainly) or that some small developers did not answer.
However, as an "œuvre collective", defined as in "CPI 113-2 alinéa 3",
and seeing "Cour. Cass. 17 Mai 1978", and seeing that the editor and
the very vast majority of developers have agreed (> 99.99% of the code,
> 99% of developers), we are fine here.
2011-11-27 22:54:33 +01:00
Rémi Denis-Courmont
92f1b3aee7 Rename LIBVLC_* function attributes to VLC_* within plugin API 2011-05-07 23:08:28 +03:00
Rémi Denis-Courmont
6f258887aa Replace VLC_EXPORT macro with a simple prefix, VLC_API
This should help Doxygen parse VLC headers, and generally makes headers
easier to read. LibVLC already uses a similar approach.
2011-05-07 18:43:51 +03:00
Jean-Baptiste Kempf
3e22604e33 More documentation for vlc_services_discovery.h 2011-04-24 21:23:56 +02:00
Jean-Baptiste Kempf
bf343c2943 Document vlc_services_discovery.h 2011-04-24 20:56:07 +02:00
Rémi Duraffort
16d8baab81 sd: fix compilation (missing file in the previous commit). 2010-11-02 08:31:09 +01:00
Rémi Duraffort
7c5348b695 sd: remove the pf_search and use a more generic pf_control function.
This way we can implement both a search function and a description function.
2010-10-24 04:11:14 +02:00
Rémi Duraffort
a60a86bd83 SD: add a function to query a service discovery for more items. 2010-10-19 21:13:47 +02:00
Rémi Duraffort
502a2fa805 includes: add some LIBVLC_USED. 2010-08-03 21:19:29 +02:00
Rémi Denis-Courmont
55abf4ec4b Revert "sd: Make most members private."
This reverts commit 786292c3f2.

Apparently, compiling libvlccore (on any platform) is too much to ask.
2010-02-24 17:56:03 +02:00
Rémi Denis-Courmont
350b105276 Revert "sd: Export internals with a getters."
This reverts commit 027b44025e.
2010-02-24 17:54:49 +02:00
Pierre d'Herbemont
027b44025e sd: Export internals with a getters.
lua need them. Also fix an obvious leak.
2010-02-24 14:15:59 +01:00
Pierre d'Herbemont
786292c3f2 sd: Make most members private. 2010-02-24 13:46:39 +01:00
Rémi Denis-Courmont
ee73bdeaf5 No need for sprintf() here
This reverts commit af688c8f29.
2010-02-10 17:46:39 +02:00
Jakob Leben
af688c8f29 services_discovery: fix embedding longname in name, take 2
The longname argument to macro #define VLC_SD_PROBE_HELPER(name, longname, cat)
is usually in the form like N_("some_longname"). Literalization of the argument by
doing # longname in the macro will result in a literal "N_(\"some_longname\")"
instead of translating the long name.
2010-02-10 02:30:12 +01:00
Jakob Leben
2a2dd55119 services_discovery: implement SD categories and use in Qt interface 2010-02-10 02:12:36 +01:00
Rémi Denis-Courmont
bb14295fac Revert "services_discovery: fix embedding translated longname into name"
This fixes a buffer overflow and a warning.
This reverts commit caa08dce07.
2010-02-09 21:45:25 +02:00
Jakob Leben
caa08dce07 services_discovery: fix embedding translated longname into name 2010-02-09 19:00:45 +01:00
Rémi Denis-Courmont
191fab819d Automatically pass the long name in the SD probe helper 2010-02-06 17:08:27 +02:00
Rémi Denis-Courmont
6e160dae0f SD: initialize config chain also in LibVLC media discovery, fix leaks 2010-02-04 18:50:08 +02:00
Fabio Ritrovato
0a69bbfd9e luasd: use a configuration chain to pass parameters to SD
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2010-02-04 18:16:13 +02:00
Rémi Denis-Courmont
ace8442cc7 probe: helpers for services discovery 2009-12-21 21:42:36 +02:00
Rémi Denis-Courmont
dccd947213 vlc_sd_GetNames: add object parameter 2009-12-21 20:07:20 +02:00
Rémi Denis-Courmont
5aa9519392 Remove useless parameter 2009-01-10 20:53:49 +02:00
Rémi Denis-Courmont
7276a43dcd SD: remove psz_module parameter, shorter function names 2009-01-10 19:28:34 +02:00
Rémi Denis-Courmont
c4877da890 Remove buggy and unused function 2009-01-10 19:20:28 +02:00
Rémi Denis-Courmont
64fb2cd16e Restore SD human-readable names 2009-01-10 19:11:31 +02:00
Pierre d'Herbemont
4e9d2f92cd services_discovery: Partially fix service discovery. We yet need to find a way to properly get the localized name... grr.
Previously we properly initialized the localized name of the object in Open(). Now Open() also runs Run() so we are kind of stuck. Please fix.
2008-09-20 23:12:35 +02:00
Rémi Denis-Courmont
a77e2404c8 simplify service discoveries
By the way, the event management seems quite broken. Events may occur
before _Create returns (even before this commit)...
2008-09-20 22:10:54 +03:00
Jean-Paul Saman
ebd800345f Add a bunch of \file doxygen comments 2008-08-13 22:22:58 +08:00
Rémi Denis-Courmont
c0f4bfc5d8 Headers: use non-reserved identifiers for multi-inclusion protection 2008-08-11 19:34:48 +03:00
Rémi Denis-Courmont
fbb8255dcf Remove __LIBVLC__ test 2008-06-06 19:07:55 +03:00
Sam Hocevar
5122c9d9e9 Various spelling fixes. 2008-03-21 21:25:49 +00:00
Rémi Denis-Courmont
1b09c02c7e Include assert.h when needed 2008-01-24 16:08:13 +00:00
Antoine Cellerier
acbd355a0b Use the services_discovery_GetServicesNames() function in the qt4 and wxwidgets (i don't compile the wxwidgets module so there might be a few warnings/errors). This removes comprehension of how VLC modules work from the interface plugins. This change still needs to be done in the modules/gui/macosx/playlist.m file. 2007-11-11 21:08:36 +00:00
Antoine Cellerier
07c7cdcb21 Add argument to module_GetModulesNamesForCapability (and services_discovery_GetServicesNames) to also get the longnames. 2007-11-11 20:32:43 +00:00
Pierre d'Herbemont
222960cff9 playlist/services_discovery.c: Isolate more the services_discovery code from the playlist code by having two separate header. Partly revert [22536]. 2007-10-11 01:02:50 +00:00