pymudsys.h

nakedmudv3.3/src/scripts/pymudsys.h · 881 B

From the archive nakedmudv3.3.tar.tgz

Download the archive   « Back to the archive contents

#ifndef __PYMUDSYS_H
#define __PYMUDSYS_H
//*****************************************************************************
//
// pymudsys.h
//
// A set of system level commands and variables that may be needed by python,
// but which are not neccessarily needed by scripts.
//
//*****************************************************************************

/* initialize mud sys module for use */
PyMODINIT_FUNC
init_PyMudSys(void);

//
// Adds a new method function (i.e. void *f) to the sys module. Name is the name
// of the function, f is the PyCFunction implementing the new method, flags is
// the type of method beings used (almost always METH_VARARGS), and doc is an
// (optional) description of what the method does. For examples on how to add
// new methods, see pymud.c
void PyMudSys_addMethod(const char *name, void *f, int flags, const char *doc);

#endif //__PYMUD_H

Site Stats

Snippets: 1791
Codebases: 571