Skip to content
Snippets Groups Projects
Commit 6e980973 authored by David Hendriks's avatar David Hendriks
Browse files

renamed function

parent b0c51327
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ static struct libbinary_c_store_t *store = NULL; ...@@ -48,7 +48,7 @@ static struct libbinary_c_store_t *store = NULL;
static PyObject* binary_c_create_binary(PyObject *self, PyObject *args); static PyObject* binary_c_create_binary(PyObject *self, PyObject *args);
#endif #endif
static PyObject* binary_c_run_binary(PyObject *self, PyObject *args); static PyObject* binary_c_run_binary(PyObject *self, PyObject *args);
static PyObject* binary_c_run_binary_with_log(PyObject *self, PyObject *args); static PyObject* binary_c_run_binary_with_logfile(PyObject *self, PyObject *args);
static PyObject* binary_c_run_binary_custom_logging(PyObject *self, PyObject *args); static PyObject* binary_c_run_binary_custom_logging(PyObject *self, PyObject *args);
static PyObject* binary_c_function_prototype(PyObject *self, PyObject *args); static PyObject* binary_c_function_prototype(PyObject *self, PyObject *args);
static PyObject* binary_c_new_binary_system(PyObject *self, PyObject *args); static PyObject* binary_c_new_binary_system(PyObject *self, PyObject *args);
...@@ -70,7 +70,7 @@ static PyMethodDef module_methods[] = { ...@@ -70,7 +70,7 @@ static PyMethodDef module_methods[] = {
}, },
#endif #endif
{"run_binary", binary_c_run_binary, METH_VARARGS, run_binary_docstring}, {"run_binary", binary_c_run_binary, METH_VARARGS, run_binary_docstring},
{"run_binary_with_log", binary_c_run_binary_with_log, METH_VARARGS, run_binary_with_logdocstring}, {"run_binary_with_logfile", binary_c_run_binary_with_logfile, METH_VARARGS, run_binary_with_logdocstring},
{"run_binary_custom_logging", binary_c_run_binary_custom_logging, METH_VARARGS, run_binary_custom_loggingdocstring}, {"run_binary_custom_logging", binary_c_run_binary_custom_logging, METH_VARARGS, run_binary_custom_loggingdocstring},
{"function_prototype", binary_c_function_prototype, METH_VARARGS, function_prototype_docstring}, {"function_prototype", binary_c_function_prototype, METH_VARARGS, function_prototype_docstring},
{"new_system", binary_c_new_binary_system, METH_VARARGS, new_binary_system_docstring}, {"new_system", binary_c_new_binary_system, METH_VARARGS, new_binary_system_docstring},
...@@ -261,7 +261,7 @@ static PyObject* binary_c_run_binary_custom_logging(PyObject *self, PyObject *ar ...@@ -261,7 +261,7 @@ static PyObject* binary_c_run_binary_custom_logging(PyObject *self, PyObject *ar
} }
} }
static PyObject* binary_c_run_binary_with_log(PyObject *self, PyObject *args) static PyObject* binary_c_run_binary_with_logfile(PyObject *self, PyObject *args)
{ {
/* Parse the input tuple */ /* Parse the input tuple */
char *argstring; char *argstring;
...@@ -275,7 +275,7 @@ static PyObject* binary_c_run_binary_with_log(PyObject *self, PyObject *args) ...@@ -275,7 +275,7 @@ static PyObject* binary_c_run_binary_with_log(PyObject *self, PyObject *args)
char * buffer; char * buffer;
char * error_buffer; char * error_buffer;
size_t nbytes; size_t nbytes;
int out MAYBE_UNUSED = run_binary_with_log(argstring, int out MAYBE_UNUSED = run_binary_with_logfile(argstring,
&buffer, &buffer,
&error_buffer, &error_buffer,
&nbytes); &nbytes);
......
...@@ -14,7 +14,7 @@ int run_binary (char * argstring, ...@@ -14,7 +14,7 @@ int run_binary (char * argstring,
char ** const errorstring, char ** const errorstring,
size_t * const nbytes); size_t * const nbytes);
int run_binary_with_log (char * argstring, int run_binary_with_logfile (char * argstring,
char ** const outstring, char ** const outstring,
char ** const errorstring, char ** const errorstring,
size_t * const nbytes); size_t * const nbytes);
......
...@@ -200,7 +200,7 @@ int return_arglines(char ** const buffer, ...@@ -200,7 +200,7 @@ int return_arglines(char ** const buffer,
return 0; return 0;
} }
int run_binary_with_log(char * argstring, int run_binary_with_logfile(char * argstring,
char ** const buffer, char ** const buffer,
char ** const error_buffer, char ** const error_buffer,
size_t * const nbytes) size_t * const nbytes)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment