Commit d6407a02 authored by Vincent Castellano's avatar Vincent Castellano

More WIP work

parent 0a746219
...@@ -4,7 +4,7 @@ CFLAGS=@CFLAGS@ ...@@ -4,7 +4,7 @@ CFLAGS=@CFLAGS@
LDFLAGS=@LDFLAGS@ @OPENSSL_LDFLAGS@ LDFLAGS=@LDFLAGS@ @OPENSSL_LDFLAGS@
CPPFLAGS=@CPPFLAGS@ @OPENSSL_INCLUDES@ CPPFLAGS=@CPPFLAGS@ @OPENSSL_INCLUDES@
DEFS=@DEFS@ DEFS=@DEFS@
COMPILE_FLAGS=${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Werror -Wextra -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC COMPILE_FLAGS=${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC
EXTRA_LIBS=@LIBS@ @EXTRA_LIBS@ @OPENSSL_LIBS@ EXTRA_LIBS=@LIBS@ @EXTRA_LIBS@ @OPENSSL_LIBS@
LOCAL_LDFLAGS=-rdynamic -ggdb -levent ${EXTRA_LIBS} LOCAL_LDFLAGS=-rdynamic -ggdb -levent ${EXTRA_LIBS}
LINK_FLAGS=${LDFLAGS} ${LOCAL_LDFLAGS} LINK_FLAGS=${LDFLAGS} ${LOCAL_LDFLAGS}
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#ifdef USE_PYTHON #ifdef USE_PYTHON
#include "python-tg.h" #include "python-tg.h"
#include "python-types.h"
#endif #endif
#include <string.h> #include <string.h>
...@@ -1286,6 +1287,12 @@ MOD_INIT(tgl) ...@@ -1286,6 +1287,12 @@ MOD_INIT(tgl)
if (m == NULL) if (m == NULL)
return MOD_ERROR_VAL; return MOD_ERROR_VAL;
if (PyType_Ready(&tgl_PeerType) < 0)
return MOD_ERROR_VAL;
Py_INCREF(&tgl_PeerType);
PyModule_AddObject(m, "Peer", (PyObject *)&tgl_PeerType);
return MOD_SUCCESS_VAL(m); return MOD_SUCCESS_VAL(m);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment