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

22 lines
444 B
C
Raw Permalink Normal View History

2023-12-27 00:35:22 +00:00
#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