diff --git a/include/wrapping_dap_enc_http.h b/include/wrapping_dap_enc_http.h index 1c2f26fa434b8aaa5e098bde149981985c5399ad..85fe17288f3a3fb5104f1e0a123e59f584ebd77f 100644 --- a/include/wrapping_dap_enc_http.h +++ b/include/wrapping_dap_enc_http.h @@ -3,6 +3,8 @@ #include <Python.h> #include "dap_server_python.h" +#include "dap_enc_http.h" +#include "dap_http.h" typedef struct PyDapEncHttp{ PyObject_HEAD diff --git a/src/wrapping_dap_enc_http.c b/src/wrapping_dap_enc_http.c index 54ddc8caf2c4d8a5d53a5f8a8d61057ff62d0741..e20c26f57eea73df6c3ea492d50157b4dbdd0f32 100644 --- a/src/wrapping_dap_enc_http.c +++ b/src/wrapping_dap_enc_http.c @@ -5,6 +5,6 @@ PyObject *enc_http_add_proc_py(PyObject *self, PyObject *args){ const char *HTTP_URL; if (!PyArg_ParseTuple(args, "O|s", &obj_server, &HTTP_URL)) return NULL; - enc_http_add_proc_py(((PyDapServerObject*)obj_server)->t_server, HTTP_URL); + enc_http_add_proc(DAP_HTTP(((PyDapServerObject*)obj_server)->t_server), HTTP_URL); return PyLong_FromLong(0); }