Loading src/binary_c_python.c +15 −2 Original line number Diff line number Diff line Loading @@ -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 */ Loading @@ -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[] = { Loading @@ -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} Loading Loading @@ -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; } ///////////////////////////////////////////////////////////////////////////////////////////////////////// /************************************************************ Loading Loading
src/binary_c_python.c +15 −2 Original line number Diff line number Diff line Loading @@ -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 */ Loading @@ -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[] = { Loading @@ -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} Loading Loading @@ -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; } ///////////////////////////////////////////////////////////////////////////////////////////////////////// /************************************************************ Loading