RNAlib-2.6.3
 
Loading...
Searching...
No Matches
stream_output.h
Go to the documentation of this file.
1#ifndef VIENNA_RNA_PACKAGE_STREAM_OUTPUT_H
2#define VIENNA_RNA_PACKAGE_STREAM_OUTPUT_H
3
4#ifdef VRNA_WARN_DEPRECATED
5# if defined(DEPRECATED)
6# undef DEPRECATED
7# endif
8# if defined(__clang__)
9# define DEPRECATED(func, msg) func __attribute__ ((deprecated("", msg)))
10# elif defined(__GNUC__)
11# define DEPRECATED(func, msg) func __attribute__ ((deprecated(msg)))
12# else
13# define DEPRECATED(func, msg) func
14# endif
15#else
16# define DEPRECATED(func, msg) func
17#endif
18
33typedef struct vrna_ordered_stream_s *vrna_ostream_t;
34
49typedef void (*vrna_stream_output_f)(void *auxdata,
50 unsigned int i,
51 void *data);
52DEPRECATED(typedef void (vrna_callback_stream_output)(void *auxdata,
53 unsigned int i,
54 void *data),
55 "Use vrna_stream_output_f instead!");
56
57
69 void *auxdata);
70
71
79void
81
82
83int
84vrna_ostream_threadsafe(void);
85
86
99void
101 unsigned int num);
102
103
116void
118 unsigned int i,
119 void *data);
120
121
127#endif
void(* vrna_stream_output_f)(void *auxdata, unsigned int i, void *data)
Ordered stream processing callback.
Definition stream_output.h:49
void vrna_ostream_provide(vrna_ostream_t dat, unsigned int i, void *data)
Provide output stream data for a particular index.
vrna_ostream_t vrna_ostream_init(vrna_stream_output_f output, void *auxdata)
Get an initialized ordered output stream.
struct vrna_ordered_stream_s * vrna_ostream_t
An ordered output stream structure with unordered insert capabilities.
Definition stream_output.h:33
void vrna_ostream_request(vrna_ostream_t dat, unsigned int num)
Request index in ordered output stream.
void vrna_ostream_free(vrna_ostream_t dat)
Free an initialized ordered output stream.