summaryrefslogtreecommitdiffstats
path: root/debian/transcode/transcode-1.1.7/src/socket.h
blob: e96e3b02b0ee4ba1136f4a349540816536171a91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* socket.h -- include file for control socket routines
 * Written by Andrew Church <achurch@achurch.org>
 *
 * This file is part of transcode, a video stream processing tool.
 * transcode is free software, distributable under the terms of the GNU
 * General Public License (version 2 or later).  See the file COPYING
 * for details.
 */

#ifndef SOCKET_H
#define SOCKET_H

#include <pthread.h>

/*************************************************************************/

/* External interface. */
int tc_socket_init(const char *socket_path);
void tc_socket_fini(void);
void tc_socket_poll(void);
void tc_socket_wait(void);
void tc_socket_submit(const char *str);

/* Variables and constants for communicating with the "pv" module
 * (FIXME: these should go away) */
extern pthread_mutex_t tc_socket_msg_lock;
extern int tc_socket_msg_arg;
enum tc_socket_msg_cmd_enum {
    TC_SOCK_PV_NONE = 0,
    TC_SOCK_PV_PAUSE,
    TC_SOCK_PV_DRAW,
    TC_SOCK_PV_UNDO,
    TC_SOCK_PV_SLOW_FW,
    TC_SOCK_PV_SLOW_BW,
    TC_SOCK_PV_FAST_FW,
    TC_SOCK_PV_FAST_BW,
    TC_SOCK_PV_SLOWER,
    TC_SOCK_PV_FASTER,
    TC_SOCK_PV_TOGGLE,
    TC_SOCK_PV_ROTATE,
    TC_SOCK_PV_DISPLAY,
    TC_SOCK_PV_SAVE_JPG,
};
extern enum tc_socket_msg_cmd_enum tc_socket_msg_cmd;


/*************************************************************************/

#endif  /* SOCKET_H */

/*
 * Local variables:
 *   c-file-style: "stroustrup"
 *   c-file-offsets: ((case-label . *) (statement-case-intro . *))
 *   indent-tabs-mode: nil
 * End:
 *
 * vim: expandtab shiftwidth=4:
 */