File: pytype_timezone.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 (20 lines) | stat: -rw-r--r-- 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <pi-location.h>
#include "../jpilot_src/libplugin.h"
#include "pytype_basics.h"

extern PyObject* PyPiTimezone_New();
extern PyObject* PyPiTimezone_Wrap(Timezone_t* tz);

extern PyTypeObject TimezoneType;

#define PyPiTimezone_Check(v)          PyObject_TypeCheck(v, &TimezoneType)
#define PyPiTimezone_CheckExact(v)     ((v)->ob_type == &TimezoneType)

/**
 * \brief palm version of a timezone.
 */
typedef struct {
  PyObject_HEAD
  PyObject_JPTYPE
  Timezone_t tz;
} PyPiTimezone;