Lines Matching refs:call
50 int synthetic_reply_method_error(sd_bus_message *call, const sd_bus_error *e) {
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, ...) {
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) {
80 assert(call);
82 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED)
86 return synthetic_reply_method_error(call, p);
90 return synthetic_reply_method_error(call, &berror);
93 int synthetic_reply_method_errnof(sd_bus_message *call, int error, const char *format, ...) {
97 assert(call);
99 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED)
106 return synthetic_reply_method_error(call, &berror);
109 int synthetic_reply_method_return(sd_bus_message *call, const char *types, ...) {
113 assert(call);
115 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED)
118 r = sd_bus_message_new_method_return(call, &m);
132 return synthetic_driver_send(call->bus, m);
135 int synthetic_reply_method_return_strv(sd_bus_message *call, char **l) {
139 assert(call);
141 if (call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED)
144 r = sd_bus_message_new_method_return(call, &m);
146 return synthetic_reply_method_errno(call, r, NULL);
150 return synthetic_reply_method_errno(call, r, NULL);
152 return synthetic_driver_send(call->bus, m);