summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/reed-solomon/int.h
diff options
context:
space:
mode:
authorJosh Blum2011-07-20 18:38:36 -0700
committerJosh Blum2011-07-20 18:38:36 -0700
commitf914499f4a96fe69ab9cd8dba48f8e3bfc7a54e5 (patch)
tree14287905b65ded74112b7baaf4ed5cd4bfe028d9 /gnuradio-core/src/lib/reed-solomon/int.h
parent1e1798393381fe7472a7cdb5b2c3c90d7ae753fb (diff)
downloadgnuradio-f914499f4a96fe69ab9cd8dba48f8e3bfc7a54e5.tar.gz
gnuradio-f914499f4a96fe69ab9cd8dba48f8e3bfc7a54e5.tar.bz2
gnuradio-f914499f4a96fe69ab9cd8dba48f8e3bfc7a54e5.zip
core: API declaration macros for core class and function symbols
Diffstat (limited to 'gnuradio-core/src/lib/reed-solomon/int.h')
-rw-r--r--gnuradio-core/src/lib/reed-solomon/int.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/gnuradio-core/src/lib/reed-solomon/int.h b/gnuradio-core/src/lib/reed-solomon/int.h
index 2b0405ae0..79979f827 100644
--- a/gnuradio-core/src/lib/reed-solomon/int.h
+++ b/gnuradio-core/src/lib/reed-solomon/int.h
@@ -5,8 +5,10 @@
*/
#define DTYPE int
+#include <gr_core_api.h>
+
/* Reed-Solomon codec control block */
-struct rs {
+struct GR_CORE_API rs {
unsigned int mm; /* Bits per symbol */
unsigned int nn; /* Symbols per block (= (1<<mm)-1) */
int *alpha_to; /* log lookup table */
@@ -43,12 +45,11 @@ static inline int modnn(struct rs *rs,int x){
#define INIT_RS init_rs_int
#define FREE_RS free_rs_int
-void ENCODE_RS(void *p,DTYPE *data,DTYPE *parity);
-int DECODE_RS(void *p,DTYPE *data,int *eras_pos,int no_eras);
+GR_CORE_API void ENCODE_RS(void *p,DTYPE *data,DTYPE *parity);
+GR_CORE_API int DECODE_RS(void *p,DTYPE *data,int *eras_pos,int no_eras);
void *INIT_RS(unsigned int symsize,unsigned int gfpoly,unsigned int fcr,
unsigned int prim,unsigned int nroots);
-void FREE_RS(void *p);
-
+GR_CORE_API void FREE_RS(void *p);