diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-09 16:32:55 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-09 16:32:55 -0800 |
commit | ef9ab1fd141f4057d41f2d6ed8ab8d67c44894d5 (patch) | |
tree | e4005b7a641303b021eb54c2aae5676b5f92a72d /src/include/protocol.h | |
parent | 1fd608288ee47c2c560817f12f14b21069fed2f6 (diff) |
Diffstat (limited to 'src/include/protocol.h')
-rw-r--r-- | src/include/protocol.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/include/protocol.h b/src/include/protocol.h index 204a507..31138c2 100644 --- a/src/include/protocol.h +++ b/src/include/protocol.h @@ -2,6 +2,7 @@ #define PROTOCOL_H #include <time.h> +#include <stdio.h> #include <stdbool.h> #include "array.h" @@ -38,7 +39,7 @@ typedef struct { } message_t; typedef struct { - array_t *messages; + FILE *messages; user_t *admin; array_t *mods; @@ -58,9 +59,14 @@ typedef struct { user_t *user1; user_t *user2; - array_t *messages; + struct tm *date; + FILE *msgs; } dm_t; +string_t *date_str(); + +bool same_day(struct tm *date1, struct tm *date2); + string_t *encode_chanstate(ht_t *chans); string_t *encode_usersstate(ht_t *u); |