From bb48c914c6239ed1dbcb29eb62d33d3ab91e7215 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Mon, 19 Jun 2006 12:25:06 +0000 Subject: initial import git-svn-id: http://svn.irssi.org/repos/irssi-python@4282 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- objects/dcc-object.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 objects/dcc-object.h (limited to 'objects/dcc-object.h') diff --git a/objects/dcc-object.h b/objects/dcc-object.h new file mode 100644 index 0000000..d44d3db --- /dev/null +++ b/objects/dcc-object.h @@ -0,0 +1,24 @@ +#ifndef _DCC_OBJECT_H_ +#define _DCC_OBJECT_H_ + +#include +#include "base-objects.h" + +#define PyDcc_HEAD(type) \ + PyIrssi_HEAD(type) \ + PyObject *server; \ + PyObject *chat; + +typedef struct +{ + PyDcc_HEAD(void) +} PyDcc; + +extern PyTypeObject PyDccType; + +PyObject *pydcc_sub_new(void *dcc, const char *name, PyTypeObject *subclass); +PyObject *pydcc_new(void *dcc); +#define pydcc_check(op) PyObject_TypeCheck(op, &PyDccType) +int dcc_object_init(void); + +#endif -- cgit