2015-05-18 15:24:26 -04:00
|
|
|
#ifndef __PYTHON_TYPES_H__
|
|
|
|
#define __PYTHON_TYPES_H__
|
|
|
|
|
|
|
|
#include <Python.h>
|
|
|
|
#include <tgl/tgl.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
PyObject_HEAD
|
2015-05-19 20:06:27 -04:00
|
|
|
tgl_peer_t *peer;
|
2015-05-18 15:24:26 -04:00
|
|
|
} tgl_Peer;
|
|
|
|
|
2015-05-19 20:06:27 -04:00
|
|
|
typedef struct {
|
|
|
|
PyObject_HEAD
|
|
|
|
struct tgl_message *msg;
|
|
|
|
} tgl_Msg;
|
|
|
|
|
|
|
|
|
2015-05-19 13:55:32 -04:00
|
|
|
PyObject * tgl_Peer_FromTglPeer(tgl_peer_t *peer);
|
2015-05-19 20:06:27 -04:00
|
|
|
PyObject * tgl_Msg_FromTglMsg(struct tgl_message *peer);
|
2015-05-19 04:40:57 -04:00
|
|
|
|
2015-05-18 15:24:26 -04:00
|
|
|
#endif
|