view function.h @ 42:e62b1801f9af

Added a TODO.
author Atul Varma <varmaa@toolness.com>
date Fri, 03 Jul 2009 21:15:18 -0700
parents 8a7abd0bb48d
children bc4263c6ae82
line wrap: on
line source

#ifndef PYM_FUNCTION_H
#define PYM_FUNCTION_H

#include "object.h"
#include "context.h"

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

typedef struct {
  PYM_JSObject base;
  PyObject *callable;
} PYM_JSFunction;

extern PyTypeObject PYM_JSFunctionType;

extern PYM_JSFunction *
PYM_newJSFunctionFromCallable(PYM_JSContextObject *context,
                              PyObject *callable,
                              const char *name);

#endif