Lines Matching defs:command
121 // get the command
122 messaging_command *command
130 fHeader->first_command = command->next_command;
132 return command;
225 only implemented command type is to send a message, but it is very easy
226 to add further command types (e.g. one for alerting the user in case of
229 The MessagingService maintains a mapping of command types to command
280 // create the command handler map
285 // spawn the command processor
287 "messaging command processor", B_DISPLAY_PRIORITY, this);
304 // resume the command processor
307 // install the default send message command handler
358 MessagingService::SetCommandHandler(uint32 command,
364 (*fCommandHandlers)[command] = handler;
367 CommandHandlerMap::iterator it = fCommandHandlers->find(command);
375 MessagingService::_GetCommandHandler(uint32 command) const
379 CommandHandlerMap::iterator it = fCommandHandlers->find(command);
396 // wait for the next command
408 const messaging_command *command = area->PopCommand();
409 if (!command) {
412 B_PRId32 ") has command count %" B_PRId32 ", but doesn't "
417 PRINT("MessagingService::_CommandProcessor(): got command %" B_PRIu32 "\n",
418 command->command);
420 // dispatch the command
422 = _GetCommandHandler(command->command);
424 handler->HandleMessagingCommand(command->command, command->data,
425 command->size - sizeof(messaging_command));
428 "found for command %" B_PRIu32 "\n", command->command);