tg/python-types.h

22 lines
352 B
C
Raw Permalink Normal View History

#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;
} tgl_Peer;
2015-05-19 20:06:27 -04:00
typedef struct {
PyObject_HEAD
struct tgl_message *msg;
} tgl_Msg;
PyObject * tgl_Peer_FromTglPeer(tgl_peer_t *peer);
2015-05-19 20:06:27 -04:00
PyObject * tgl_Msg_FromTglMsg(struct tgl_message *peer);
#endif