- lifecycle functions for widgets - persistence functions Signed-off-by: Peter Siegmund <developer@mars3142.org>
32 lines
630 B
C
32 lines
630 B
C
#include "persistence.h"
|
|
#include "stddef.h"
|
|
#include <stdio.h>
|
|
|
|
void *persistence_init(const char *namespace_name)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
void persistence_save(const persistence_value_t value_type, const char *key, const void *value)
|
|
{
|
|
printf("Key: %s - ", key);
|
|
switch (value_type)
|
|
{
|
|
case VALUE_TYPE_STRING:
|
|
printf("Value (s): %s\n", (char *)value);
|
|
break;
|
|
|
|
case VALUE_TYPE_INT32:
|
|
printf("Value (i): %d\n", *(int32_t *)value);
|
|
break;
|
|
}
|
|
}
|
|
|
|
void *persistence_load(persistence_value_t value_type, const char *key, void *out)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
void persistence_deinit()
|
|
{
|
|
} |