mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-19 06:10:01 +01:00
73 lines
1.8 KiB
C
73 lines
1.8 KiB
C
/* veejay - Linux VeeJay
|
|
* (C) 2002-2004 Niels Elburg <nelburg@looze.net>
|
|
*
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
#include <config.h>
|
|
#ifndef VJ_CLIENT_H
|
|
#define VJ_CLIENT_H
|
|
|
|
#include <libvjnet/mcastreceiver.h>
|
|
#include <libvjnet/mcastsender.h>
|
|
#include <libvjnet/cmd.h>
|
|
#include <libvjnet/common.h>
|
|
|
|
typedef struct
|
|
{
|
|
mcast_receiver *r;
|
|
mcast_sender *s;
|
|
vj_sock_t *fd;
|
|
int type;
|
|
} conn_type_t;
|
|
|
|
typedef struct
|
|
{
|
|
int planes[3];
|
|
int cur_width;
|
|
int cur_height;
|
|
int cur_fmt;
|
|
conn_type_t **c;
|
|
int ports[3];
|
|
int mcast;
|
|
unsigned char *blob;
|
|
} vj_client;
|
|
|
|
|
|
int vj_client_connect( vj_client *v, char *host, char *group_name, int port_id );
|
|
|
|
int vj_client_get_status_fd(vj_client *v, int sock_type );
|
|
|
|
void vj_client_flush( vj_client *v, int delay );
|
|
|
|
int vj_client_poll( vj_client *v, int sock_type );
|
|
|
|
int vj_client_read_i(vj_client *v, uint8_t *dst );
|
|
|
|
int vj_client_read( vj_client *v, int sock_type, uint8_t *dst, int bytes );
|
|
|
|
int vj_client_close( vj_client *v );
|
|
|
|
int vj_client_send( vj_client *v, int sock_type, char *buf);
|
|
|
|
vj_client *vj_client_alloc(int w , int h, int f);
|
|
|
|
void vj_client_free(vj_client *v);
|
|
|
|
int vj_client_test(char *addr, int port );
|
|
|
|
#endif
|
|
|