/haiku/src/kits/media/ |
H A D | Notifications.cpp | 64 BMessage msg(MEDIA_ROSTER_REQUEST_NOTIFICATIONS); in Register() local 65 msg.AddInt32(NOTIFICATION_PARAM_WHAT, notification); in Register() 66 msg.AddMessenger(NOTIFICATION_PARAM_MESSENGER, notifyHandler); in Register() 67 return BPrivate::media::dataexchange::SendToRoster(&msg); in Register() 70 BMessage msg(MEDIA_SERVER_REQUEST_NOTIFICATIONS); in Register() local 71 msg.AddInt32(NOTIFICATION_PARAM_WHAT, notification); in Register() 72 msg.AddInt32(NOTIFICATION_PARAM_TEAM, BPrivate::current_team()); in Register() 73 msg.AddMessenger(NOTIFICATION_PARAM_MESSENGER, notifyHandler); in Register() 74 msg.AddData("node", B_RAW_TYPE, &node, sizeof(node)); in Register() 76 return BPrivate::media::dataexchange::SendToServer(&msg); in Register() [all …]
|
/haiku/src/add-ons/kernel/file_systems/reiserfs/ |
H A D | hashes.cpp | 53 uint32 keyed_hash(const signed char *msg, int len) in keyed_hash() argument 70 a = (uint32)msg[ 0] | in keyed_hash() 71 (uint32)msg[ 1] << 8 | in keyed_hash() 72 (uint32)msg[ 2] << 16| in keyed_hash() 73 (uint32)msg[ 3] << 24; in keyed_hash() 74 b = (uint32)msg[ 4] | in keyed_hash() 75 (uint32)msg[ 5] << 8 | in keyed_hash() 76 (uint32)msg[ 6] << 16| in keyed_hash() 77 (uint32)msg[ 7] << 24; in keyed_hash() 78 c = (uint32)msg[ 8] | in keyed_hash() [all …]
|
/haiku/src/tests/kits/app/broster/ |
H A D | GetRecentTester.cpp | 374 BMessage msg; in GetRecentAppsTestB1() local 376 roster.GetRecentApps(&msg, -1); in GetRecentAppsTestB1() 377 CHK(check_ref_count(&msg, 0) == B_OK); in GetRecentAppsTestB1() 389 BMessage msg; in GetRecentAppsTestB2() local 391 roster.GetRecentApps(&msg, 0); in GetRecentAppsTestB2() 392 CHK(check_ref_count(&msg, 0) == B_OK); in GetRecentAppsTestB2() 404 BMessage msg; in GetRecentAppsTestB3() local 406 roster.GetRecentApps(&msg, 1); in GetRecentAppsTestB3() 407 CHK(check_ref_count(&msg, 1) == B_OK); in GetRecentAppsTestB3() 421 BMessage msg; in GetRecentAppsTestC1() local [all …]
|
/haiku/src/kits/storage/ |
H A D | NodeMonitorHandler.cpp | 45 NodeMonitorHandler::MessageReceived(BMessage * msg) in MessageReceived() argument 48 if (msg->what == B_NODE_MONITOR) { in MessageReceived() 50 if (msg->FindInt32("opcode", &opcode) == B_OK) { in MessageReceived() 53 status = HandleEntryCreated(msg); in MessageReceived() 56 status = HandleEntryRemoved(msg); in MessageReceived() 59 status = HandleEntryMoved(msg); in MessageReceived() 62 status = HandleStatChanged(msg); in MessageReceived() 65 status = HandleAttrChanged(msg); in MessageReceived() 68 status = HandleDeviceMounted(msg); in MessageReceived() 71 status = HandleDeviceUnmounted(msg); in MessageReceived() [all …]
|
/haiku/src/tests/kits/app/bmessage/ |
H A D | MessageInt32ItemTest.cpp | 26 BMessage msg; in MessageInt32ItemTest1() local 28 CPPUNIT_ASSERT(msg.FindInt32("an int32", &out) == B_NAME_NOT_FOUND); in MessageInt32ItemTest1() 30 CPPUNIT_ASSERT(msg.FindInt32("an int32") == 0); in MessageInt32ItemTest1() 31 CPPUNIT_ASSERT(!msg.HasInt32("an int32")); in MessageInt32ItemTest1() 34 CPPUNIT_ASSERT(msg.FindData("an int32", B_INT32_TYPE, &ptr, &size) == in MessageInt32ItemTest1() 41 BMessage msg; in MessageInt32ItemTest2() local 44 CPPUNIT_ASSERT(msg.AddInt32("an int32", in) == B_OK); in MessageInt32ItemTest2() 45 CPPUNIT_ASSERT(msg.HasInt32("an int32")); in MessageInt32ItemTest2() 46 CPPUNIT_ASSERT(msg.FindInt32("an int32") == in); in MessageInt32ItemTest2() 47 CPPUNIT_ASSERT(msg.FindInt32("an int32", &out) == B_OK); in MessageInt32ItemTest2() [all …]
|
H A D | MessageConstructTest.cpp | 30 BMessage msg; in MessageConstructTest1() local 31 CPPUNIT_ASSERT(msg.what == 0); in MessageConstructTest1() 32 ConfirmNullConstruction(msg); in MessageConstructTest1() 43 BMessage msg(1234); in MessageConstructTest2() local 44 CPPUNIT_ASSERT(msg.what == 1234); in MessageConstructTest2() 45 ConfirmNullConstruction(msg); in MessageConstructTest2() 75 void TMessageConstructTest::ConfirmNullConstruction(BMessage& msg) in ConfirmNullConstruction() argument 77 CPPUNIT_ASSERT(msg.CountNames(B_ANY_TYPE) == 0); in ConfirmNullConstruction() 78 CPPUNIT_ASSERT(msg.IsEmpty()); in ConfirmNullConstruction() 79 CPPUNIT_ASSERT(!msg.IsSystem()); in ConfirmNullConstruction() [all …]
|
H A D | MessageMessageItemTest.h | 26 static status_t Add(BMessage& msg, const char* name, BMessage& val); 27 static status_t AddData(BMessage& msg, const char* name, type_code type, 29 static status_t Find(BMessage& msg, const char* name, int32 index, 31 static status_t ShortFind(BMessage& msg, const char* name, BMessage* val); 32 static BMessage QuickFind(BMessage& msg, const char* name, int32 index); 33 static bool Has(BMessage& msg, const char* name, int32 index); 34 static status_t Replace(BMessage& msg, const char* name, int32 index, 36 static status_t FindData(BMessage& msg, const char* name, type_code type, 44 status_t TMessageFuncPolicy::Add(BMessage& msg, const char* name, in Add() argument 47 return msg.AddMessage(name, &val); in Add() [all …]
|
H A D | MessageBStringItemTest.h | 26 static status_t Add(BMessage& msg, const char* name, BString& data); 27 static status_t Find(BMessage& msg, const char* name, int32 index, 29 static status_t ShortFind(BMessage& msg, const char* name, BString* data); 30 static BString QuickFind(BMessage& msg, const char* name, int32 index); 31 static bool Has(BMessage& msg, const char* name, int32 index); 32 static status_t Replace(BMessage& msg, const char* name, int32 index, 34 static status_t AddData(BMessage& msg, const char* name, type_code type, 36 static status_t FindData(BMessage& msg, const char* name, type_code type, 44 status_t TBStringFuncPolicy::Add(BMessage& msg, const char* name, in Add() argument 47 return msg.AddString(name, data); in Add() [all …]
|
H A D | MessageEasyFindTest.cpp | 27 BMessage msg; in MessageEasyFindTest1() local 28 CPPUNIT_ASSERT(msg.FindRect("data") == r); in MessageEasyFindTest1() 29 CPPUNIT_ASSERT(msg.FindPoint("data") == p); in MessageEasyFindTest1() 30 CPPUNIT_ASSERT(msg.FindString("data") == NULL); in MessageEasyFindTest1() 31 CPPUNIT_ASSERT(msg.FindInt8("data") == 0); in MessageEasyFindTest1() 32 CPPUNIT_ASSERT(msg.FindInt16("data") == 0); in MessageEasyFindTest1() 33 CPPUNIT_ASSERT(msg.FindInt32("data") == 0); in MessageEasyFindTest1() 34 CPPUNIT_ASSERT(msg.FindInt64("data") == 0); in MessageEasyFindTest1() 35 CPPUNIT_ASSERT(msg.FindBool("data") == false); in MessageEasyFindTest1() 36 CPPUNIT_ASSERT(msg.FindFloat("data") == 0); in MessageEasyFindTest1() [all …]
|
H A D | MessagePointerItemTest.h | 24 static status_t Add(BMessage& msg, const char* name, const void* val) in Add() 25 { return msg.AddPointer(name, val); } in Add() 26 static status_t AddData(BMessage& msg, const char* name, type_code type, in AddData() 28 { return msg.AddData(name, type, data, size); } in AddData() 29 static status_t Find(BMessage& msg, const char* name, int32 index, in Find() 31 { return msg.FindPointer(name, index, (void**)val); } in Find() 32 static status_t ShortFind(BMessage& msg, const char* name, const void** val) in ShortFind() 33 { return msg.FindPointer(name, (void**)val); } in ShortFind() 34 static const void* QuickFind(BMessage& msg, const char* name, int32 index) in QuickFind() 37 msg.FindPointer(name, index, (void**)&ptr); in QuickFind() [all …]
|
H A D | MessageItemTest.h | 91 static status_t Add(BMessage& msg, const char* name, Type& val) in Add() 93 return (msg.*AddFunc)(name, val); in Add() 95 static status_t AddData(BMessage& msg, const char* name, type_code type, 98 return (msg.*AddDataFunc)(name, type, (const void*)val, size, fixedSize, 1); 100 static status_t Find(BMessage& msg, const char* name, int32 index, Type* val) in Find() 102 return (msg.*FindFunc)(name, index, val); in Find() 104 static status_t ShortFind(BMessage& msg, const char* name, Type* val) in ShortFind() 106 return (msg.*ShortFindFunc)(name, val); in ShortFind() 108 static Type QuickFind(BMessage& msg, const char* name, int32 index) in QuickFind() 110 return (msg.*QuickFindFunc)(name, index); in QuickFind() [all …]
|
/haiku/src/servers/print/ |
H A D | PrintServerApp.Scripting.cpp | 54 PrintServerApp::HandleScriptingCommand(BMessage* msg) in HandleScriptingCommand() argument 60 if (msg->GetCurrentSpecifier(&idx,&spec) == B_OK && in HandleScriptingCommand() 62 switch(msg->what) { in HandleScriptingCommand() 69 msg->SendReply(&reply); in HandleScriptingCommand() 75 msg->SendReply(&reply); in HandleScriptingCommand() 82 if (msg->FindString("data", &newActivePrinter) == B_OK) { in HandleScriptingCommand() 86 msg->SendReply(&reply); in HandleScriptingCommand() 90 if (msg->FindBool("data", &useConfigWindow) == B_OK) { in HandleScriptingCommand() 94 msg->SendReply(&reply); in HandleScriptingCommand() 103 if (msg->FindString("name", &name) == B_OK in HandleScriptingCommand() [all …]
|
/haiku/src/add-ons/accelerants/skeleton/ |
H A D | GetAccelerantHook.c | 136 char *msg = ""; in check_overlay_capability() local 142 msg = "B_OVERLAY_COUNT"; in check_overlay_capability() 145 msg = "B_OVERLAY_SUPPORTED_SPACES"; in check_overlay_capability() 148 msg = "B_OVERLAY_SUPPORTED_FEATURES"; in check_overlay_capability() 151 msg = "B_ALLOCATE_OVERLAY_BUFFER"; in check_overlay_capability() 154 msg = "B_RELEASE_OVERLAY_BUFFER"; in check_overlay_capability() 157 msg = "B_GET_OVERLAY_CONSTRAINTS"; in check_overlay_capability() 160 msg = "B_ALLOCATE_OVERLAY"; in check_overlay_capability() 163 msg = "B_RELEASE_OVERLAY"; in check_overlay_capability() 166 msg = "B_CONFIGURE_OVERLAY"; in check_overlay_capability() [all …]
|
/haiku/src/apps/glteapot/ |
H A D | TeapotWindow.cpp | 32 BMessage msg(kMsgAddModel); in TeapotWindow() local 50 msg.AddInt32("num", 256); in TeapotWindow() 52 new BMessage(msg), 'N')); in TeapotWindow() 58 msg.RemoveName("num"); in TeapotWindow() 101 msg.what = kMsgLights; in TeapotWindow() 103 msg.AddInt32("num", 1); in TeapotWindow() 107 msg.AddInt32("color", lightNone); in TeapotWindow() 109 new BMessage(msg))); in TeapotWindow() 112 msg.ReplaceInt32("color", lightWhite); in TeapotWindow() 114 new BMessage(msg))); in TeapotWindow() [all …]
|
/haiku/src/add-ons/accelerants/via/ |
H A D | GetAccelerantHook.c | 136 char *msg = ""; in check_overlay_capability() local 142 msg = "B_OVERLAY_COUNT"; in check_overlay_capability() 145 msg = "B_OVERLAY_SUPPORTED_SPACES"; in check_overlay_capability() 148 msg = "B_OVERLAY_SUPPORTED_FEATURES"; in check_overlay_capability() 151 msg = "B_ALLOCATE_OVERLAY_BUFFER"; in check_overlay_capability() 154 msg = "B_RELEASE_OVERLAY_BUFFER"; in check_overlay_capability() 157 msg = "B_GET_OVERLAY_CONSTRAINTS"; in check_overlay_capability() 160 msg = "B_ALLOCATE_OVERLAY"; in check_overlay_capability() 163 msg = "B_RELEASE_OVERLAY"; in check_overlay_capability() 166 msg = "B_CONFIGURE_OVERLAY"; in check_overlay_capability() [all …]
|
/haiku/src/add-ons/accelerants/neomagic/ |
H A D | GetAccelerantHook.c | 135 char *msg = ""; in check_overlay_capability() local 141 msg = "B_OVERLAY_COUNT"; in check_overlay_capability() 144 msg = "B_OVERLAY_SUPPORTED_SPACES"; in check_overlay_capability() 147 msg = "B_OVERLAY_SUPPORTED_FEATURES"; in check_overlay_capability() 150 msg = "B_ALLOCATE_OVERLAY_BUFFER"; in check_overlay_capability() 153 msg = "B_RELEASE_OVERLAY_BUFFER"; in check_overlay_capability() 156 msg = "B_GET_OVERLAY_CONSTRAINTS"; in check_overlay_capability() 159 msg = "B_ALLOCATE_OVERLAY"; in check_overlay_capability() 162 msg = "B_RELEASE_OVERLAY"; in check_overlay_capability() 165 msg = "B_CONFIGURE_OVERLAY"; in check_overlay_capability() [all …]
|
/haiku/src/add-ons/accelerants/matrox/ |
H A D | GetAccelerantHook.c | 136 char *msg = ""; in check_overlay_capability() local 142 msg = "B_OVERLAY_COUNT"; in check_overlay_capability() 145 msg = "B_OVERLAY_SUPPORTED_SPACES"; in check_overlay_capability() 148 msg = "B_OVERLAY_SUPPORTED_FEATURES"; in check_overlay_capability() 151 msg = "B_ALLOCATE_OVERLAY_BUFFER"; in check_overlay_capability() 154 msg = "B_RELEASE_OVERLAY_BUFFER"; in check_overlay_capability() 157 msg = "B_GET_OVERLAY_CONSTRAINTS"; in check_overlay_capability() 160 msg = "B_ALLOCATE_OVERLAY"; in check_overlay_capability() 163 msg = "B_RELEASE_OVERLAY"; in check_overlay_capability() 166 msg = "B_CONFIGURE_OVERLAY"; in check_overlay_capability() [all …]
|
/haiku/src/kits/print/ |
H A D | FolderWatcher.cpp | 92 bool FolderWatcher::BuildEntryRef(BMessage* msg, const char* dirName, entry_ref* entry) { in BuildEntryRef() argument 94 if (msg->FindInt32("device", &entry->device) == B_OK && in BuildEntryRef() 95 msg->FindInt64(dirName, &entry->directory) == B_OK && in BuildEntryRef() 96 msg->FindString("name", &name) == B_OK) { in BuildEntryRef() 103 bool FolderWatcher::BuildNodeRef(BMessage* msg, node_ref* node) { in BuildNodeRef() argument 104 return (msg->FindInt32("device", &node->device) == B_OK && in BuildNodeRef() 105 msg->FindInt64("node", &node->node) == B_OK); in BuildNodeRef() 108 void FolderWatcher::HandleCreatedEntry(BMessage* msg, const char* dirName) { in HandleCreatedEntry() argument 111 if (BuildEntryRef(msg, dirName, &entry) && in HandleCreatedEntry() 112 BuildNodeRef(msg, &node)) { in HandleCreatedEntry() [all …]
|
/haiku/src/servers/midi/ |
H A D | MidiServerApp.cpp | 99 MidiServerApp::MessageReceived(BMessage* msg) in MessageReceived() argument 102 printf("IN "); msg->PrintToStream(); in MessageReceived() 105 switch (msg->what) { in MessageReceived() 107 _OnRegisterApp(msg); in MessageReceived() 110 _OnCreateEndpoint(msg); in MessageReceived() 113 _OnDeleteEndpoint(msg); in MessageReceived() 116 _OnPurgeEndpoint(msg); in MessageReceived() 119 _OnChangeEndpoint(msg); in MessageReceived() 122 _OnConnectDisconnect(msg); in MessageReceived() 125 _OnConnectDisconnect(msg); in MessageReceived() [all …]
|
/haiku/src/system/kernel/ |
H A D | smp.cpp | 732 find_free_message(struct smp_msg** msg) in find_free_message() argument 753 *msg = sFreeMessages; in find_free_message() 754 sFreeMessages = (*msg)->next; in find_free_message() 759 TRACE("find_free_message: returning msg %p\n", *msg); in find_free_message() 794 return_free_message(struct smp_msg* msg) in return_free_message() argument 796 TRACE("return_free_message: returning msg %p\n", msg); in return_free_message() 799 msg->next = sFreeMessages; in return_free_message() 800 sFreeMessages = msg; in return_free_message() 812 struct smp_msg* msg = atomic_pointer_get(&sCPUMessages[currentCPU]); in check_for_message() local 813 if (msg != NULL) { in check_for_message() [all …]
|
/haiku/src/servers/notification/ |
H A D | NotificationReceived.cpp | 57 BMessage msg; in Flatten() local 58 msg.AddString("notify_title", fTitle); in Flatten() 59 msg.AddInt32("notify_type", (int32)fType); in Flatten() 60 msg.AddInt32("notify_lastreceived", (int32)fLastReceived); in Flatten() 61 msg.AddBool("notify_enabled", fEnabled); in Flatten() 63 if (numBytes < msg.FlattenedSize()) in Flatten() 66 return msg.Flatten((char*)buffer, numBytes); in Flatten() 73 BMessage msg; in FlattenedSize() local 74 msg.AddString("notify_title", fTitle); in FlattenedSize() 75 msg.AddInt32("notify_type", (int32)fType); in FlattenedSize() [all …]
|
H A D | AppUsage.cpp | 51 BMessage msg; in Flatten() local 52 msg.AddString("name", fAppName); in Flatten() 53 msg.AddString("signature", fSignature); in Flatten() 54 msg.AddBool("allow", fAllow); in Flatten() 56 if (numBytes < msg.FlattenedSize()) in Flatten() 59 return msg.Flatten((char*)buffer, numBytes); in Flatten() 66 BMessage msg; in FlattenedSize() local 67 msg.AddString("name", fAppName); in FlattenedSize() 68 msg.AddString("signature", fSignature); in FlattenedSize() 69 msg.AddBool("allow", fAllow); in FlattenedSize() [all …]
|
/haiku/src/libs/print/libprint/ |
H A D | PrintUtils.cpp | 54 SetBool(BMessage* msg, const char* name, bool value) in SetBool() argument 56 if (msg->HasBool(name)) { in SetBool() 57 msg->ReplaceBool(name, value); in SetBool() 59 msg->AddBool(name, value); in SetBool() 65 SetFloat(BMessage* msg, const char* name, float value) in SetFloat() argument 67 if (msg->HasFloat(name)) { in SetFloat() 68 msg->ReplaceFloat(name, value); in SetFloat() 70 msg->AddFloat(name, value); in SetFloat() 76 SetInt32(BMessage* msg, const char* name, int32 value) in SetInt32() argument 78 if (msg->HasInt32(name)) { in SetInt32() [all …]
|
/haiku/src/add-ons/accelerants/nvidia/ |
H A D | GetAccelerantHook.c | 145 char *msg = ""; in check_overlay_capability() local 151 msg = "B_OVERLAY_COUNT"; in check_overlay_capability() 154 msg = "B_OVERLAY_SUPPORTED_SPACES"; in check_overlay_capability() 157 msg = "B_OVERLAY_SUPPORTED_FEATURES"; in check_overlay_capability() 160 msg = "B_ALLOCATE_OVERLAY_BUFFER"; in check_overlay_capability() 163 msg = "B_RELEASE_OVERLAY_BUFFER"; in check_overlay_capability() 166 msg = "B_GET_OVERLAY_CONSTRAINTS"; in check_overlay_capability() 169 msg = "B_ALLOCATE_OVERLAY"; in check_overlay_capability() 172 msg = "B_RELEASE_OVERLAY"; in check_overlay_capability() 175 msg = "B_CONFIGURE_OVERLAY"; in check_overlay_capability() [all …]
|
/haiku/src/servers/input/ |
H A D | InputServerMethod.cpp | 189 BMessage msg(IS_UPDATE_NAME); in SetName() local 190 msg.AddInt32("cookie", fCookie); in SetName() 191 msg.AddString("name", name); in SetName() 193 return ((InputServer*)be_app)->MethodReplicant()->SendMessage(&msg); in SetName() 209 BMessage msg(IS_UPDATE_ICON); in SetIcon() local 210 msg.AddInt32("cookie", fCookie); in SetIcon() 211 msg.AddData("icon", B_RAW_TYPE, icon, 16*16*1); in SetIcon() 213 return ((InputServer*)be_app)->MethodReplicant()->SendMessage(&msg); in SetIcon() 226 BMessage msg(IS_UPDATE_MENU); in SetMenu() local 227 msg.AddInt32("cookie", fCookie); in SetMenu() [all …]
|