From 40e123db7713b188162cd94d935f7a395405567a Mon Sep 17 00:00:00 2001 From: cbdev Date: Mon, 5 Jun 2017 18:53:41 +0200 Subject: Core select loop --- backend.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'backend.c') diff --git a/backend.c b/backend.c index 65ee748..f49bd91 100644 --- a/backend.c +++ b/backend.c @@ -127,6 +127,16 @@ instance* instance_match(char* name){ return NULL; } +struct timeval backend_timeout(){ + //TODO fetch minimum poll interval from backends + struct timeval tv = { + 0, + 10000 + }; + + return tv; +} + int mm_backend_register(backend b){ if(!backend_match(b.name)){ backends = realloc(backends, (nbackends + 1) * sizeof(backend)); -- cgit v1.2.3