1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-04 09:11:33 +02:00
Commit Graph

118 Commits

Author SHA1 Message Date
Rémi Denis-Courmont
4ee1038059 include: improve Doxygen modules
In particular, move \file stanzas inside groups.
2015-06-14 19:04:50 +03:00
Rémi Denis-Courmont
c8d5ba620e logger: track file, line and function for debug 2015-02-08 14:57:17 +02:00
Rémi Denis-Courmont
d92c4331a6 msg: simplify msg_GenericVa() macro 2015-02-08 14:57:17 +02:00
Rémi Denis-Courmont
8fa96a4636 logger: allow logger as a module 2015-02-08 12:18:03 +02:00
Rémi Denis-Courmont
a37d20ccf6 vlc_strerror() and vlc_strerror_c() convenience wrappers
Those are more flexible than the GNU-specific %m format specifier to
print standard error messages. They are also less likely to format a
clobbered error number.
2013-12-29 15:36:02 +02:00
Rémi Denis-Courmont
2ff0bceaa7 msg_...: default value for MODULE_STRING
This was often confusing external plugin authors.
2013-09-15 20:38:41 +03:00
Rémi Denis-Courmont
dde93dd573 Rename msg_item_* to vlc_log_* (cosmetic)
(This is needed for the next change.)
2013-03-18 23:15:22 +02:00
Rémi Denis-Courmont
b549105cfb Move message subscription stuff from vlc_messages.h to vlc_interface.h
This is not particularly clean and intuitive. But <vlc_messages.h> is
included and used all over the place, whereas the back-end is only used
by interfaces.
2012-04-18 23:22:41 +03:00
Pere Orga
9abcaacf83 fix filename self-references
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-12-15 17:09:31 +02:00
Rémi Denis-Courmont
a1f861a076 Move stats counter declaration to core
One last full rebuild for this!
2011-11-29 20:40:18 +02:00
Rémi Denis-Courmont
9697eabdc1 Remove unused counter_t members 2011-11-29 19:24:52 +02:00
Rémi Denis-Courmont
b21c8b2f44 Remove unused min, max and last stats 2011-11-29 19:14:26 +02:00
Rémi Denis-Courmont
e3a897cf11 Remove write-only timer statistics
The implementation was slow/inefficient. This is really silly for
_performance_ counters. And contrary to the other statistics, nothing
actually reads them, except for debug logs.

If you really want debug-only performance timers, use this:

    mtime_t start, end;

    start = mdate();
    compute_decimals_of_Pi(100);
    end = mdate();
    msg_Dbg(obj, "spent %"PRIu64" us computing", end - start);
2011-11-29 19:14:22 +02: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
63d1c692a8 Push log message formatting to subscribers
This avoids allocating memory and formatting debug messages when none
of the subscribers care about them.
2011-08-20 23:34:43 +03:00
Rémi Denis-Courmont
b17eb18e9c Move msg_Copy() and msg_Free() to ncurses 2011-08-20 22:36:07 +03:00
Rémi Denis-Courmont
55af05f319 Remove msg_cb_data_t and simplify accordingly 2011-08-19 23:38:37 +03:00
Rémi Denis-Courmont
fad10ee530 Fix namespace, remove useless variable and clean up msg_* functions() 2011-08-19 23:38:37 +03:00
Rémi Denis-Courmont
f1c5ba552c Remove object message filtering from core 2011-08-19 23:38:37 +03:00
Rémi Denis-Courmont
7a05e56155 Remove msg_SubscriptionSetVerbosity 2011-08-18 23:43:14 +03:00
Rémi Denis-Courmont
6327c52db7 Qt4: apply verbosity filtering within Qt, do not rely on core 2011-08-18 23:34:36 +03:00
Rémi Denis-Courmont
a6c58bdb7d msg_Copy: psz_header can be NULL 2011-05-14 16:55:00 +03:00
Rémi Denis-Courmont
9f1762006c Update message callback
- remove always zero overruns counter,
 - constify message pointer.
