cacao  Release 0.1.03-dev
Compute And Control For Adaptive Optics
standalone_dependencies.h
Go to the documentation of this file.
1 
14 #ifndef _CACAO_DEPENDENCY_H
15 #define _CACAO_DEPENDENCY_H
16 
17 #include <CLIcore.h>
18 // #include <gsl/gsl_rng.h> // for random numbers
19 // #include <semaphore.h>
20 // #include <signal.h>
21 // #include <stdint.h>
22 // #include <stdio.h>
23 // #include <stdlib.h>
24 // #include <sys/types.h>
25 // #include <unistd.h>
26 
27 #define SHAREDSHMDIR "/milk/shm"
28 #define SHAREDPROCDIR "/milk/proc"
29 #define CLIPID getpid()
30 
31 // *************************** FUNCTION RETURN VALUE *********************************************
32 // For function returning type errno_t (= int)
33 //
34 #define RETURN_SUCCESS 0
35 #define RETURN_FAILURE 1 // generic error code
36 #define RETURN_MISSINGFILE 2
37 
38 #include <time.h>
39 #include <errno.h>
40 #include "ImageStreamIO.h"
41 
42 #ifndef __STDC_LIB_EXT1__
43 typedef int errno_t;
44 #endif
45 
46 typedef long imageID;
47 typedef long variableID;
48 
49 #define DEBUG_TRACEPOINT(...)
50 
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 
55 struct timespec info_time_diff(struct timespec start, struct timespec end);
56 int print_header(const char *str, char c);
57 void quick_sort2l(double *array, long *array1, long count);
58 void quick_sort2l_double(double *array, long *array1, long count);
59 void quick_sort_long(long *array, long count);
60 int printERROR(const char *file, const char *func, int line, char *errmessage);
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif // _CACAO_DEPENDENCY_H
void quick_sort2l(double *array, long *array1, long count)
Definition: standalone_dependencies.c:87
Function prototypes for ImageStreamIO.
int errno_t
Definition: standalone_dependencies.h:43
void quick_sort_long(long *array, long count)
Definition: standalone_dependencies.c:152
long variableID
Definition: standalone_dependencies.h:47
char line[500]
Definition: CLIcore.c:175
int print_header(const char *str, char c)
Definition: standalone_dependencies.c:40
void quick_sort2l_double(double *array, long *array1, long count)
Definition: standalone_dependencies.c:123
int printERROR(const char *file, const char *func, int line, char *errmessage)
Definition: standalone_dependencies.c:178
long imageID
Definition: standalone_dependencies.h:46
Command line interface.