summaryrefslogtreecommitdiff
path: root/server/data_stream.h
blob: c8baf18187035eeee0a82af948e3aec541f129dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include "global.h"
#include "zbuffer.h"


struct data_stream;

// Return NULL or -1 on error
struct data_stream* data_stream_init(int fd);
int data_stream_finish_destroy(struct data_stream *s);
int data_stream_frame(struct data_stream *s);
int data_stream_flush(struct data_stream *s);  // can degrade compression