Commit Graph

56 Commits

Author SHA1 Message Date
Jean-Paul Saman 0dd0a8d44c vlc_arrays.h: check malloc return value. 2012-05-02 15:09:40 +02:00
Casian Andrei 308259d1ab Create a has_key function for a vlc dictionary
Signed-off-by: Ilkka Ollakka <ileoo@videolan.org>
2012-02-29 08:26:25 +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
Rafaël Carré 4dac634850 vlc_arrays: remove unused macro _ARRAY_GROW
don't start variables with _, they have local scope anyway
2011-08-20 19:56:50 -04:00
Rafaël Carré b123950891 remove redundant TAB_APPEND_CPP 2011-08-20 19:56:22 -04:00
Hugo Beauzée-Luyssen a1a0cafb6c vlc_arrays: Adding a C++ helper to clean a container
Signed-off-by: Rémi Duraffort <ivoire@videolan.org>
2010-11-26 19:47:47 +01:00
Rémi Denis-Courmont f83fdcacb5 Expansion safety 2010-07-19 19:59:31 +03:00
Rémi Denis-Courmont 4c8dc8e914 Abort if array allocation fails 2009-05-31 22:25:54 +03:00
Rémi Denis-Courmont 982400e1dc Error-proof REMOVE_ELEM 2009-05-24 21:10:38 +03:00
Laurent Aimar 37d45ebb7a Cosmetics + A calloc check. 2008-10-09 01:22:02 +02:00
Adrien Maglo 639eb0c5ab Redefine vlc_dictionary_clear() and vlc_dictionary_remove_value_for_key() Allow passing a pointer to a function and an opaque pointer in order to free the memory if the values of the dictionary contain allocated memory.
Signed-off-by: Rémi Duraffort <ivoire@videolan.org>
2008-10-05 21:44:46 +02:00
Rémi Duraffort 2909c5c31d Protect against bad use after a vlc_dictionary_clear. 2008-10-01 19:55:09 +02:00
Rémi Duraffort 05c8c0d916 vlc_array: Macro safety. 2008-09-26 22:59:23 +02:00
Rémi Duraffort 2bb0711d59 vlc_array: macro safety. 2008-09-26 21:35:46 +02:00
Rémi Denis-Courmont 4edec0d684 FOREACH_ARRAY: expansion safety 2008-09-14 13:10:30 +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
Rémi Denis-Courmont 900ea6ff82 Do not use assert in public headers 2008-05-26 19:19:42 +03:00
Pierre d'Herbemont 449fd28aaf Replace vlc_bool_t by bool, VLC_TRUE by true and VLC_FALSE by false.
This improves readability a lot and prevent us from reinventing the wheel.
2008-04-14 02:02:22 +02:00
Sam Hocevar 5122c9d9e9 Various spelling fixes. 2008-03-21 21:25:49 +00:00
Rémi Duraffort 32376dc26e Remove useless test before a free.
if( bla ) free( bla ); => free( bla );
2008-03-11 22:57:35 +01:00
Pierre d'Herbemont 14d79cf682 vlc_arrays.h: Fix insertion rebuilding. 2008-02-15 22:04:18 +00:00
Pierre d'Herbemont 536386869c vlc_arrays.h: More vlc_dictionary_t fixes. 2008-02-13 22:09:00 +00:00
Pierre d'Herbemont 755df9f11d vlc_arrays.h: Make sure we return the right value associated with a given key. 2008-02-13 19:06:43 +00:00
Pierre d'Herbemont 27808e124a vlc_arrays.h: Sanity check. 2008-02-01 10:15:46 +00:00
Antoine Cellerier d2ea07fa41 You still need the cast to compile :) 2008-01-17 23:03:31 +00:00
Pierre d'Herbemont 3432e956a1 vlc_arrays.h: Don't use calloc, seems unreliable. 2008-01-17 22:48:41 +00:00
Antoine Cellerier 8b3d8a11a0 Fix compilation and remove a few trailing spaces. 2008-01-17 22:16:11 +00:00
Pierre d'Herbemont 666ca3c1e0 vlc_arrays.h: vlc_array_new, vlc_array_destroy. 2008-01-17 22:10:09 +00:00
Rafaël Carré 89e093a7a1 update: performs size and m5 checksum verification (untested) 2007-11-26 14:00:39 +00:00
Pierre d'Herbemont 264bde566b vlc_arrays.h: Implement vlc_array_index_of_item. 2007-11-19 13:58:52 +00:00
Jean-Paul Saman 9d6bf51a76 Add macro for determining array size. 2007-11-15 13:38:29 +00:00
Pierre d'Herbemont 1359fbd101 vlc_arrays.h: Use item_at_index istead of object_at_index. 2007-10-15 17:51:11 +00:00
Pierre d'Herbemont da53016cca include/vlc_arrays.h: Fix previous commit. 2007-10-11 12:12:31 +00:00
Pierre d'Herbemont c08fa1c24e include/vlc_arrays.h: Export a static inlined array API. 2007-10-11 12:02:06 +00:00
Rafaël Carré 6ee1e193fd Removes trailing spaces. Removes tabs. 2007-09-10 18:56:52 +00:00
Pierre d'Herbemont 6f7935161f vlc_arrays.h: Fix a bug in vlc_dictionary_remove_value_for_key, thanks to funman. 2007-08-19 21:20:47 +00:00
Pierre d'Herbemont 1855d4a8d0 include/vlc_arrays.h: Allow zero sized vlc_dictionary_t creation. 2007-08-13 14:05:34 +00:00
Pierre d'Herbemont 27d17eb1f3 include/vlc_arrays.h: Don't forget to return a value in value_for_key. 2007-08-10 13:18:46 +00:00
Pierre d'Herbemont dcabd0549c include/vlc_arrays.h: Compile fix for g++. 2007-08-10 00:56:04 +00:00
Pierre d'Herbemont 9c86aabc08 include/vlc_arrays.h: Always return a valid ptr in vlc_dictionary_all_keys. 2007-08-10 00:40:04 +00:00
Pierre d'Herbemont d248d3f2f9 include/vlc_arrays.h: Implement simple best-case-in-O(1) hash table. 2007-08-10 00:35:57 +00:00
Pierre d'Herbemont 16c039d47d include/vlc_arrays.h: oops, (I did it again). 2007-08-09 19:54:43 +00:00
Pierre d'Herbemont 98d4bb6772 (oops) 2007-08-09 19:38:00 +00:00
Pierre d'Herbemont 2fa6989d9c Fix previous commit on gcc. (oops). 2007-08-09 19:29:17 +00:00
Pierre d'Herbemont 1488ac1394 include/vlc_arrays.h: Fix previous commit compilation with g++. 2007-08-09 19:12:11 +00:00
Pierre d'Herbemont 64a70c8e36 include/vlc_arrays.h: Transform the dictionary macro to static inline, and publish a vlc_dictionary_t type. 2007-08-09 18:38:48 +00:00
Laurent Aimar 8919d218a7 Fixed vlc_meta_SetXXX macros
Added decoder_GetInputAttachments.
2007-06-03 22:19:50 +00:00
Laurent Aimar 28b7dd1a57 Added a c++ compatible TAB_APPEND_CPP 2007-03-23 19:49:21 +00:00