main.m 589 B

123456789101112131415161718192021222324252627
  1. //
  2. // main.m
  3. // test
  4. //
  5. // Created by Pierre d'Herbemont on 13/04/07.
  6. // Copyright __MyCompanyName__ 2007. All rights reserved.
  7. //
  8. #import <Cocoa/Cocoa.h>
  9. #import <VLC/VLC.h>
  10. #include <stdio.h>
  11. int main(int argc, char *argv[])
  12. {
  13. /* If we can't load the VLC.framework dyld will tell us anyway
  14. * But this is cool */
  15. if(test_vlc_framework() == 0xbabe)
  16. printf("We are linked to VLC.framework!\n");
  17. else
  18. {
  19. fprintf(stderr, "*** Can't load the VLC.framework\n");
  20. return -1;
  21. }
  22. return NSApplicationMain(argc, (const char **) argv);
  23. }