uclient: defer read notifications to uloop timer
[project/uclient.git] / uclient-backend.h
index c2b9fd538189e2c4a96240bb7bae159031abd3eb..b013cde0b05dd04c4ffaa97a26ef430191ab1bd0 100644 (file)
@@ -41,5 +41,9 @@ void uclient_backend_set_eof(struct uclient *cl);
 void uclient_backend_reset_state(struct uclient *cl);
 struct uclient_url *uclient_get_url(const char *url_str, const char *auth_str);
 struct uclient_url *uclient_get_url_location(struct uclient_url *url, const char *location);
+static inline void uclient_backend_read_notify(struct uclient *cl)
+{
+       uloop_timeout_set(&cl->read_notify, 1);
+}
 
 #endif