aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/source/main.h
blob: 0d5c001c908e6731665158b1ebded6d05714eb98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* 
py/pyext - python script object for PD and MaxMSP

Copyright (c)2002-2008 Thomas Grill (gr@grrrr.org)
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.  

$LastChangedRevision: 26 $
$LastChangedDate: 2008-01-03 17:20:03 +0100 (Thu, 03 Jan 2008) $
$LastChangedBy: thomas $
*/

#ifndef __MAIN_H
#define __MAIN_H

#include "pyprefix.h"

#define PY__VERSION "0.2.1pre"


#define PYEXT_MODULE "pyext" // name for module
#define PYEXT_CLASS "_class"  // name for base class

#define REGNAME "_registry"

#define PY_STOP_WAIT 100  // ms
#define PY_STOP_TICK 1  // ms


class pybase;

class FifoEl
    : public FifoCell
{
public:
    void Set(pybase *t,PyObject *f,PyObject *a) { th = t,fun = f,args = a; }
    pybase *th;
    PyObject *fun,*args;
};

typedef PooledFifo<FifoEl> PyFifo;

#endif