]> Dogcows Code - chaz/openbox/blob - src/python.cc
remove python from our c++ objects. going to try out swig
[chaz/openbox] / src / python.cc
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2
3 #ifdef HAVE_CONFIG_H
4 # include "../config.h"
5 #endif
6
7 #include "python.hh"
8 #include "client.hh"
9 #include "openbox.hh"
10
11 namespace ob {
12
13 extern "C" {
14
15 static PyObject *shit(PyObject *self, PyObject *args)
16 {
17 if (!PyArg_ParseTuple(args, ":shit"))
18 return NULL;
19
20 printf("SHIT CALLED!@!\n");
21
22 Py_INCREF(Py_None);
23 return Py_None;
24 }
25
26
27
28 static PyMethodDef OBMethods[] = {
29 {"shit", shit, METH_VARARGS,
30 "Do some shit, yo!"},
31
32 /* {"get_client_dict", get_client_dict, METH_VARARGS,
33 "Get the list of all clients"},*/
34
35 {NULL, NULL, 0, NULL}
36 };
37
38 void initopenbox()
39 {
40 Py_InitModule("openbox", OBMethods);
41 }
42 }
43
44 }
This page took 0.039318 seconds and 5 git commands to generate.