diff --git a/src/binary_c_python.c b/src/binary_c_python.c index 477f3705c35d5dd89d15e9cfeb71ebc65248e2b3..97547ef2cad199d70568043ef6738c5d8399d993 100644 --- a/src/binary_c_python.c +++ b/src/binary_c_python.c @@ -82,8 +82,8 @@ static char free_persistent_data_memaddr_and_return_json_output_docstring[] = "Frees the persistent_data memory and returns the json output"; static char free_store_memaddr_docstring[] = "Frees the store memaddr"; - -static struct libbinary_c_store_t *store = NULL; +static char test_func_docstring[] = + "Function that contains random snippets. Do not expect this to remain available, or reliable. i.e. dont use it. "; /* Initialize pyobjects */ @@ -103,6 +103,9 @@ static PyObject* binary_c_return_persistent_data_memaddr(PyObject *self, PyObjec // Free functions static PyObject* binary_c_free_persistent_data_memaddr_and_return_json_output(PyObject *self, PyObject *args); static PyObject* binary_c_free_store_memaddr(PyObject *self, PyObject *args); +static PyObject* binary_c_test_func(PyObject *self, PyObject *args); + + /* Set the module functions */ static PyMethodDef module_methods[] = { @@ -122,6 +125,7 @@ static PyMethodDef module_methods[] = { // {"free_persistent_data_memaddr_and_return_json_output", binary_c_free_persistent_data_memaddr_and_return_json_output, METH_VARARGS, free_persistent_data_memaddr_and_return_json_output_docstring}, {"free_store_memaddr", binary_c_free_store_memaddr, METH_VARARGS, free_store_memaddr_docstring}, + {"test_func", binary_c_test_func, METH_NOARGS, test_func_docstring}, // {NULL, NULL, 0, NULL} @@ -477,6 +481,15 @@ static PyObject* binary_c_free_store_memaddr(PyObject *self, PyObject *args) Py_RETURN_NONE; } + +static PyObject* binary_c_test_func(PyObject *self, PyObject *args) +{ + // function to see if we can access the stability string + printf("%s", RLOF_stability_string(1)); + + Py_RETURN_NONE; +} + ///////////////////////////////////////////////////////////////////////////////////////////////////////// /************************************************************