My Project
binary_c_python.h
1 #pragma once
2 #ifndef BINARY_C_PYTHON_H
3 #define BINARY_C_PYTHON_H
4 
5 /*
6  * Include binary_C's API
7  */
8 #include "binary_c_API.h"
9 #include "binary_c_API_prototypes.h"
10 
11 /* Binary_c's python API prototypes */
12 int run_binary (char * argstring,
13  char ** const outstring,
14  char ** const errorstring,
15  size_t * const nbytes);
16 
17 int run_binary_with_logfile (char * argstring,
18  char ** const outstring,
19  char ** const errorstring,
20  size_t * const nbytes);
21 
22 int run_binary_custom_logging(char * argstring,
23  long int func_memaddr,
24  char ** const buffer,
25  char ** const error_buffer,
26  size_t * const nbytes);
27 
28 int return_arglines(char ** const outstring,
29  char ** const errorstring,
30  size_t * const nbytes);
31 
32 /* C macros */
33 #define BINARY_C_APITEST_VERSION 0.1
34 #define APIprint(...) APIprintf(__VA_ARGS__);
35 #define NO_OUTPUT
36 
37 #endif // BINARY_C_C_PYTHON_H