Files
Calendink/Provider/main/todo.hpp

21 lines
459 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include <cstring>
#include "types.hpp"
#include "user.hpp"
struct task_t
{
uint16 id; // Auto-assigned (165535, 0 = empty slot)
uint8 user_id; // Owner (matches user_t.id)
char title[64]; // Task description
int64 due_date; // Unix timestamp (seconds)
bool completed; // Done flag
bool active; // Slot in use
};
constexpr int MAX_TASKS = 32;
internal task_t g_Tasks[MAX_TASKS] = {};
internal uint16 g_NextTaskId = 1;