Commit Graph

27 Commits

Author SHA1 Message Date
Rémi Denis-Courmont
f7aa8a5308 make_path: make a local file path from an URI 2010-01-30 18:34:28 +02:00
Rémi Denis-Courmont
d4bd159e33 Remove vlc_UrlEncode 2009-06-22 19:46:24 +03:00
Rafaël Carré
2341f8bbc2 Remove unused unescape_URI() and unescape_URI_duplicate()
(cherry picked from commit b5687139f9ac84a7bdf03d9a9612950c43fe6ec2)
2009-05-30 00:32:42 +02:00
Rémi Denis-Courmont
cc112d8fcb make_URI: make a URI out of a path, if needed 2009-05-10 15:23:18 +03:00
Rémi Denis-Courmont
d04effdcbb decode_URI: improve documentation, add a return value 2009-05-10 13:35:56 +03:00
Rémi Duraffort
bbd5ed6247 vlc_url.h: warning about overriden variable. 2009-02-03 10:49:33 +01: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 Duraffort
32376dc26e Remove useless test before a free.
if( bla ) free( bla ); => free( bla );
2008-03-11 22:57:35 +01:00
Rémi Denis-Courmont
1d22fe1f6f Forward declare vlc_url_t 2007-12-13 18:34:05 +00:00
Antoine Cellerier
889362b53c * include/vlc_url.h: vlc_UrlParse(): forbid use of '/' in login or password. Fixes use of URLs like "http://www.lemonde.fr/web/video/0,47-0@2-3210,54-913109@51-891944,0.html". 2007-05-21 20:37:23 +00:00
Christophe Mutricy
5f018616ef oups, better put the prototype before using the function 2007-05-19 00:35:48 +00:00
Christophe Mutricy
468adb250b vlc_url.h: Username and password passed in the URL can contain encoded @ : and /. So decode them. 2007-05-19 00:15:12 +00:00
Laurent Aimar
47a67b9006 Improved vlc_UrlParse (close #1025)
We use vlc_UrlParse for "URL" without protocol... so it was using a part of
the URL as a protocol if it found ":/". Ensure to extract only valid protocol
at least.
2007-02-21 21:31:36 +00:00
Rémi Denis-Courmont
dfb78a8b88 De-inline base64 decoder 2007-02-10 09:49:15 +00:00
Clément Stenac
fbf4c8060d A bit of vlc/libvlc cleanup:
* libvlc sources and plugins now define __LIBVLC__ and headers exported to
  plugins (ie, include/vlc_*.h) check for this
* libvlc sources use the value of the "libvlc" component in vlc-config instead
  of vlc
* Apply flags directly to "libvlc" in configure.ac - might temporarily break win32 :)
2006-12-03 13:48:21 +00:00
Clément Stenac
d3fe7f2879 A bit of headers cleanup
* Headers in include must contain the structures and prototypes needed
  by the plugins and should be named vlc_*.
* Headers in include/vlc must contain the structures and prototypes
  needed by external libvlc clients

* Moved and renamed some things in headers. 
   - Removed vlc_cpu.h, vlc_error.h (merged in vlc_common)
   - Removed snapshot.h (merged in vlc_vout.h)
   - Removed vlc_spu.h (merged in vlc_osd.h)
   - Removed intf_eject.h and vlc_interaction.h (merged in vlc_interface)
   - Moved all internal headers to src
   - Merged vlc_video.h and video_output.h and move private things to src
   - Removed vlc/intf.h, vlc/aout.h, vlc/vout.h, vlc/decoder.h and vlc/input.h
     (meta headers for use in modules, and often implying too large 
     dependencies)
* Removed some useless dependencies
* Unexported a bunch of functions and structures used only in src/
  (--> Still some work here)
* Finally made input_thread_t and input_source_t (mostly) private. 
  Added input_GetItem to fetch the input_item of an input_thread
* Cleaned up deprecated entries in vlc_symbols.h and bumped up symbol 
  prefix

This commit has a 99% probability of breaking the build, 0.1% of killing
your cat and 0% of getting you hot chicks.
2006-11-26 14:20:34 +00:00
Rémi Denis-Courmont
64f018048c *Really* fix base 64 encoding 2006-08-30 17:27:38 +00:00
Rémi Denis-Courmont
64874cf7fc Fix base64 encoding and add regression test 2006-08-30 14:58:18 +00:00
Rémi Denis-Courmont
299ef0c091 Oups 2006-04-06 21:20:33 +00:00
Rémi Denis-Courmont
73508ddd4c - Reimplement URL component decoding separately from URL unescaping
- Replace crap URL escaping with URL encoding, which is what we really need
2006-04-06 20:38:43 +00:00
Christophe Massiot
1017d246c1 * include/vlc_url.h: Fixed vlc_UrlEncode to return correct values and avoid
crashing with strings as simple as "/toto", but all in all the entire
   function seems very wrong to me, see the next mail.
2006-04-06 17:12:32 +00:00
Rémi Denis-Courmont
a48f5f177f - Do not rewrite “+” as a white space when unescaping URL parameters (fixes #625).
- Rename decode_encoded_URI as unescape_URI as it really is what is done.
2006-04-03 11:39:35 +00:00
Rémi Denis-Courmont
9964dee4e2 Oops 2006-03-27 16:48:14 +00:00
Rémi Denis-Courmont
168549fa94 Support URL-escape non-ASCII characters properly as far as possible
(ie. all characters from the Basic Multilingual Plane from Unicode)
2006-03-27 13:28:24 +00:00
Rémi Denis-Courmont
d18bfd92bb Separate socket/resolv stuff (network.h) from url stuff (vlc_url.h) 2006-02-27 12:46:42 +00:00