From d579e101fd5f58fef6eed1ca3213a2be3127daa2 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Thu, 2 Sep 2010 16:42:41 +0200 Subject: [PATCH] New block: Wait for preferred targets to be "ready" --- src/session.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/session.h b/src/session.h index d7f3efb..ebd3ff6 100644 --- a/src/session.h +++ b/src/session.h @@ -79,7 +79,8 @@ struct session_database #define SESSION_WATCH_SHOW 0 #define SESSION_WATCH_RECORD 1 -#define SESSION_WATCH_MAX 1 +#define SESSION_WATCH_SHOW_PREF 2 +#define SESSION_WATCH_MAX 2 #define SESSION_MAX_TERMLISTS 10 @@ -167,6 +168,7 @@ void show_single_stop(struct session *s, struct record_cluster *rec); struct termlist_score **termlist(struct session *s, const char *name, int *num); int session_set_watch(struct session *s, int what, session_watchfun fun, void *data, struct http_channel *c); int session_active_clients(struct session *s); +int session_preferred_clients_ready(struct session *s); void session_apply_setting(struct session *se, char *dbname, char *setting, char *value); const char *session_setting_oneval(struct session_database *db, int offset); -- 1.7.10.4