pyplugs.h

nakedmudv3.0/src/scripts/pyplugs.h · 966 B

From the archive nakedmudv3.0.tar.tgz

Download the archive   « Back to the archive contents

#ifndef PYPLUGS_H
#define PYPLUGS_H
//*****************************************************************************
//
// pyplugs.h
//
// Pyplugs are just various things that occur at the intersection between 
// Python and C, in NakedMud. They include the loading of python modules,
// a few commands for interacting with python modules, and miscellaneory (sp?)
// python stuff that doesn't neccessarily fall under "scripting".
//
//*****************************************************************************

// 
// Returns a string representation of the last error that Python threw. Must
// be freed afterwards.
char *getPythonTraceback(void);

//
// initialize all of our plugs with python
void init_pyplugs();

//
// Takes in a PyType, and adds lists of get/setters and methods to it. The
// lists can each be NULL if there are no getsetters or methods, respectively
void makePyType(PyTypeObject *type, LIST *getsetters, LIST *methods);

#endif // PYPLUGS_H

Site Stats

Snippets: 1791
Codebases: 571