Searched refs:call (Results 1 - 14 of 14) sorted by relevance

/systemd/src/bus-proxyd/
H A Dsynthesize.h28 int synthetic_reply_method_return(sd_bus_message *call, const char *types, ...);
29 int synthetic_reply_method_return_strv(sd_bus_message *call, char **l);
31 int synthetic_reply_method_error(sd_bus_message *call, const sd_bus_error *e);
32 int synthetic_reply_method_errorf(sd_bus_message *call, const char *name, const char *format, ...) _sd_printf_(3, 4);
33 int synthetic_reply_method_errno(sd_bus_message *call, int error, const sd_bus_error *p);
34 int synthetic_reply_method_errnof(sd_bus_message *call, int error, const char *format, ...) _sd_printf_(3, 4);
H A Dsynthesize.c50 int synthetic_reply_method_error(sd_bus_message *call, const sd_bus_error *e) { argument
54 assert(call);
56 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED)
59 r = sd_bus_message_new_method_error(call, &m, e);
63 return synthetic_driver_send(call->bus, m);
66 int synthetic_reply_method_errorf(sd_bus_message *call, const char *name, const char *format, ...) { argument
74 return synthetic_reply_method_error(call, &error);
77 int synthetic_reply_method_errno(sd_bus_message *call, int error, const sd_bus_error *p) { argument
80 assert(call);
82 if (call
93 synthetic_reply_method_errnof(sd_bus_message *call, int error, const char *format, ...) argument
109 synthetic_reply_method_return(sd_bus_message *call, const char *types, ...) argument
135 synthetic_reply_method_return_strv(sd_bus_message *call, char **l) argument
[all...]
/systemd/src/libsystemd/sd-bus/
H A Dbus-convenience.c139 sd_bus_message *call,
145 assert_return(call, -EINVAL);
146 assert_return(call->sealed, -EPERM);
147 assert_return(call->header->type == SD_BUS_MESSAGE_METHOD_CALL, -EINVAL);
148 assert_return(call->bus, -EINVAL);
149 assert_return(!bus_pid_changed(call->bus), -ECHILD);
151 if (!BUS_IS_OPEN(call->bus->state))
154 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED)
157 r = sd_bus_message_new_method_return(call, &m);
171 return sd_bus_send(call
138 sd_bus_reply_method_return( sd_bus_message *call, const char *types, ...) argument
174 sd_bus_reply_method_error( sd_bus_message *call, const sd_bus_error *e) argument
201 sd_bus_reply_method_errorf( sd_bus_message *call, const char *name, const char *format, ...) argument
229 sd_bus_reply_method_errno( sd_bus_message *call, int error, const sd_bus_error *p) argument
256 sd_bus_reply_method_errnof( sd_bus_message *call, int error, const char *format, ...) argument
511 sd_bus_query_sender_creds(sd_bus_message *call, uint64_t mask, sd_bus_creds **creds) argument
555 sd_bus_query_sender_privilege(sd_bus_message *call, int capability) argument
[all...]
H A Dbus-message.c711 sd_bus_message *call,
718 assert_return(call, -EINVAL);
719 assert_return(call->sealed, -EPERM);
720 assert_return(call->header->type == SD_BUS_MESSAGE_METHOD_CALL, -EINVAL);
721 assert_return(call->bus->state != BUS_UNSET, -ENOTCONN);
724 t = message_new(call->bus, type);
729 t->reply_cookie = BUS_MESSAGE_COOKIE(call);
737 if (call->sender) {
738 r = message_append_field_string(t, BUS_MESSAGE_HEADER_DESTINATION, SD_BUS_TYPE_STRING, call->sender, &t->destination);
743 t->dont_send = !!(call
710 message_new_reply( sd_bus_message *call, uint8_t type, sd_bus_message **m) argument
754 sd_bus_message_new_method_return( sd_bus_message *call, sd_bus_message **m) argument
761 sd_bus_message_new_method_error( sd_bus_message *call, sd_bus_message **m, const sd_bus_error *e) argument
796 sd_bus_message_new_method_errorf( sd_bus_message *call, sd_bus_message **m, const char *name, const char *format, ...) argument
816 sd_bus_message_new_method_errno( sd_bus_message *call, sd_bus_message **m, int error, const sd_bus_error *p) argument
832 sd_bus_message_new_method_errnof( sd_bus_message *call, sd_bus_message **m, int error, const char *format, ...) argument
[all...]
H A Dbusctl.c1489 static int call(sd_bus *bus, char *argv[]) { function
1703 " --quiet Don't show method call reply\n"
1705 " --expect-reply=BOOL Expect a method call reply\n"
1709 " --timeout=SECS Maximum time to wait for method call completion\n"
1718 " call SERVICE OBJECT INTERFACE METHOD [SIGNATURE [ARGUMENT...]]\n"
1960 if (streq(argv[optind], "call"))
1961 return call(bus, argv + optind);
/systemd/src/core/
H A Ddbus.h39 int bus_verify_manage_units_async(Manager *m, sd_bus_message *call, sd_bus_error *error);
40 int bus_verify_manage_unit_files_async(Manager *m, sd_bus_message *call, sd_bus_error *error);
41 int bus_verify_reload_daemon_async(Manager *m, sd_bus_message *call, sd_bus_error *error);
42 int bus_verify_set_environment_async(Manager *m, sd_bus_message *call, sd_bus_error *error);
H A Ddbus.c1244 int bus_verify_manage_units_async(Manager *m, sd_bus_message *call, sd_bus_error *error) { argument
1245 return bus_verify_polkit_async(call, CAP_SYS_ADMIN, "org.freedesktop.systemd1.manage-units", NULL, false, UID_INVALID, &m->polkit_registry, error);
1248 int bus_verify_manage_unit_files_async(Manager *m, sd_bus_message *call, sd_bus_error *error) { argument
1249 return bus_verify_polkit_async(call, CAP_SYS_ADMIN, "org.freedesktop.systemd1.manage-unit-files", NULL, false, UID_INVALID, &m->polkit_registry, error);
1252 int bus_verify_reload_daemon_async(Manager *m, sd_bus_message *call, sd_bus_error *error) { argument
1253 return bus_verify_polkit_async(call, CAP_SYS_ADMIN, "org.freedesktop.systemd1.reload-daemon", NULL, false, UID_INVALID, &m->polkit_registry, error);
1256 int bus_verify_set_environment_async(Manager *m, sd_bus_message *call, sd_bus_error *error) { argument
1257 return bus_verify_polkit_async(call, CAP_SYS_ADMIN, "org.freedesktop.systemd1.set-environment", NULL, false, UID_INVALID, &m->polkit_registry, error);
H A Ddbus-manager.c381 /* Anyone can call this method */
431 /* Anyone can call this method */
476 /* Anyone can call this method */
759 return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */
783 /* Anyone can call this method */
839 return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */
861 return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */
879 /* Anyone can call this method */
966 /* Anyone can call this method */
1017 /* Anyone can call thi
[all...]
H A Ddbus-unit.c418 sd_bus_message *call,
433 return bus_verify_polkit_async(call, capability, "org.freedesktop.systemd1.manage-units", details, false, UID_INVALID, &u->manager->polkit_registry, error);
491 return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */
563 return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */
593 return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */
625 return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */
413 bus_verify_manage_units_async_full( Unit *u, const char *verb, int capability, const char *polkit_message, sd_bus_message *call, sd_bus_error *error) argument
/systemd/test/
H A Dnetworkd-test.py36 networkd_active = subprocess.call(['systemctl', 'is-active', '--quiet',
75 subprocess.call(['systemctl', 'stop', 'systemd-networkd'])
82 subprocess.call(['journalctl', '-b', '--no-pager', '--quiet',
169 subprocess.call(['ip', 'a', 'show', 'dev', self.iface])
172 subprocess.call(['networkctl', 'status', self.iface])
351 subprocess.call(['systemctl', 'reset-failed', 'networkd-test-router.service'])
352 subprocess.call(['ip', 'link', 'del', 'dev', self.if_router])
/systemd/src/shared/
H A Dbus-util.c248 sd_bus_message *call,
258 assert(call);
263 r = check_good_user(call, good_user);
267 r = sd_bus_query_sender_privilege(call, capability);
279 sender = sd_bus_message_get_sender(call);
284 call->bus,
319 r = sd_bus_call(call->bus, request, 0, e, &reply);
406 sd_bus_message *call,
425 assert(call);
429 r = check_good_user(call, good_use
247 bus_test_polkit( sd_bus_message *call, int capability, const char *action, const char **details, uid_t good_user, bool *_challenge, sd_bus_error *e) argument
405 bus_verify_polkit_async( sd_bus_message *call, int capability, const char *action, const char **details, bool interactive, uid_t good_user, Hashmap **registry, sd_bus_error *error) argument
[all...]
H A Dbus-util.h70 int bus_test_polkit(sd_bus_message *call, int capability, const char *action, const char **details, uid_t good_user, bool *_challenge, sd_bus_error *e);
72 int bus_verify_polkit_async(sd_bus_message *call, int capability, const char *action, const char **details, bool interactive, uid_t good_user, Hashmap **registry, sd_bus_error *error);
/systemd/src/systemd/
H A Dsd-bus.h219 int sd_bus_message_new_method_return(sd_bus_message *call, sd_bus_message **m);
220 int sd_bus_message_new_method_error(sd_bus_message *call, sd_bus_message **m, const sd_bus_error *e);
221 int sd_bus_message_new_method_errorf(sd_bus_message *call, sd_bus_message **m, const char *name, const char *format, ...) _sd_printf_(4, 5);
222 int sd_bus_message_new_method_errno(sd_bus_message *call, sd_bus_message **m, int error, const sd_bus_error *e);
223 int sd_bus_message_new_method_errnof(sd_bus_message *call, sd_bus_message **m, int error, const char *format, ...) _sd_printf_(4, 5);
311 int sd_bus_reply_method_return(sd_bus_message *call, const char *types, ...);
312 int sd_bus_reply_method_error(sd_bus_message *call, const sd_bus_error *e);
313 int sd_bus_reply_method_errorf(sd_bus_message *call, const char *name, const char *format, ...) _sd_printf_(3, 4);
314 int sd_bus_reply_method_errno(sd_bus_message *call, int error, const sd_bus_error *e);
315 int sd_bus_reply_method_errnof(sd_bus_message *call, in
[all...]
/systemd/src/boot/efi/
H A Dboot.c52 EFI_STATUS (*call)(VOID); member in struct:__anon41
455 if (entry->call)
456 Print(L"internal call yes\n");
1414 static BOOLEAN config_entry_add_call(Config *config, CHAR16 *title, EFI_STATUS (*call)(VOID)) { argument
1419 entry->call = call;
1816 if (entry->call) {
1817 entry->call();

Completed in 4942 milliseconds