This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
temporary-satori-hole/include/context.h
2023-12-27 01:35:22 +01:00

21 lines
444 B
C

#ifndef H_SATORI_CONTEXT
#define H_SATORI_CONTEXT
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "config.h"
#include "persist.h"
#include "futami.h"
typedef struct _satori_ctx {
time_t startup;
sat_config_ptr config;
sat_persist_ptr persist;
sat_futami_ptr futami;
} satori_ctx, *satori_ctx_ptr;
satori_ctx_ptr satori_ctx_alloc(void);
void satori_ctx_free(satori_ctx_ptr ctx);
#endif // H_SATORI_CONTEXT