| 1 | /* |
| 2 | * Copyright (c) 2015 Moritz Grimm <[email protected]> |
| 3 | * |
| 4 | * Permission to use, copy, modify, and distribute this software for any |
| 5 | * purpose with or without fee is hereby granted, provided that the above |
| 6 | * copyright notice and this permission notice appear in all copies. |
| 7 | * |
| 8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 15 | */ |
| 16 | |
| 17 | #ifndef __STREAM_H__ |
| 18 | #define __STREAM_H__cxx . . $ `src/stream.h:18:9`! |
| 19 | |
| 20 | #include <shout/shout.h> |
| 21 | |
| 22 | #include "cfg.h"cxx . . $ `<file>/src/cfg.h`/ |
| 23 | #include "mdata.h"cxx . . $ `<file>/src/mdata.h`/ |
| 24 | |
| 25 | typedef struct streamcxx . . $ stream# * stream_tcxx . . $ stream_t#; |
| 26 | |
| 27 | int stream_initcxx . . $ stream_init(b126dc7c1de90089).(void); |
| 28 | void stream_exitcxx . . $ stream_exit(49f6e7a06ebc5aa8).(void); |
| 29 | |
| 30 | stream_tcxx . . $ stream_t# |
| 31 | stream_createcxx . . $ stream_create(ed53485bf0dc7f57).(const char *); |
| 32 | void stream_destroycxx . . $ stream_destroy(a819560812e4e895).(stream_tcxx . . $ stream_t# *); |
| 33 | int stream_configurecxx . . $ stream_configure(e560f6a86f1dbfd1).(stream_tcxx . . $ stream_t#); |
| 34 | |
| 35 | int stream_set_metadatacxx . . $ stream_set_metadata(b6629ca60a85dc43).(stream_tcxx . . $ stream_t#, mdata_tcxx . . $ mdata_t#, char **); |
| 36 | |
| 37 | const char * |
| 38 | stream_get_namecxx . . $ stream_get_name(1712df85f39434df).(stream_tcxx . . $ stream_t#); |
| 39 | int stream_get_connectedcxx . . $ stream_get_connected(e560f6a86f1dbfd1).(stream_tcxx . . $ stream_t#); |
| 40 | cfg_stream_tcxx . . $ cfg_stream_t# |
| 41 | stream_get_cfg_streamcxx . . $ stream_get_cfg_stream(5d068d841fd5888b).(stream_tcxx . . $ stream_t#); |
| 42 | cfg_intake_tcxx . . $ cfg_intake_t# |
| 43 | stream_get_cfg_intakecxx . . $ stream_get_cfg_intake(b24beca3dc86be4b).(stream_tcxx . . $ stream_t#); |
| 44 | cfg_server_tcxx . . $ cfg_server_t# |
| 45 | stream_get_cfg_servercxx . . $ stream_get_cfg_server(c04f5d5f4c377bea).(stream_tcxx . . $ stream_t#); |
| 46 | |
| 47 | int stream_connectcxx . . $ stream_connect(e560f6a86f1dbfd1).(stream_tcxx . . $ stream_t#); |
| 48 | void stream_disconnectcxx . . $ stream_disconnect(42ea99e01043689b).(stream_tcxx . . $ stream_t#); |
| 49 | void stream_synccxx . . $ stream_sync(42ea99e01043689b).(stream_tcxx . . $ stream_t#); |
| 50 | int stream_sendcxx . . $ stream_send(5edb09aac611db9a).(stream_tcxx . . $ stream_t#, const char *, size_t); |
| 51 | |
| 52 | #endif /* __STREAM_H__ */ |