Lines Matching refs:message

134 static int method_get_machine(sd_bus_message *message, void *userdata, sd_bus_error *error) {
141 assert(message);
144 r = sd_bus_message_read(message, "s", &name);
156 return sd_bus_reply_method_return(message, "o", p);
159 static int method_get_image(sd_bus_message *message, void *userdata, sd_bus_error *error) {
165 assert(message);
168 r = sd_bus_message_read(message, "s", &name);
182 return sd_bus_reply_method_return(message, "o", p);
185 static int method_get_machine_by_pid(sd_bus_message *message, void *userdata, sd_bus_error *error) {
192 assert(message);
197 r = sd_bus_message_read(message, "u", &pid);
207 r = sd_bus_query_sender_creds(message, SD_BUS_CREDS_PID, &creds);
226 return sd_bus_reply_method_return(message, "o", p);
229 static int method_list_machines(sd_bus_message *message, void *userdata, sd_bus_error *error) {
236 assert(message);
239 r = sd_bus_message_new_method_return(message, &reply);
270 static int method_create_or_register_machine(Manager *manager, sd_bus_message *message, bool read_network, Machine **_m, sd_bus_error *error) {
282 assert(message);
285 r = sd_bus_message_read(message, "s", &name);
291 r = sd_bus_message_read_array(message, 'y', &v, &n);
301 r = sd_bus_message_read(message, "ssus", &service, &class, &leader, &root_directory);
308 r = sd_bus_message_read_array(message, 'i', (const void**) &netif, &n_netif);
337 r = sd_bus_query_sender_creds(message, SD_BUS_CREDS_PID, &creds);
395 static int method_create_machine_internal(sd_bus_message *message, bool read_network, void *userdata, sd_bus_error *error) {
400 assert(message);
403 r = method_create_or_register_machine(manager, message, read_network, &m, error);
407 r = sd_bus_message_enter_container(message, 'a', "(sv)");
411 r = machine_start(m, message, error);
415 m->create_message = sd_bus_message_ref(message);
423 static int method_create_machine_with_network(sd_bus_message *message, void *userdata, sd_bus_error *error) {
424 return method_create_machine_internal(message, true, userdata, error);
427 static int method_create_machine(sd_bus_message *message, void *userdata, sd_bus_error *error) {
428 return method_create_machine_internal(message, false, userdata, error);
431 static int method_register_machine_internal(sd_bus_message *message, bool read_network, void *userdata, sd_bus_error *error) {
437 assert(message);
440 r = method_create_or_register_machine(manager, message, read_network, &m, error);
460 return sd_bus_reply_method_return(message, "o", p);
467 static int method_register_machine_with_network(sd_bus_message *message, void *userdata, sd_bus_error *error) {
468 return method_register_machine_internal(message, true, userdata, error);
471 static int method_register_machine(sd_bus_message *message, void *userdata, sd_bus_error *error) {
472 return method_register_machine_internal(message, false, userdata, error);
475 static int method_terminate_machine(sd_bus_message *message, void *userdata, sd_bus_error *error) {
481 assert(message);
484 r = sd_bus_message_read(message, "s", &name);
492 return bus_machine_method_terminate(message, machine, error);
495 static int method_kill_machine(sd_bus_message *message, void *userdata, sd_bus_error *error) {
501 assert(message);
504 r = sd_bus_message_read(message, "s", &name);
512 return bus_machine_method_kill(message, machine, error);
515 static int method_get_machine_addresses(sd_bus_message *message, void *userdata, sd_bus_error *error) {
521 assert(message);
524 r = sd_bus_message_read(message, "s", &name);
532 return bus_machine_method_get_addresses(message, machine, error);
535 static int method_get_machine_os_release(sd_bus_message *message, void *userdata, sd_bus_error *error) {
541 assert(message);
544 r = sd_bus_message_read(message, "s", &name);
552 return bus_machine_method_get_os_release(message, machine, error);
555 static int method_list_images(sd_bus_message *message, void *userdata, sd_bus_error *error) {
563 assert(message);
574 r = sd_bus_message_new_method_return(message, &reply);
608 static int method_open_machine_pty(sd_bus_message *message, void *userdata, sd_bus_error *error) {
614 assert(message);
617 r = sd_bus_message_read(message, "s", &name);
625 return bus_machine_method_open_pty(message, machine, error);
628 static int method_open_machine_login(sd_bus_message *message, void *userdata, sd_bus_error *error) {
634 assert(message);
637 r = sd_bus_message_read(message, "s", &name);
645 return bus_machine_method_open_login(message, machine, error);
648 static int method_open_machine_shell(sd_bus_message *message, void *userdata, sd_bus_error *error) {
655 assert(message);
658 r = sd_bus_message_read(message, "s", &name);
666 return bus_machine_method_open_shell(message, machine, error);
669 static int method_bind_mount_machine(sd_bus_message *message, void *userdata, sd_bus_error *error) {
675 assert(message);
678 r = sd_bus_message_read(message, "s", &name);
686 return bus_machine_method_bind_mount(message, machine, error);
689 static int method_copy_machine(sd_bus_message *message, void *userdata, sd_bus_error *error) {
695 assert(message);
698 r = sd_bus_message_read(message, "s", &name);
706 return bus_machine_method_copy(message, machine, error);
709 static int method_remove_image(sd_bus_message *message, void *userdata, sd_bus_error *error) {
714 assert(message);
716 r = sd_bus_message_read(message, "s", &name);
730 return bus_image_method_remove(message, i, error);
733 static int method_rename_image(sd_bus_message *message, void *userdata, sd_bus_error *error) {
738 assert(message);
740 r = sd_bus_message_read(message, "s", &old_name);
754 return bus_image_method_rename(message, i, error);
757 static int method_clone_image(sd_bus_message *message, void *userdata, sd_bus_error *error) {
762 assert(message);
764 r = sd_bus_message_read(message, "s", &old_name);
778 return bus_image_method_clone(message, i, error);
781 static int method_mark_image_read_only(sd_bus_message *message, void *userdata, sd_bus_error *error) {
786 assert(message);
788 r = sd_bus_message_read(message, "s", &name);
802 return bus_image_method_mark_read_only(message, i, error);
805 static int method_set_pool_limit(sd_bus_message *message, void *userdata, sd_bus_error *error) {
810 assert(message);
812 r = sd_bus_message_read(message, "t", &limit);
819 message,
854 return sd_bus_reply_method_return(message, NULL);
857 static int method_set_image_limit(sd_bus_message *message, void *userdata, sd_bus_error *error) {
862 assert(message);
864 r = sd_bus_message_read(message, "s", &name);
878 return bus_image_method_set_limit(message, i, error);
881 static int method_map_from_machine_user(sd_bus_message *message, void *userdata, sd_bus_error *error) {
889 r = sd_bus_message_read(message, "su", &name, &uid);
930 return sd_bus_reply_method_return(message, "u", (uint32_t) converted);
936 static int method_map_to_machine_user(sd_bus_message *message, void *userdata, sd_bus_error *error) {
943 r = sd_bus_message_read(message, "u", &uid);
992 return sd_bus_reply_method_return(message, "sou", machine->name, o, (uint32_t) converted);
999 static int method_map_from_machine_group(sd_bus_message *message, void *groupdata, sd_bus_error *error) {
1007 r = sd_bus_message_read(message, "su", &name, &gid);
1048 return sd_bus_reply_method_return(message, "u", (uint32_t) converted);
1054 static int method_map_to_machine_group(sd_bus_message *message, void *groupdata, sd_bus_error *error) {
1061 r = sd_bus_message_read(message, "u", &gid);
1110 return sd_bus_reply_method_return(message, "sou", machine->name, o, (uint32_t) converted);
1156 int match_job_removed(sd_bus_message *message, void *userdata, sd_bus_error *error) {
1163 assert(message);
1166 r = sd_bus_message_read(message, "uoss", &id, &path, &unit, &result);
1198 int match_properties_changed(sd_bus_message *message, void *userdata, sd_bus_error *error) {
1205 assert(message);
1208 path = sd_bus_message_get_path(message);
1228 int match_unit_removed(sd_bus_message *message, void *userdata, sd_bus_error *error) {
1234 assert(message);
1237 r = sd_bus_message_read(message, "so", &unit, &path);
1251 int match_reloading(sd_bus_message *message, void *userdata, sd_bus_error *error) {
1257 assert(message);
1260 r = sd_bus_message_read(message, "b", &b);