File: pytype_contacts.h

package info (click to toggle)
jppy 0.0.47-1.1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 7,188 kB
  • ctags: 4,558
  • sloc: ansic: 51,314; python: 5,949; yacc: 1,303; makefile: 735; sh: 555; sed: 10
file content (18 lines) | stat: -rw-r--r-- 499 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <pi-contact.h>
#include "../jpilot_src/libplugin.h"
#include "pytype_basics.h"

extern PyObject* PyPiContact_New();
extern PyObject* PyPiContact_Wrap(struct Contact*, PCRecType, unsigned int, unsigned char,
				 int, void*);

extern PyTypeObject ContactType;

#define PyPiContact_Check(v)          PyObject_TypeCheck(v, &ContactType)
#define PyPiContact_CheckExact(v)     ((v)->ob_type == &ContactType)

typedef struct {
  PyObject_HEAD
  PyObject_JPTYPE
  struct Contact a;
} PyPiContact;