This commit is contained in:
Kovid Goyal 2012-08-13 12:26:17 +05:30
parent 20774544ac
commit 3ecdd2d269
5 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,11 @@
/*
* libmtp.c
* Copyright (C) 2012 Kovid Goyal <kovid at kovidgoyal.net>
*
* Distributed under terms of the GPL3 license.
*/
#define UNICODE #define UNICODE
#include <Python.h> #include <Python.h>

View File

@ -2,7 +2,7 @@
* device_enumeration.cpp * device_enumeration.cpp
* Copyright (C) 2012 Kovid Goyal <kovid at kovidgoyal.net> * Copyright (C) 2012 Kovid Goyal <kovid at kovidgoyal.net>
* *
* Distributed under terms of the MIT license. * Distributed under terms of the GPL3 license.
*/ */
#include "global.h" #include "global.h"
@ -72,7 +72,7 @@ IPortableDevice *open_device(const wchar_t *pnp_id, IPortableDeviceValues *clien
} // }}} } // }}}
PyObject* get_storage_info(IPortableDevice *device) { PyObject* get_storage_info(IPortableDevice *device) { // {{{
HRESULT hr, hr2; HRESULT hr, hr2;
IPortableDeviceContent *content = NULL; IPortableDeviceContent *content = NULL;
IEnumPortableDeviceObjectIDs *objects = NULL; IEnumPortableDeviceObjectIDs *objects = NULL;
@ -183,7 +183,7 @@ end:
if (storage_properties != NULL) storage_properties->Release(); if (storage_properties != NULL) storage_properties->Release();
if (values != NULL) values->Release(); if (values != NULL) values->Release();
return ans; return ans;
} } // }}}
PyObject* get_device_information(IPortableDevice *device) { // {{{ PyObject* get_device_information(IPortableDevice *device) { // {{{
IPortableDeviceContent *content = NULL; IPortableDeviceContent *content = NULL;

View File

@ -2,7 +2,7 @@
* global.h * global.h
* Copyright (C) 2012 Kovid Goyal <kovid at kovidgoyal.net> * Copyright (C) 2012 Kovid Goyal <kovid at kovidgoyal.net>
* *
* Distributed under terms of the MIT license. * Distributed under terms of the GPL3 license.
*/ */
#pragma once #pragma once

View File

@ -2,7 +2,7 @@
* utils.cpp * utils.cpp
* Copyright (C) 2012 Kovid Goyal <kovid at kovidgoyal.net> * Copyright (C) 2012 Kovid Goyal <kovid at kovidgoyal.net>
* *
* Distributed under terms of the MIT license. * Distributed under terms of the GPL3 license.
*/ */
#include "global.h" #include "global.h"

View File

@ -2,7 +2,7 @@
* mtp.c * mtp.c
* Copyright (C) 2012 Kovid Goyal <kovid at kovidgoyal.net> * Copyright (C) 2012 Kovid Goyal <kovid at kovidgoyal.net>
* *
* Distributed under terms of the MIT license. * Distributed under terms of the GPL3 license.
*/ */
#include "global.h" #include "global.h"