forked from abduld/libwb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wbSolution.h
40 lines (28 loc) · 1.37 KB
/
wbSolution.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef __WB_SOLUTION_H__
#define __WB_SOLUTION_H__
typedef struct st_wbSolution_t {
char * type;
char * outputFile;
void * data;
int rows;
int columns;
} wbSolution_t;
#define wbSolution_getType(sol) ((sol).type)
#define wbSolution_getOutputFile(sol) ((sol).outputFile)
#define wbSolution_getData(sol) ((sol).data)
#define wbSolution_getRows(sol) ((sol).rows)
#define wbSolution_getColumns(sol) ((sol).columns)
#define wbSolution_getHeight wbSolution_getRows
#define wbSolution_getWidth wbSolution_getColumns
#define wbSolution_setType(sol, val) (wbSolution_getType(sol) = val)
#define wbSolution_setOutputFile(sol, val) (wbSolution_getOutputFile(sol) = val)
#define wbSolution_setData(sol, val) (wbSolution_getData(sol) = val)
#define wbSolution_setRows(sol, val) (wbSolution_getRows(sol) = val)
#define wbSolution_setColumns(sol, val) (wbSolution_getColumns(sol) = val)
wbBool wbSolution(char * expectedOutputFile,
char * outputFile, char * type0,
void * data, int rows, int columns);
wbBool wbSolution(wbArg_t arg, void * data, int rows, int columns);
wbBool wbSolution(wbArg_t arg, void * data, int rows);
wbBool wbSolution(wbArg_t arg, wbImage_t img);
#endif /* __WB_SOLUTION_H__ */