Lines Matching refs:cookie
1863 static uint64_t cookie_inc(uint64_t cookie) { in cookie_inc() argument
1866 if (cookie >= UINT32_MAX) in cookie_inc()
1870 return cookie + 1; in cookie_inc()
1878 new_cookie = cookie_inc(b->cookie); in next_cookie()
1898 b->cookie = new_cookie; in next_cookie()
1912 b->cookie = MAX(b->cookie, BUS_MESSAGE_COOKIE(m)); in bus_seal_message()
1932 return sd_bus_message_seal(m, b->cookie, timeout); in bus_seal_message()
2094 _public_ int sd_bus_send(sd_bus *bus, sd_bus_message *_m, uint64_t *cookie) { in sd_bus_send() argument
2119 if (!cookie && !m->sealed) in sd_bus_send()
2174 if (cookie) in sd_bus_send()
2175 *cookie = BUS_MESSAGE_COOKIE(m); in sd_bus_send()
2180 …ic_ int sd_bus_send_to(sd_bus *bus, sd_bus_message *m, const char *destination, uint64_t *cookie) { in sd_bus_send_to() argument
2204 return sd_bus_send(bus, m, cookie); in sd_bus_send_to()
2289 s->reply_callback.cookie = BUS_MESSAGE_COOKIE(m); in sd_bus_call_async()
2290 … r = ordered_hashmap_put(bus->reply_callbacks, &s->reply_callback.cookie, &s->reply_callback); in sd_bus_call_async()
2292 s->reply_callback.cookie = 0; in sd_bus_call_async()
2306 r = sd_bus_send(bus, m, s ? &s->reply_callback.cookie : NULL); in sd_bus_call_async()
2352 uint64_t cookie; in sd_bus_call() local
2386 r = sd_bus_send(bus, m, &cookie); in sd_bus_call()
2400 if (incoming->reply_cookie == cookie) { in sd_bus_call()
2424 } else if (BUS_MESSAGE_COOKIE(incoming) == cookie && in sd_bus_call()
2633 c->cookie, in process_timeout()
2648 ordered_hashmap_remove(bus->reply_callbacks, &c->cookie); in process_timeout()
2649 c->cookie = 0; in process_timeout()
2722 c->cookie = 0; in process_reply()
3078 c->cookie, in process_closing_reply_callback()
3095 ordered_hashmap_remove(bus->reply_callbacks, &c->cookie); in process_closing_reply_callback()
3096 c->cookie = 0; in process_closing_reply_callback()