disc_generic.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* --------------------------------------------------------------------------
  2. MusicBrainz -- The Internet music metadatabase
  3. Copyright (C) 2013 Johannes Dewender
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with this library; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  15. --------------------------------------------------------------------------- */
  16. #include <stdio.h>
  17. #include "discid/discid.h"
  18. #include "discid/discid_private.h"
  19. char *mb_disc_get_default_device_unportable(void) {
  20. return "/dev/null";
  21. }
  22. int mb_disc_has_feature_unportable(enum discid_feature feature) {
  23. return 0;
  24. }
  25. int mb_disc_read_unportable(mb_disc_private *disc, const char *device, unsigned int features) {
  26. snprintf(disc->error_msg, MB_ERROR_MSG_LENGTH,
  27. "disc reading not implemented on this platform");
  28. return 0;
  29. }
  30. /* EOF */