diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-03-11 19:34:18 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-03-11 19:34:18 -0500 |
commit | a0a8aaf5170eab149ee0fed4d7846e0df856a2e4 (patch) | |
tree | 8e301f0c0279bdd5b592f1c63004b650fab3470f /main.h | |
parent | 77f1df1a250d958317c930e6f3a36edf42f11d09 (diff) |
split into separate executables
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 41 |
1 files changed, 0 insertions, 41 deletions
@@ -1,41 +0,0 @@ -#pragma once - -#include <signal.h> /* for sig_atomic_t */ -#include <string.h> /* for memset(3) */ - -#define UNUSED __attribute__((__unused__)) -#define ZERO(x) memset(&(x), 0, sizeof(x)) - -#ifndef _ -#define _(str) str -#endif - -extern volatile sig_atomic_t running; -extern int httpsock; - -struct frame { - ssize_t len; - size_t cap; - char *data; -}; - -struct mpjpeg_stream { - struct frame a; - struct frame b; - - struct frame *front; - struct frame *back; - pthread_mutex_t frontlock; -}; - -struct wg; - -void finish(int sig); -void thread_kinect(int video_fd, int depth_fd, int accel_fd); -void thread_http_listen(int fd); -void thread_mpjpeg_reader(struct mpjpeg_stream *s, int fd, const char *boundary); -void thread_mpjpeg_writer(struct mpjpeg_stream *s, int fd, const char *boundary); -void thread_http_listener(struct wg *wg, struct mpjpeg_stream *video, struct mpjpeg_stream *depth); -void init_mpjpeg_stream(); - -void * xrealloc(void *ptr, size_t size); |