view runtime.h @ 40:8a7abd0bb48d

Renamed PYM_newJSFunction() to PYM_newJSFunctionFromCallable(). PYM_newJSObject() now returns objects of type PYM_JSFunctionType as needed.
author Atul Varma <varmaa@toolness.com>
date Fri, 03 Jul 2009 20:04:01 -0700
parents 951ad1b15587
children bc4263c6ae82
line wrap: on
line source

#ifndef PYM_RUNTIME_H
#define PYM_RUNTIME_H

#include <jsapi.h>
#include <jsdhash.h>
#include <Python/Python.h>

typedef struct {
  PyObject_HEAD
  JSRuntime *rt;
  JSDHashTable objects;
} PYM_JSRuntimeObject;

extern PyTypeObject PYM_JSRuntimeType;

#endif