This repository has been archived on 2023-08-27. You can view files and clone it, but cannot push or open issues or pull requests.
tcpaste/include/pasted.h
Thorsten Schubert 64c89e9274
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone Build encountered an error
Bug fixes
2021-11-08 18:39:10 +01:00

28 lines
518 B
C

/* vi:set ft=c ts=4 sw=4 noet noai: */
#pragma once
#include "conn.h"
#include <stdbool.h>
#include <stddef.h>
#include <time.h>
typedef struct limits {
unsigned short min_age_days;
unsigned short max_age_days;
size_t max_size_bytes;
} limit_t;
typedef struct paste_cstate {
char puid[PUID_LENGTH + 1];
size_t read;
size_t sent;
int fd;
int sock;
time_t retention;
bool quota_exceeded : sizeof(bool);
} paste_cstate_t;
typedef struct paste_client {
paste_cstate_t state;
bctx_t data;
} paste_client_t;