]> Dogcows Code - chaz/openbox/commitdiff
removing old python bullshit
authorDana Jansens <danakj@orodu.net>
Tue, 24 Dec 2002 19:20:17 +0000 (19:20 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 24 Dec 2002 19:20:17 +0000 (19:20 +0000)
src/python.cc [deleted file]
src/python.hh [deleted file]
src/python_client.cc [deleted file]
src/python_client.hh [deleted file]

diff --git a/src/python.cc b/src/python.cc
deleted file mode 100644 (file)
index 5a4d1bc..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-
-#ifdef HAVE_CONFIG_H
-# include "../config.h"
-#endif
-
-#include "python.hh"
-#include "client.hh"
-#include "openbox.hh"
-
-namespace ob {
-
-extern "C" {
-
-static PyObject *shit(PyObject *self, PyObject *args)
-{
-  if (!PyArg_ParseTuple(args, ":shit"))
-    return NULL;
-
-  printf("SHIT CALLED!@!\n");
-
-  Py_INCREF(Py_None);
-  return Py_None;
-}
-  
-
-
-static PyMethodDef OBMethods[] = {
-  {"shit", shit, METH_VARARGS,
-   "Do some shit, yo!"},
-
-/*  {"get_client_dict", get_client_dict, METH_VARARGS,
-    "Get the list of all clients"},*/
-
-  {NULL, NULL, 0, NULL}
-};
-
-void initopenbox()
-{
-  Py_InitModule("openbox", OBMethods);
-}
-}
-
-}
diff --git a/src/python.hh b/src/python.hh
deleted file mode 100644 (file)
index 61272a8..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-#ifndef   __python_hh
-#define   __python_hh
-
-/*! @file python.hh
-  @brief Python stuff
-*/
-
-#include <python2.2/Python.h>
-
-namespace ob {
-
-extern "C" {
-
-void initopenbox();
-
-}
-}
-
-#endif // __python_hh
diff --git a/src/python_client.cc b/src/python_client.cc
deleted file mode 100644 (file)
index 86c738d..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-
-#ifdef HAVE_CONFIG_H
-# include "../config.h"
-#endif
-
-#include "python_client.hh"
-#include "openbox.hh"
-
-namespace ob {
-
-extern "C" {
-
-PyObject *getWindow(PyObject* self, PyObject* args)
-{
-  if (!PyArg_ParseTuple(args, ":getWindow"))
-    return NULL;
-  return PyLong_FromLong(((PyClientObject*)self)->client->window());
-}
-
-
-
-static PyMethodDef attr_methods[] = {
-  {"getWindow", (PyCFunction)getWindow, METH_VARARGS,
-   "Return the window id."},
-  {NULL, NULL, 0, NULL}           /* sentinel */
-};
-
-static PyObject *getattr(PyObject *obj, char *name)
-{
-  return Py_FindMethod(attr_methods, obj, name);
-}
-
-
-
-static void client_dealloc(PyObject* self)
-{
-  PyObject_Del(self);
-}
-
-PyTypeObject PyClient_Type = {
-  PyObject_HEAD_INIT(NULL)
-  0,
-  "Client",
-  sizeof(PyClientObject),
-  0,
-  client_dealloc, /*tp_dealloc*/
-  0,          /*tp_print*/
-  getattr,    /*tp_getattr*/
-  0,          /*tp_setattr*/
-  0,          /*tp_compare*/
-  0,          /*tp_repr*/
-  0,          /*tp_as_number*/
-  0,          /*tp_as_sequence*/
-  0,          /*tp_as_mapping*/
-  0,          /*tp_hash */
-};
-
-}
-}
diff --git a/src/python_client.hh b/src/python_client.hh
deleted file mode 100644 (file)
index 32b0c45..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-#ifndef   __pythonclient_hh
-#define   __pythonclient_hh
-
-/*! @file python_client.hh
-  @brief Python stuff
-*/
-
-#include "python.hh"
-#include "client.hh"
-
-namespace ob {
-
-extern "C" {
-
-typedef struct {
-  PyObject_HEAD
-  Window window;
-  OBClient *client;
-} PyClientObject;
-
-extern PyTypeObject PyClient_Type;
-
-PyObject *get_client_dict(PyObject* self, PyObject* args);
-
-}
-}
-
-#endif // __pythonclient_hh
This page took 0.028476 seconds and 4 git commands to generate.