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

« back to all changes in this revision

Viewing changes to src/libmtp.h

  • 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:
2
2
 * \file libmtp.h
3
3
 * Interface to the Media Transfer Protocol library.
4
4
 *
5
 
 * Copyright (C) 2005-2008 Linus Walleij <triad@df.lth.se>
 
5
 * Copyright (C) 2005-2009 Linus Walleij <triad@df.lth.se>
6
6
 * Copyright (C) 2005-2008 Richard A. Low <richard@wentnet.com>
7
7
 * Copyright (C) 2007 Ted Bullock <tbullock@canada.com>
8
8
 * Copyright (C) 2008 Florent Mertens <flomertens@gmail.com>
29
29
#ifndef LIBMTP_H_INCLUSION_GUARD
30
30
#define LIBMTP_H_INCLUSION_GUARD
31
31
 
32
 
#define LIBMTP_VERSION 1.0.1
33
 
#define LIBMTP_VERSION_STRING "1.0.1"
 
32
#define LIBMTP_VERSION 1.0.2
 
33
#define LIBMTP_VERSION_STRING "1.0.2"
34
34
 
35
35
/* This handles MSVC pecularities */
36
36
#ifdef _MSC_VER
55
55
#include <stdio.h>
56
56
#include <usb.h>
57
57
#include <stdint.h>
 
58
/* We use time_t */
 
59
#include <time.h>
58
60
 
59
61
/**
60
62
 * @defgroup types libmtp global type definitions
61
63
 * @{
 
64
 */
 
65
 
 
66
/**
 
67
 * The debug flags defined here are the external flags used
 
68
 * by the libmtp library interface.
 
69
 */
 
70
#define LIBMTP_DEBUG_NONE               0x00
 
71
#define LIBMTP_DEBUG_PTP                0x01
 
72
#define LIBMTP_DEBUG_PLST               0x02
 
73
#define LIBMTP_DEBUG_USB                0x04
 
74
#define LIBMTP_DEBUG_DATA               0x08
 
75
#define LIBMTP_DEBUG_ALL                0xFF
 
76
 
 
77
 
 
78
/**
62
79
 * The filetypes defined here are the external types used
63
80
 * by the libmtp library interface. The types used internally
64
81
 * as PTP-defined enumerator types is something different.
724
741
extern "C" {
725
742
#endif
726
743
 
 
744
extern int LIBMTP_debug;
 
745
 
727
746
/**
728
747
 * @defgroup internals The libmtp internals API.
729
748
 * @{
730
749
 */
 
750
void LIBMTP_Set_Debug(int);
731
751
void LIBMTP_Init(void);
732
752
int LIBMTP_Get_Supported_Devices_List(LIBMTP_device_entry_t ** const, int * const);
733
753
/**
846
866
LIBMTP_track_t *LIBMTP_Get_Tracklisting(LIBMTP_mtpdevice_t*);
847
867
LIBMTP_track_t *LIBMTP_Get_Tracklisting_With_Callback(LIBMTP_mtpdevice_t*,
848
868
      LIBMTP_progressfunc_t const, void const * const);
 
869
LIBMTP_track_t *LIBMTP_Get_Tracklisting_With_Callback_For_Storage(LIBMTP_mtpdevice_t*, uint32_t const,
 
870
      LIBMTP_progressfunc_t const, void const * const);
849
871
LIBMTP_track_t *LIBMTP_Get_Trackmetadata(LIBMTP_mtpdevice_t*, uint32_t const);
850
872
int LIBMTP_Get_Track_To_File(LIBMTP_mtpdevice_t*, uint32_t, char const * const,
851
873
                        LIBMTP_progressfunc_t const, void const * const);
906
928
LIBMTP_album_t *LIBMTP_new_album_t(void);
907
929
void LIBMTP_destroy_album_t(LIBMTP_album_t *);
908
930
LIBMTP_album_t *LIBMTP_Get_Album_List(LIBMTP_mtpdevice_t *);
 
931
LIBMTP_album_t *LIBMTP_Get_Album_List_For_Storage(LIBMTP_mtpdevice_t *, uint32_t const);
909
932
LIBMTP_album_t *LIBMTP_Get_Album(LIBMTP_mtpdevice_t *, uint32_t const);
910
933
int LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t *, LIBMTP_album_t * const);
911
934
int LIBMTP_Update_Album(LIBMTP_mtpdevice_t *, LIBMTP_album_t const * const);