mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-24 10:55:57 +01:00
Put MachIPC into the google_breakpad namespace
R=mark at http://breakpad.appspot.com/151001/show git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@650 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
f5c8f6fb61
commit
a599ae80aa
@ -55,6 +55,10 @@
|
|||||||
|
|
||||||
|
|
||||||
using google_breakpad::KeyValueEntry;
|
using google_breakpad::KeyValueEntry;
|
||||||
|
using google_breakpad::MachPortSender;
|
||||||
|
using google_breakpad::MachReceiveMessage;
|
||||||
|
using google_breakpad::MachSendMessage;
|
||||||
|
using google_breakpad::ReceivePort;
|
||||||
using google_breakpad::SimpleStringDictionary;
|
using google_breakpad::SimpleStringDictionary;
|
||||||
using google_breakpad::SimpleStringDictionaryIterator;
|
using google_breakpad::SimpleStringDictionaryIterator;
|
||||||
|
|
||||||
|
@ -41,6 +41,10 @@ namespace {
|
|||||||
using std::string;
|
using std::string;
|
||||||
using google_breakpad::AutoTempDir;
|
using google_breakpad::AutoTempDir;
|
||||||
using google_breakpad::ExceptionHandler;
|
using google_breakpad::ExceptionHandler;
|
||||||
|
using google_breakpad::MachPortSender;
|
||||||
|
using google_breakpad::MachReceiveMessage;
|
||||||
|
using google_breakpad::MachSendMessage;
|
||||||
|
using google_breakpad::ReceivePort;
|
||||||
using testing::Test;
|
using testing::Test;
|
||||||
|
|
||||||
class ExceptionHandlerTest : public Test {
|
class ExceptionHandlerTest : public Test {
|
||||||
|
@ -94,6 +94,7 @@
|
|||||||
// kern_return_t result = sender.SendMessage(message, 1000); // timeout 1000ms
|
// kern_return_t result = sender.SendMessage(message, 1000); // timeout 1000ms
|
||||||
//
|
//
|
||||||
|
|
||||||
|
namespace google_breakpad {
|
||||||
#define PRINT_MACH_RESULT(result_, message_) \
|
#define PRINT_MACH_RESULT(result_, message_) \
|
||||||
printf(message_" %s (%d)\n", mach_error_string(result_), result_ );
|
printf(message_" %s (%d)\n", mach_error_string(result_), result_ );
|
||||||
|
|
||||||
@ -301,4 +302,6 @@ class MachPortSender {
|
|||||||
kern_return_t init_result_;
|
kern_return_t init_result_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace google_breakpad
|
||||||
|
|
||||||
#endif // MACH_IPC_H__
|
#endif // MACH_IPC_H__
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
#import <stdio.h>
|
#import <stdio.h>
|
||||||
#import "MachIPC.h"
|
#import "MachIPC.h"
|
||||||
|
|
||||||
|
namespace google_breakpad {
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
MachSendMessage::MachSendMessage(int32_t message_id) : MachMessage() {
|
MachSendMessage::MachSendMessage(int32_t message_id) : MachMessage() {
|
||||||
head.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0);
|
head.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0);
|
||||||
@ -299,3 +300,5 @@ kern_return_t MachPortSender::SendMessage(MachSendMessage &message,
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace google_breakpad
|
||||||
|
Loading…
Reference in New Issue
Block a user