libdspl-2.0
Digital Signal Processing Algorithm Library
dspl_info_test.c
1#include <stdio.h>
2#include <stdlib.h>
3#include "dspl.h"
4
5
6int main(int argc, char* argv[])
7{
8 /* libdspl handle */
9 void* hdspl;
10
11 /* Load libdspl functions */
12 hdspl = dspl_load();
13
14 /* Check libdspl handle. */
15 /* If hdspl == NULL means problem with libdspl loading */
16 if(!hdspl)
17 {
18 printf("libdspl loading error!\n");
19 return -1;
20 }
21
22 /* Print libdspl info */
23 dspl_info();
24
25
26 /* free dspl handle */
27 dspl_free(hdspl);
28 return 0;
29}
30
void * dspl_load()
Perform dynamic linking and load libdspl-2.0 functions.
void dspl_free(void *handle)
Cleans up the previously linked DSPL-2.0 dynamic library.