File: pytype_appointment.h

package info (click to toggle)
jppy 0.0.56-1.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 9,512 kB
  • ctags: 3,972
  • sloc: ansic: 45,883; sh: 10,974; python: 6,331; yacc: 1,014; makefile: 418
file content (18 lines) | stat: -rw-r--r-- 569 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <pi-datebook.h>
#include "../jpilot_src/libplugin.h"
#include "pytype_basics.h"

extern PyObject* PyPiAppointment_New();
extern PyObject* PyPiAppointment_Wrap(Appointment_t*, PCRecType, unsigned int, unsigned char,
                                int, void*, PyObject *);

extern PyTypeObject AppointmentType;

#define PyPiAppointment_Check(v)          PyObject_TypeCheck(v, &AppointmentType)
#define PyPiAppointment_CheckExact(v)     ((v)->ob_type == &AppointmentType)

typedef struct {
  PyObject_HEAD
  PyObject_JPTYPE
  Appointment_t a;
} PyPiAppointment;