Motr  M0
motr.c File Reference
#include <Python.h>
#include "motr/ha.h"
#include "module/instance.h"
#include "net/net.h"
#include "net/buffer_pool.h"
#include "reqh/reqh.h"
#include "rpc/rpc_machine.h"
#include "spiel/spiel.h"
Include dependency graph for motr.c:

Go to the source code of this file.

Macros

#define STRUCTS
 
#define X(name)
 
#define X(name)   { #name "__size", name ## __size, METH_VARARGS, NULL },
 

Functions

PyMODINIT_FUNC PyInit_motr (void)
 

Variables

static STRUCTS PyMethodDef methods []
 
static struct PyModuleDef motrmodule
 

Macro Definition Documentation

◆ STRUCTS

#define STRUCTS
Value:

Definition at line 32 of file motr.c.

◆ X [1/2]

#define X (   name)
Value:
static PyObject *name ## __size(PyObject *self, PyObject *args) \
{ \
return PyLong_FromSize_t(sizeof(struct name)); \
}
Definition: ub.c:49
const char * name
Definition: trace.c:110

Definition at line 45 of file motr.c.

◆ X [2/2]

#define X (   name)    { #name "__size", name ## __size, METH_VARARGS, NULL },

Definition at line 45 of file motr.c.

Function Documentation

◆ PyInit_motr()

PyMODINIT_FUNC PyInit_motr ( void  )

Definition at line 69 of file motr.c.

Variable Documentation

◆ methods

STRUCTS PyMethodDef methods[]
static
Initial value:
= {
#define X(name)
{NULL, NULL, 0, NULL}
}
#define NULL
Definition: misc.h:38
#define STRUCTS
Definition: motr.c:32

Definition at line 53 of file motr.c.

◆ motrmodule

struct PyModuleDef motrmodule
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"motr",
NULL,
-1,
}
#define NULL
Definition: misc.h:38
static STRUCTS PyMethodDef methods[]
Definition: motr.c:53

Definition at line 60 of file motr.c.