Direct database side of things implemented

This commit is contained in:
2020-09-15 13:47:54 +01:00
parent 80e4ce402a
commit 3c2742a214
12 changed files with 945 additions and 88 deletions

12
src/db_timeout.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef __DB_TIMEOUT_H__
#define __DB_TIMEOUT_H__
#include "db_connection.h"
// Timeouts can either be set globally or on a per-connection basis
void setDefaultTimeout(unsigned int timeout);
unsigned int getDefaultTimeout();
int setTimeout(struct stored_conn_t *sconn, unsigned int timeout);
#endif // __DB_TIMEOUT_H__