~ubuntu-branches/ubuntu/precise/libmtp/precise-proposed

« back to all changes in this revision

Viewing changes to examples/albums.c

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-02-04 16:34:58 UTC
  • mto: (16.1.5 sid) (0.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20100204163458-pegywpiiisrzx72w
Tags: upstream-1.0.2
ImportĀ upstreamĀ versionĀ 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
  printf("    Tracks: %d\n\n",album->no_tracks);
35
35
}
36
36
 
37
 
int main () {
 
37
int main (int argc, char *argv[]) {
38
38
  LIBMTP_mtpdevice_t *device_list, *iter;
39
39
 
 
40
  int opt;
 
41
  extern int optind;
 
42
  extern char *optarg;
 
43
 
 
44
  while ((opt = getopt(argc, argv, "d")) != -1 ) {
 
45
    switch (opt) {
 
46
    case 'd':
 
47
      LIBMTP_Set_Debug(9);
 
48
      break;
 
49
    }
 
50
  }
 
51
 
 
52
  argc -= optind;
 
53
  argv += optind;
 
54
 
40
55
  LIBMTP_Init();
41
56
    
42
57
  fprintf(stdout, "libmtp version: " LIBMTP_VERSION_STRING "\n\n");