aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend.c')
-rw-r--r--backend.c10
1 files changed, 10 insertions, 0 deletions
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));