parse.h 555 B

123456789101112131415161718192021
  1. #ifndef PARSE_H
  2. #define PARSE_H
  3. #define _GNU_SOURCE
  4. #include "youtube.h"
  5. #include "network.h"
  6. video_list* parse_playlist(const char* info);
  7. media_list* parse_media_info(const char* info);
  8. video_info* parse_video_info(const char* info);
  9. video_list* parse_search_json(const char* info);
  10. int parse_url(const char* url, char** base, char** request);
  11. char* replace_sub_str(const char* start, const char* sub, const char* new);
  12. int delete_sub_str(char* buf, char* sub);
  13. int percent_decode(char* buf);
  14. char* percent_encode(const char* s);
  15. #endif // PARSE_H