| OLD | NEW |
| 1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 // See the License for the specific language governing permissions and | 12 // See the License for the specific language governing permissions and |
| 13 // limitations under the License. | 13 // limitations under the License. |
| 14 | 14 |
| 15 #ifndef CRASHPAD_UTIL_MACH_MACH_MESSAGE_UTIL_H_ | 15 #ifndef CRASHPAD_UTIL_MACH_MACH_MESSAGE_H_ |
| 16 #define CRASHPAD_UTIL_MACH_MACH_MESSAGE_UTIL_H_ | 16 #define CRASHPAD_UTIL_MACH_MACH_MESSAGE_H_ |
| 17 | 17 |
| 18 #include <mach/mach.h> | 18 #include <mach/mach.h> |
| 19 | 19 |
| 20 namespace crashpad { | 20 namespace crashpad { |
| 21 | 21 |
| 22 //! \brief Initializes a reply message for a MIG server routine based on its | 22 //! \brief Initializes a reply message for a MIG server routine based on its |
| 23 //! corresponding request. | 23 //! corresponding request. |
| 24 //! | 24 //! |
| 25 //! If a request is handled by a server routine, it may be necessary to revise | 25 //! If a request is handled by a server routine, it may be necessary to revise |
| 26 //! some of the fields set by this function, such as `msgh_size` and any fields | 26 //! some of the fields set by this function, such as `msgh_size` and any fields |
| (...skipping 30 matching lines...) Expand all Loading... |
| 57 //! \param[in] header A pointer to a received Mach message. | 57 //! \param[in] header A pointer to a received Mach message. |
| 58 //! | 58 //! |
| 59 //! \return A pointer to the trailer following the received Mach message’s body. | 59 //! \return A pointer to the trailer following the received Mach message’s body. |
| 60 //! The contents of the trailer depend on the options provided to | 60 //! The contents of the trailer depend on the options provided to |
| 61 //! `mach_msg()` or a similar function when the message was received. | 61 //! `mach_msg()` or a similar function when the message was received. |
| 62 const mach_msg_trailer_t* MachMessageTrailerFromHeader( | 62 const mach_msg_trailer_t* MachMessageTrailerFromHeader( |
| 63 const mach_msg_header_t* header); | 63 const mach_msg_header_t* header); |
| 64 | 64 |
| 65 } // namespace crashpad | 65 } // namespace crashpad |
| 66 | 66 |
| 67 #endif // CRASHPAD_UTIL_MACH_MACH_MESSAGE_UTIL_H_ | 67 #endif // CRASHPAD_UTIL_MACH_MACH_MESSAGE_H_ |
| OLD | NEW |