Logo Search packages:      
Sourcecode: telepathy-blue version File versions

_smsmodule.c

/* -*- Mode: C; c-basic-offset: 4 -*- */
#ifdef HAVE_CONFIG_H
#  include "config.h"
#endif

/* include this first, before NO_IMPORT_PYGOBJECT is defined */
#include <pygobject.h>

/* include any extra headers needed here */

void py_sms_register_classes(PyObject *d);
extern PyMethodDef py_sms_functions[];

DL_EXPORT(void)
init_sms(void)
{
    PyObject *m, *d;

    /* perform any initialisation required by the library here */
      init_pygobject();
      
    m = Py_InitModule("_sms", py_sms_functions);
    d = PyModule_GetDict(m);
    
    /* add anything else to the module dictionary (such as constants) */
    py_sms_register_classes(d);

    if (PyErr_Occurred())
        Py_FatalError("could not initialise module _sms");
}

Generated by  Doxygen 1.6.0   Back to index