2011-05-11 19:41:57 +03:00
Rémi Denis-Courmont
f2fd47b4b4 No need to copy msg_item_t.psz_header 2011-05-11 19:41:56 +03:00
Rémi Denis-Courmont
f68b07bf94 No need to copy module in message item 2011-05-11 18:29:11 +03:00
Rémi Denis-Courmont
9e3c1a6d39 Use copy/free paradigm rather than hold/release for message items
Message items are more often than not not rereferenced, and hardly ever
rereferenced more than once. Demand-copying will be faster in most
common circumstances (especially built-in console or logger).
2011-05-11 18:29:11 +03:00
Rémi Denis-Courmont
0b93cc7191 Remove unused msg_item_t.date 2011-05-11 18:29:10 +03: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
Rémi Duraffort
5ca3019168 includes: add some more LIBVLC_USED. 2010-07-15 23:44:49 +02:00
Ilkka Ollakka
14d8d88c6c add msg_SubscriptionSetVerbosity call, so core filter message-level for subscribers 2010-07-14 21:37:54 +03:00
Rémi Denis-Courmont
094cdf1403 stats: remove leading underscores 2010-02-07 13:33:47 +02:00
Rémi Denis-Courmont
a519cf4a4d Cleanup msg_Generic functions 2010-02-06 18:28:51 +02:00
Rémi Denis-Courmont
45e8e2a8eb Hide message bank layout and cleanup a bit
Also fix a potential crash in case of stale subscriber
(print debug message to stderr).
2010-02-06 18:21:32 +02:00
Rémi Denis-Courmont
93334e1d80 Messages: missing const, fix Qt4 warning 2010-01-05 22:48:48 +02:00
Rémi Duraffort
3d6f02e657 Fix doxygene documentation. 2009-10-16 19:32:17 +02:00
Jean-Paul Saman
682db2c855 stats: Add stream quality counters to Qt4 stastics by counting corrupted blocks and discontinuities found.
Note the quality counters are mere indications and not exact reporting of how much blocks/discontinuity really occured. It will only tell you how often it is noticed.
2009-03-09 13:49:15 +01:00
Rémi Denis-Courmont
1793ca880e Privatize input stats internals
Those were never used from plugins. This commit is a no-brainer.
2009-02-28 19:45:55 +02:00
Rémi Denis-Courmont
2f1189df0a Remove remaining global stats code 2009-02-28 19:19:45 +02:00
Rémi Denis-Courmont
96d708c276 Count message references and get rid of the global message ring buffer
Each susbcriber has its own ring buffer already.
2008-10-14 23:47:06 +03:00
Rémi Denis-Courmont
9745c4a826 Sanitize/rewrite the message subscription API 2008-10-12 22:44:57 +03:00
Rémi Denis-Courmont
28b9113747 Remove dead functions 2008-10-12 19:12:09 +03:00
Rémi Denis-Courmont
b815d93deb Cosmetic 2008-10-12 16:58:00 +03:00
Rémi Denis-Courmont
29a0b6307a Use object address for logging - fixes uniqueness problems 2008-09-20 17:29:16 +03:00
Pierre d'Herbemont
9f9d89824b libvlc: Add a --verbose-objects option to select which objects should print their msg.
Sample usage:
--verbose-objects=+input,-all
2008-09-02 01:39:10 +02: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
Pierre d'Herbemont
e7b0790a86 Revert "messages: Prefer the object name over the object type if type is VLC_GENERIC."
This reverts commit 0386618539.

Conflicts:

	src/misc/messages.c
2008-07-06 18:43:06 +02:00
Pierre d'Herbemont
0386618539 messages: Prefer the object name over the object type if type is VLC_GENERIC. 2008-07-06 17:41:14 +02:00
Pierre d'Herbemont
bd5c615970 Revert "libvlc: Add a --verbose-objects option to select which objects should print their msg."
This reverts commit 497b59e4fc.

We are in code freeze.
2008-07-06 15:58:13 +02:00