You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.5KB

  1. /*
  2. *
  3. * This file is part of Libav.
  4. *
  5. * Libav is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2.1 of the License, or (at your option) any later version.
  9. *
  10. * Libav is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with Libav; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  18. */
  19. /**
  20. * @file
  21. * unbuffered private I/O API
  22. */
  23. #ifndef AVFORMAT_URL_H
  24. #define AVFORMAT_URL_H
  25. #include "avio.h"
  26. /**
  27. * Create a URLContext for accessing to the resource indicated by
  28. * url, but do not initiate the connection yet.
  29. *
  30. * @param puc pointer to the location where, in case of success, the
  31. * function puts the pointer to the created URLContext
  32. * @param flags flags which control how the resource indicated by url
  33. * is to be opened
  34. * @return 0 in case of success, a negative value corresponding to an
  35. * AVERROR code in case of failure
  36. */
  37. int ffurl_alloc(URLContext **h, const char *url, int flags);
  38. /**
  39. * Connect an URLContext that has been allocated by ffurl_alloc
  40. */
  41. int ffurl_connect(URLContext *h);
  42. #endif //AVFORMAT_URL_H