#include <string>
#include <stdexcept>
#include <cstdio>
#include <stdlib.h>
#include <inttypes.h>
#include <cstdarg>
#include "sqlite/sqlite3.h"
Go to the source code of this file.
| Enumerator |
|---|
| CRC |
|
| AliveCRC |
|
| lastTC1 |
|
| lastTC2 |
|
| lastTC3 |
|
| lastTerm |
|
| testSlowCnt |
|
| uint8_t* chartoint |
( |
const unsigned char * |
guid | ) |
|
Converts the GUID from char to int array.
- Parameters
-
| *guid | Pointer to the char GUID |
- Returns
- pointer to the converted int array
| uint8_t* int64to8bit |
( |
sqlite_int64 |
guid | ) |
|
Converts the GUID from int64 to int8 array.
- Parameters
-
- Returns
- pointer to the converted int array
| sqlite_int64 int8to64bit |
( |
uint8_t * |
guid | ) |
|
| char* inttochar |
( |
uint8_t * |
guid | ) |
|
Converts the GUID from int to char array.
- Parameters
-
| *guid | Pointer to the uint8_t GUID |
- Returns
- pointer to the converted string
Closes the database connection.
| int sqlExecute |
( |
string |
query | ) |
|
Executes a SQL statement.
- Parameters
-
- Returns
- 0 on success
Reads a configuration key from the database.
- Parameters
-
- Returns
- value as integer (up to 64bit), 0 for not found
| int sqlInsertNode |
( |
uint8_t * |
guid, |
|
|
bool |
terminal |
|
) |
| |
Opens and initializes a sqlite3 database connection.
- Returns
- 0 on success
Saves a configuration key to the database.
- Parameters
-
| id | Config ID key |
| value | Integer value |
- Returns
- 0 on success
Sets up the database and creates the needed structure.
- Returns
- 0 on success
| std::string string_sprintf |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |