1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2025-02-02 15:07:45 -05:00
ezstream/src/stream.h

43 lines
1.3 KiB
C
Raw Normal View History

/*
* Copyright (c) 2015 Moritz Grimm <mgrimm@mrsserver.net>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __STREAM_H__
#define __STREAM_H__
2016-03-24 18:16:00 +01:00
#include <shout/shout.h>
#include "metadata.h"
#define STREAM_DEFAULT "default"
typedef struct stream * stream_t;
int stream_init(void);
void stream_exit(void);
2016-03-24 18:16:00 +01:00
stream_t
stream_get(const char *);
int stream_setup(stream_t);
int stream_set_metadata(stream_t, metadata_t, char **);
2016-05-19 14:19:31 +02:00
int stream_get_connected(stream_t);
2016-03-24 18:16:00 +01:00
2016-05-19 14:19:31 +02:00
int stream_connect(stream_t);
void stream_disconnect(stream_t);
void stream_sync(stream_t);
int stream_send(stream_t, const char *, size_t);
2016-03-24 18:16:00 +01:00
#endif /* __STREAM_H__ */