File: bspmodule.h

package info (click to toggle)
python-scientific 2.8-1.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 6,456 kB
  • ctags: 7,038
  • sloc: python: 16,436; ansic: 4,379; makefile: 135; sh: 18; csh: 1
file content (43 lines) | stat: -rw-r--r-- 924 bytes parent folder | download | duplicates (3)
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
/*
 * Include file for BSPlib interface.
 *
 * Written by Konrad Hinsen <hinsen@cnrs-orleans.fr>
 * last revision: 2001-11-20
 */

#ifndef Py_BSPMODULE_H
#define Py_BSPMODULE_H

#ifdef __cplusplus
extern "C" {
#endif

#include "Scientific/arrayobject.h"
#include "bsp.h"

/* Include the automatically generated API definitions */
#include "Scientific/PyBSP_API.h"

/* Tag type and size for sending Python objects */
typedef enum {PyBSP_StringTag,
	      PyBSP_ArrayTypeTag,
	      PyBSP_ArrayDataTag}
        PyBSP_ObjectType;

typedef struct {PyBSP_ObjectType type;
                char number;
                int source_pid;}
        PyBSP_Tag;

const int PyBSP_TAGSIZE = sizeof(PyBSP_Tag);

/* Message queue for receiving Python objects */
typedef struct {PyBSP_Tag *tag_ptr;
                void *payload_ptr;
                int length;}
        PyBSP_Message;

#ifdef __cplusplus
}
#endif
#endif /* Py_BSPMODULE_H */