No Description
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.

main.h 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #include <stdlib.h>
  2. #include <getopt.h>
  3. #include <unistd.h>
  4. #include <stdio.h>
  5. #include <string.h>
  6. #include <xmmsclient/xmmsclient.h>
  7. struct xplaylist_args_t {
  8. const char *playlist_name; /* -p */
  9. const char *output_type; /* -t */
  10. const char *output_filename;
  11. FILE *out_file;
  12. } xplaylist_args;
  13. static const char *xplaylist_opt_string = "p:t:";
  14. static const struct option xplaylist_long_opts[] =
  15. {
  16. {"playlist", required_argument, NULL, 'p'},
  17. {"type", required_argument, NULL, 't'},
  18. {"list", no_argument, 0, 'l'},
  19. {"help", no_argument, NULL, 'h'},
  20. {NULL, no_argument, 0, 0}
  21. };
  22. /* Simple list to append URL's to. */
  23. struct medialib_info_node {
  24. char *url;
  25. char *title;
  26. char *artist;
  27. int length;
  28. struct medialib_info_node *next;
  29. };
  30. void usage();
  31. char* get_media_string(xmmsc_connection_t*, int, const char*);
  32. int get_media_int(xmmsc_connection_t*, int, const char*);
  33. bool start_playlist_m3u();
  34. bool add_playlist_m3u(int, const char*, const char*, const char*);
  35. bool end_playlist_m3u();
  36. bool start_playlist_pls(int);
  37. bool add_playlist_pls(int, const char*, const char *);
  38. bool end_playlist_pls();