OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DBUS_MESSAGE_H_ | 5 #ifndef DBUS_MESSAGE_H_ |
6 #define DBUS_MESSAGE_H_ | 6 #define DBUS_MESSAGE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 bool PopDictEntry(MessageReader* sub_reader); | 361 bool PopDictEntry(MessageReader* sub_reader); |
362 bool PopVariant(MessageReader* sub_reader); | 362 bool PopVariant(MessageReader* sub_reader); |
363 | 363 |
364 // Gets the array of bytes at the current iterator position. | 364 // Gets the array of bytes at the current iterator position. |
365 // Returns true and advances the iterator on success. | 365 // Returns true and advances the iterator on success. |
366 // | 366 // |
367 // Arrays of bytes are often used for exchanging binary blobs hence it's | 367 // Arrays of bytes are often used for exchanging binary blobs hence it's |
368 // worth having a specialized function. | 368 // worth having a specialized function. |
369 // | 369 // |
370 // |bytes| must be copied if the contents will be referenced after the | 370 // |bytes| must be copied if the contents will be referenced after the |
371 // |MessageReader is destroyed. | 371 // MessageReader is destroyed. |
372 bool PopArrayOfBytes(uint8** bytes, size_t* length); | 372 bool PopArrayOfBytes(uint8** bytes, size_t* length); |
373 | 373 |
374 // Gets the array of object paths at the current iterator position. | 374 // Gets the array of object paths at the current iterator position. |
375 // Returns true and advances the iterator on success. | 375 // Returns true and advances the iterator on success. |
376 // | 376 // |
377 // Arrays of object paths are often used to communicate with D-Bus | 377 // Arrays of object paths are often used to communicate with D-Bus |
378 // services like NetworkManager, hence it's worth having a specialized | 378 // services like NetworkManager, hence it's worth having a specialized |
379 // function. | 379 // function. |
380 bool PopArrayOfObjectPaths(std::vector<std::string>* object_paths); | 380 bool PopArrayOfObjectPaths(std::vector<std::string>* object_paths); |
381 | 381 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 | 419 |
420 Message* message_; | 420 Message* message_; |
421 DBusMessageIter raw_message_iter_; | 421 DBusMessageIter raw_message_iter_; |
422 | 422 |
423 DISALLOW_COPY_AND_ASSIGN(MessageReader); | 423 DISALLOW_COPY_AND_ASSIGN(MessageReader); |
424 }; | 424 }; |
425 | 425 |
426 } // namespace dbus | 426 } // namespace dbus |
427 | 427 |
428 #endif // DBUS_MESSAGE_H_ | 428 #endif // DBUS_MESSAGE_H_ |
OLD | NEW |