summaryrefslogtreecommitdiffstats
path: root/third_party/mtpd
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-19 15:17:40 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-19 15:17:40 +0000
commit0c77b830bc3afc27b4075bebd4531f618c7d5282 (patch)
treeb6e67362fd235caa56cbdea0826ce39b3c3b98c1 /third_party/mtpd
parenta9026da8513cbf7fcbdb88a00aca4e8cf5b3a1a1 (diff)
downloadchromium_src-0c77b830bc3afc27b4075bebd4531f618c7d5282.zip
chromium_src-0c77b830bc3afc27b4075bebd4531f618c7d5282.tar.gz
chromium_src-0c77b830bc3afc27b4075bebd4531f618c7d5282.tar.bz2
Roll DEPS for mtpd to add ReadFileByChunk.
TBR=benchan Review URL: https://chromiumcodereview.appspot.com/11316073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168523 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/mtpd')
-rw-r--r--third_party/mtpd/mtpd_server/mtpd_server.h66
1 files changed, 61 insertions, 5 deletions
diff --git a/third_party/mtpd/mtpd_server/mtpd_server.h b/third_party/mtpd/mtpd_server/mtpd_server.h
index 5cd9542..1df839b 100644
--- a/third_party/mtpd/mtpd_server/mtpd_server.h
+++ b/third_party/mtpd/mtpd_server/mtpd_server.h
@@ -1,10 +1,8 @@
/*
* This file was automatically generated by dbusxx-xml2cpp; DO NOT EDIT!
- * The source for dbusxx-xml2cpp is here:
- * http://git.chromium.org/gitweb/?p=chromiumos/third_party/dbus-cplusplus.git
*/
-#ifndef __dbusxx________out_Debug_gen_mtpd_server_mtpd_server_h__ADAPTOR_MARSHALL_H
-#define __dbusxx________out_Debug_gen_mtpd_server_mtpd_server_h__ADAPTOR_MARSHALL_H
+#ifndef __dbusxx__mtpd_server_mtpd_server_h__ADAPTOR_MARSHALL_H
+#define __dbusxx__mtpd_server_mtpd_server_h__ADAPTOR_MARSHALL_H
#include <dbus-c++/dbus.h>
#include <cassert>
@@ -26,6 +24,8 @@ public:
register_method(Mtpd_adaptor, ReadDirectoryById, _ReadDirectoryById_stub);
register_method(Mtpd_adaptor, ReadFileByPath, _ReadFileByPath_stub);
register_method(Mtpd_adaptor, ReadFileById, _ReadFileById_stub);
+ register_method(Mtpd_adaptor, ReadFileChunkByPath, _ReadFileChunkByPath_stub);
+ register_method(Mtpd_adaptor, ReadFileChunkById, _ReadFileChunkById_stub);
register_method(Mtpd_adaptor, GetFileInfoByPath, _GetFileInfoByPath_stub);
register_method(Mtpd_adaptor, GetFileInfoById, _GetFileInfoById_stub);
register_method(Mtpd_adaptor, IsAlive, _IsAlive_stub);
@@ -83,6 +83,24 @@ public:
{ "data", "ay", false },
{ 0, 0, 0 }
};
+ static const ::DBus::IntrospectedArgument ReadFileChunkByPath_args[] =
+ {
+ { "handle", "s", true },
+ { "filePath", "s", true },
+ { "offset", "u", true },
+ { "count", "u", true },
+ { "data", "ay", false },
+ { 0, 0, 0 }
+ };
+ static const ::DBus::IntrospectedArgument ReadFileChunkById_args[] =
+ {
+ { "handle", "s", true },
+ { "fileId", "u", true },
+ { "offset", "u", true },
+ { "count", "u", true },
+ { "data", "ay", false },
+ { 0, 0, 0 }
+ };
static const ::DBus::IntrospectedArgument GetFileInfoByPath_args[] =
{
{ "handle", "s", true },
@@ -122,6 +140,8 @@ public:
{ "ReadDirectoryById", ReadDirectoryById_args },
{ "ReadFileByPath", ReadFileByPath_args },
{ "ReadFileById", ReadFileById_args },
+ { "ReadFileChunkByPath", ReadFileChunkByPath_args },
+ { "ReadFileChunkById", ReadFileChunkById_args },
{ "GetFileInfoByPath", GetFileInfoByPath_args },
{ "GetFileInfoById", GetFileInfoById_args },
{ "IsAlive", IsAlive_args },
@@ -161,6 +181,8 @@ public:
virtual std::vector< uint8_t > ReadDirectoryById(const std::string& handle, const uint32_t& fileId, ::DBus::Error &error) = 0;
virtual std::vector< uint8_t > ReadFileByPath(const std::string& handle, const std::string& filePath, ::DBus::Error &error) = 0;
virtual std::vector< uint8_t > ReadFileById(const std::string& handle, const uint32_t& fileId, ::DBus::Error &error) = 0;
+ virtual std::vector< uint8_t > ReadFileChunkByPath(const std::string& handle, const std::string& filePath, const uint32_t& offset, const uint32_t& count, ::DBus::Error &error) = 0;
+ virtual std::vector< uint8_t > ReadFileChunkById(const std::string& handle, const uint32_t& fileId, const uint32_t& offset, const uint32_t& count, ::DBus::Error &error) = 0;
virtual std::vector< uint8_t > GetFileInfoByPath(const std::string& handle, const std::string& filePath, ::DBus::Error &error) = 0;
virtual std::vector< uint8_t > GetFileInfoById(const std::string& handle, const uint32_t& fileId, ::DBus::Error &error) = 0;
virtual bool IsAlive(::DBus::Error &error) = 0;
@@ -295,6 +317,40 @@ private:
__wi << __argout;
return __reply;
}
+ ::DBus::Message _ReadFileChunkByPath_stub(const ::DBus::CallMessage &__call)
+ {
+ ::DBus::Error __error;
+ ::DBus::MessageIter __ri = __call.reader();
+ std::string handle; __ri >> handle;
+ std::string filePath; __ri >> filePath;
+ uint32_t offset; __ri >> offset;
+ uint32_t count; __ri >> count;
+ std::vector< uint8_t > __argout;
+ __argout = ReadFileChunkByPath(handle, filePath, offset, count, __error);
+ if (__error.is_set())
+ return ::DBus::ErrorMessage(__call, __error.name(), __error.message());
+ ::DBus::ReturnMessage __reply(__call);
+ ::DBus::MessageIter __wi = __reply.writer();
+ __wi << __argout;
+ return __reply;
+ }
+ ::DBus::Message _ReadFileChunkById_stub(const ::DBus::CallMessage &__call)
+ {
+ ::DBus::Error __error;
+ ::DBus::MessageIter __ri = __call.reader();
+ std::string handle; __ri >> handle;
+ uint32_t fileId; __ri >> fileId;
+ uint32_t offset; __ri >> offset;
+ uint32_t count; __ri >> count;
+ std::vector< uint8_t > __argout;
+ __argout = ReadFileChunkById(handle, fileId, offset, count, __error);
+ if (__error.is_set())
+ return ::DBus::ErrorMessage(__call, __error.name(), __error.message());
+ ::DBus::ReturnMessage __reply(__call);
+ ::DBus::MessageIter __wi = __reply.writer();
+ __wi << __argout;
+ return __reply;
+ }
::DBus::Message _GetFileInfoByPath_stub(const ::DBus::CallMessage &__call)
{
::DBus::Error __error;
@@ -339,4 +395,4 @@ private:
}
};
}}
-#endif // __dbusxx________out_Debug_gen_mtpd_server_mtpd_server_h__ADAPTOR_MARSHALL_H
+#endif // __dbusxx__mtpd_server_mtpd_server_h__ADAPTOR_MARSHALL_H