init fourier.* (will be changed)
[my-code/api.git] / fourier / fourier.h
1 /* fourier.h -- fourier headers */
2
3 #ifndef FOURIER_H
4 #define FOURIER_H
5
6 /* includes */
7 #include <stdio.h>
8
9 /* defines */
10 #define F_SUCCESS 1
11 #define F_ERROR -1
12 #define F_DIM_ERROR -2
13 #define F_DLEN_ERROR -3
14 #define F_MALLOC_ERROR -4
15 #define F_SET_DLEN_ERROR -5
16
17 #define MAX_DIM 3
18
19 /* fourier specific variables */
20 typedef struct s_complex {
21   double r;
22   double i;
23 } t_complex;
24
25 typedef struct s_fourier {
26   int outfd;
27   unsigned char type;
28   int dim;
29   t_complex *data[MAX_DIM];
30   int data_len[MAX_DIM];
31 } t_fourier;
32
33 #endif